:root {
  color-scheme: dark;
  --dm-bg: #050608;
  --dm-panel: #0b0d12;
  --dm-panel-soft: #10131a;
  --dm-border: #242a35;
  --dm-border-strong: #384253;
  --dm-text: #f3f5f7;
  --dm-muted: #9ca6b6;
  --dm-faint: #687386;
  --dm-cyan: #74e4ff;
  --dm-blue: #8fb4ff;
  --dm-purple: #a78bfa;
  --dm-red: #ff6b7f;
  --dm-green: #69d189;
  --dm-yellow: #f2d56b;
  --dm-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --dm-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --dm-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--dm-bg);
  color: var(--dm-text);
  font-family: var(--dm-font);
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

.dm-simple-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(116, 228, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(167, 139, 250, 0.1), transparent 30%),
    #050608;
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}

.dm-simple-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.16), rgba(5, 6, 8, 0.88));
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.dm-simple-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Surface Command workspace -------------------------------------------------
   The final layer intentionally consolidates the legacy dashboard rules into
   a quieter, decision-first workstation without changing chart internals. */

:root {
  --dm-bg: #07090d;
  --dm-panel: #0c1016;
  --dm-panel-soft: #111722;
  --dm-border: #202936;
  --dm-border-strong: #344154;
  --dm-text: #f5f7fb;
  --dm-muted: #97a3b5;
  --dm-faint: #5f6b7d;
  --dm-cyan: #6edcff;
  --dm-blue: #8eb4ff;
  --dm-purple: #9d91ff;
  --dm-red: #ff8098;
  --dm-green: #65dda0;
  --dm-yellow: #f4c96b;
  --dm-radius: 14px;
  --dm-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

.dm-simple-body {
  background: var(--dm-bg);
}

.dm-simple-body::before {
  background:
    radial-gradient(circle at 8% 0%, rgba(69, 184, 221, 0.09), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(128, 108, 226, 0.08), transparent 28%),
    linear-gradient(180deg, #080b10 0%, #07090d 46%, #06080b 100%);
  background-size: auto;
}

.dm-simple-body::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.55;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--dm-cyan);
  outline-offset: 2px;
}

[hidden],
[data-surface-panel][hidden],
[data-tool-panel][hidden] {
  display: none !important;
}

.dm-simple-shell {
  grid-template-columns: 66px minmax(0, 1fr);
}

.dm-simple-main {
  width: min(1680px, calc(100vw - 94px));
  padding: 14px 0 34px;
}

.dm-simple-rail {
  gap: 8px;
  padding: 14px 10px;
  border-color: rgba(133, 158, 188, 0.14);
  background: rgba(6, 9, 13, 0.94);
  box-shadow: 10px 0 34px rgba(0, 0, 0, 0.16);
}

.dm-simple-rail-mark,
.dm-simple-rail-btn {
  width: 44px;
  height: 44px;
}

.dm-simple-rail-logo,
.dm-simple-logo {
  border-color: rgba(110, 220, 255, 0.3);
  border-radius: 11px;
  color: var(--dm-cyan);
  background: linear-gradient(145deg, rgba(110, 220, 255, 0.1), rgba(8, 13, 19, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.dm-simple-rail-btn {
  border-radius: 11px;
}

.dm-simple-rail-btn:hover,
.dm-simple-rail-btn.is-active {
  border-color: rgba(110, 220, 255, 0.34);
  color: #eafaff;
  background: rgba(110, 220, 255, 0.09);
  box-shadow: inset 3px 0 0 var(--dm-cyan);
}

.dm-simple-topbar,
.dm-simple-controls,
.dm-simple-metrics,
.dm-chart-panel,
.dm-ladder-panel,
.dm-intel-card,
.dm-decision-lens,
.dm-toolkit {
  border-color: rgba(126, 146, 174, 0.2);
  border-radius: var(--dm-radius);
  background: linear-gradient(180deg, rgba(17, 22, 31, 0.97), rgba(10, 14, 20, 0.98));
  box-shadow: var(--dm-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dm-simple-topbar::before,
.dm-simple-controls::before,
.dm-chart-panel::before,
.dm-ladder-panel::before,
.dm-intel-card::before {
  display: none;
}

.dm-simple-topbar {
  grid-template-columns: auto minmax(320px, 1fr) auto;
  min-height: 64px;
  padding: 9px 12px;
}

.dm-simple-brand {
  gap: 10px;
}

.dm-simple-logo {
  width: 40px;
  height: 40px;
}

.dm-simple-brand strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.dm-simple-brand small {
  margin-top: 4px;
  color: #718096;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.dm-simple-topnav {
  justify-content: center;
  gap: 2px;
}

.dm-simple-topnav a {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}

.dm-simple-topnav a:hover,
.dm-simple-topnav a.is-active {
  border-color: transparent;
  color: #effbff;
  background: rgba(110, 220, 255, 0.09);
}

.dm-simple-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-simple-status {
  min-width: 174px;
  min-height: 44px;
  padding: 8px 11px;
  border-color: rgba(126, 146, 174, 0.2);
  border-radius: 10px;
  background: rgba(5, 8, 12, 0.68);
}

.dm-simple-status strong {
  font-size: 13px;
}

.dm-simple-status small {
  max-width: 175px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-live-dot {
  width: 7px;
  height: 7px;
  animation-duration: 2.4s;
}

.dm-focus-button,
.dm-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(126, 146, 174, 0.22);
  border-radius: 10px;
  color: var(--dm-muted);
  background: rgba(5, 8, 12, 0.68);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: 150ms ease;
}

.dm-focus-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dm-focus-button:hover,
.dm-focus-button.is-active,
.dm-logout-link:hover {
  border-color: rgba(110, 220, 255, 0.36);
  color: #effbff;
  background: rgba(110, 220, 255, 0.08);
}

.dm-workspace-jump {
  position: sticky;
  top: 8px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-top: 10px;
  padding: 5px 7px;
  border: 1px solid rgba(126, 146, 174, 0.2);
  border-radius: 12px;
  background: rgba(8, 12, 17, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.dm-workspace-jump-label {
  padding: 0 9px;
  color: #667489;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dm-workspace-jump a {
  position: relative;
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: 140ms ease;
}

.dm-workspace-jump a:hover,
.dm-workspace-jump a.is-active {
  color: #f1fbff;
  background: rgba(110, 220, 255, 0.08);
}

.dm-workspace-jump a.is-active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 1px;
  background: var(--dm-cyan);
  box-shadow: 0 0 8px rgba(110, 220, 255, 0.8);
}

.dm-workspace-shortcuts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-right: 5px;
  color: #667489;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.dm-workspace-shortcuts kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(126, 146, 174, 0.22);
  border-radius: 5px;
  color: #aeb8c6;
  background: rgba(4, 7, 11, 0.74);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--dm-mono);
  font-size: 8px;
}

.dm-simple-controls {
  grid-template-columns: minmax(120px, 0.75fr) minmax(160px, 0.95fr) auto minmax(110px, 0.7fr) repeat(4, auto);
  gap: 9px;
  margin-top: 10px;
  padding: 10px 11px;
}

.dm-control {
  gap: 5px;
}

.dm-control span,
.dm-mini-kicker {
  color: #78869a;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.dm-control input,
.dm-control select {
  min-height: 42px;
  border-color: rgba(126, 146, 174, 0.28);
  border-radius: 10px;
  background: rgba(5, 8, 12, 0.84);
  padding: 0 11px;
  font-family: var(--dm-mono);
  font-size: 13px;
  font-weight: 700;
}

.dm-control input:focus,
.dm-control select:focus {
  border-color: rgba(110, 220, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(110, 220, 255, 0.1);
}

.dm-segmented {
  min-height: 42px;
  padding: 3px;
  border-color: rgba(126, 146, 174, 0.28);
  border-radius: 10px;
  background: rgba(5, 8, 12, 0.84);
}

.dm-segmented button {
  min-width: 104px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}

.dm-segmented button.is-active {
  color: #071016;
  background: var(--dm-cyan);
  box-shadow: 0 5px 16px rgba(110, 220, 255, 0.16);
}

.dm-ghost-button,
.dm-primary-button {
  min-height: 42px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
}

.dm-ghost-button {
  border-color: rgba(126, 146, 174, 0.28);
  background: rgba(5, 8, 12, 0.84);
}

.dm-primary-button {
  color: #071016;
  background: linear-gradient(135deg, #73ddff, #9aa1ff);
}

.dm-simple-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 10px;
  border-radius: var(--dm-radius);
}

.dm-simple-metrics article {
  position: relative;
  min-height: 88px;
  padding: 14px 16px 12px;
  border-right: 1px solid rgba(126, 146, 174, 0.14);
  background: rgba(7, 10, 15, 0.56);
}

.dm-simple-metrics article:last-child {
  border-right: 0;
}

.dm-simple-metrics article::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: rgba(110, 220, 255, 0.2);
}

.dm-summary-card-call::before {
  background: rgba(255, 128, 152, 0.5) !important;
}

.dm-summary-card-put::before {
  background: rgba(101, 221, 160, 0.5) !important;
}

.dm-summary-card-poc::before {
  background: rgba(157, 145, 255, 0.5) !important;
}

.dm-simple-metrics span {
  color: #768499;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.dm-simple-metrics strong {
  margin-top: 8px;
  overflow: hidden;
  font-family: var(--dm-mono);
  font-size: clamp(18px, 1.8vw, 25px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-simple-metrics strong.is-positive {
  color: var(--dm-green);
}

.dm-simple-metrics strong.is-negative {
  color: var(--dm-red);
}

.dm-simple-metrics strong.is-neutral {
  color: var(--dm-yellow);
}

.dm-summary-card-pressure strong {
  font-size: clamp(16px, 1.5vw, 21px);
}

.dm-simple-metrics small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: #7e8b9e;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-simple-metrics small b,
.dm-simple-metrics small i {
  color: inherit;
  font-style: normal;
  font-weight: 700;
}

.dm-market-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
  scroll-margin-top: 68px;
}

.dm-market-workspace .dm-candle-panel {
  min-width: 0;
  margin-top: 0;
}

.dm-chart-panel {
  padding: 13px;
}

.dm-chart-head {
  min-height: 40px;
  margin-bottom: 9px;
}

.dm-chart-head h1,
.dm-chart-head h2 {
  margin-top: 4px;
  color: #f0f4fa;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.dm-chart-head p {
  color: #7e8b9e;
  font-size: 10px;
}

.dm-market-workspace .dm-candle-chart {
  height: 392px;
  min-height: 360px;
}

.dm-native-chart,
.dm-small-native-chart,
.dm-strike-heatmap {
  border-color: rgba(110, 220, 255, 0.13);
  border-radius: 11px;
  background-color: #06090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.dm-decision-lens {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(126, 146, 174, 0.2);
  overflow: hidden;
}

.dm-decision-lens::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(110, 220, 255, 0.055), transparent);
}

.dm-decision-lens-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.dm-decision-lens h2 {
  margin: 5px 0 0;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.dm-lens-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid rgba(101, 221, 160, 0.22);
  border-radius: 999px;
  color: #b6ebce;
  background: rgba(101, 221, 160, 0.06);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.dm-lens-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dm-green);
  box-shadow: 0 0 8px rgba(101, 221, 160, 0.7);
}

#simple-lens-copy {
  position: relative;
  min-height: 44px;
  margin: 18px 0 0;
  color: #bac4d2;
  font-size: 12px;
  line-height: 1.55;
}

.dm-wall-range {
  margin-top: 17px;
  padding: 13px 12px 11px;
  border: 1px solid rgba(126, 146, 174, 0.17);
  border-radius: 11px;
  background: rgba(4, 7, 11, 0.52);
}

.dm-wall-range-labels,
.dm-wall-range-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: #6f7c8e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dm-wall-track {
  position: relative;
  height: 4px;
  margin: 19px 4px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(101, 221, 160, 0.72), rgba(157, 145, 255, 0.5) 50%, rgba(255, 128, 152, 0.72));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 20px rgba(110, 220, 255, 0.06);
}

.dm-wall-track.is-empty {
  opacity: 0.35;
}

.dm-wall-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #071016;
  border-radius: 50%;
  translate: -50% -50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 2px rgba(203, 213, 225, 0.35);
}

.dm-wall-marker.is-put,
.dm-wall-range-key i.is-put {
  background: var(--dm-green);
}

.dm-wall-marker.is-call,
.dm-wall-range-key i.is-call {
  background: var(--dm-red);
}

.dm-wall-marker.is-poc,
.dm-wall-range-key i.is-poc {
  background: var(--dm-purple);
}

.dm-wall-marker.is-spot {
  z-index: 2;
  width: 13px;
  height: 13px;
  background: var(--dm-yellow);
  box-shadow: 0 0 0 3px rgba(244, 201, 107, 0.18), 0 0 16px rgba(244, 201, 107, 0.5);
}

.dm-wall-range-key {
  justify-content: center;
  gap: 12px;
}

.dm-wall-range-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dm-wall-range-key i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dm-yellow);
}

.dm-lens-readout {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.16);
  border-radius: 10px;
  background: rgba(126, 146, 174, 0.12);
}

.dm-lens-readout > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 10px;
  background: rgba(5, 8, 12, 0.82);
}

.dm-lens-readout span {
  color: #6f7c8e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.dm-lens-readout strong {
  overflow: hidden;
  color: #c8d1dd;
  font-family: var(--dm-mono);
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-lens-readout strong.is-positive {
  color: var(--dm-green);
}

.dm-lens-readout strong.is-negative {
  color: var(--dm-red);
}

.dm-lens-readout strong.is-neutral {
  color: var(--dm-yellow);
}

.dm-lens-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.dm-lens-levels article {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(126, 146, 174, 0.16);
  border-radius: 10px;
  background: rgba(5, 8, 12, 0.56);
}

.dm-lens-levels span,
.dm-lens-levels small {
  display: block;
  overflow: hidden;
  color: #728095;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dm-lens-levels strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-family: var(--dm-mono);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-lens-levels article:first-child strong {
  color: var(--dm-green);
}

.dm-lens-levels article:last-child strong {
  color: var(--dm-red);
}

.dm-lens-levels small {
  margin-top: 5px;
  color: #9aa6b7;
  text-transform: none;
}

.dm-floor-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 10px;
  margin-top: 10px;
  scroll-margin-top: 68px;
}

.dm-floor-chart {
  padding: 13px;
}

.dm-surface-map-head {
  align-items: center;
}

.dm-surface-map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dm-surface-map-actions p {
  max-width: 300px;
}

.dm-surface-community-share {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(192, 132, 252, 0.1));
  color: #b9f6ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.dm-surface-community-share:hover {
  border-color: rgba(34, 211, 238, 0.72);
  color: #ffffff;
  transform: translateY(-1px);
}

.dm-surface-view-tabs,
.dm-toolkit-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(126, 146, 174, 0.2);
  border-radius: 9px;
  background: rgba(4, 7, 11, 0.68);
}

.dm-surface-view-tabs button,
.dm-toolkit-tabs button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #7f8da1;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.dm-surface-view-tabs button:hover,
.dm-surface-view-tabs button.is-active,
.dm-toolkit-tabs button:hover,
.dm-toolkit-tabs button.is-active {
  color: #071016;
  background: var(--dm-cyan);
}

.dm-surface-view-panel {
  animation: dmSurfacePanelIn 180ms ease both;
}

.dm-floor-chart .dm-native-chart {
  height: 560px;
  min-height: 520px;
}

.dm-surface-view-panel.dm-heatmap-panel {
  margin-top: 0;
}

.dm-surface-view-panel .dm-strike-heatmap {
  height: 560px;
  max-height: 560px;
}

.dm-ladder-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  max-height: 650px;
}

.dm-ladder-head {
  min-height: 65px;
  border-color: rgba(126, 146, 174, 0.14);
}

.dm-ladder-head h2 {
  font-size: 16px;
}

.dm-ladder-head > strong {
  border-color: rgba(101, 221, 160, 0.22);
  color: #b8efd0;
  background: rgba(101, 221, 160, 0.06);
}

.dm-ladder-columns {
  border-color: rgba(126, 146, 174, 0.14);
  color: #6f7c8e;
}

.dm-strike-ladder {
  gap: 5px;
  scrollbar-color: #344154 transparent;
}

.dm-ladder-row {
  min-height: 34px;
  border-color: rgba(126, 146, 174, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.022);
}

.dm-intel-grid {
  gap: 10px;
  margin-top: 10px;
  scroll-margin-top: 68px;
}

.dm-intel-card {
  border: 1px solid rgba(126, 146, 174, 0.2);
}

.dm-toolkit {
  margin-top: 10px;
  border: 1px solid rgba(126, 146, 174, 0.2);
  overflow: hidden;
  scroll-margin-top: 68px;
}

.dm-toolkit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(126, 146, 174, 0.14);
}

.dm-toolkit-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.dm-toolkit-head p {
  margin: 5px 0 0;
  color: #7c899b;
  font-size: 10px;
}

.dm-toolkit [data-tool-panel] {
  margin-top: 0;
  border: 0;
  animation: dmSurfacePanelIn 180ms ease both;
}

.dm-toolkit .dm-futures-book-head,
.dm-toolkit .dm-fo-lab-head,
.dm-toolkit .dm-futures-suite-head {
  border: 0;
  border-bottom: 1px solid rgba(126, 146, 174, 0.14);
  border-radius: 0;
  background: rgba(5, 8, 12, 0.38);
}

.dm-toolkit .dm-futures-book-grid,
.dm-toolkit .dm-fo-grid,
.dm-toolkit .dm-futures-suite-grid {
  border: 0;
  border-radius: 0;
}

.dm-toolkit .dm-futures-book-card,
.dm-toolkit .dm-fo-card,
.dm-toolkit .dm-futures-tool {
  background-color: rgba(7, 10, 15, 0.82);
  background-image: none;
}

body.is-surface-focus .dm-simple-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.is-surface-focus .dm-simple-rail,
body.is-surface-focus .dm-workspace-jump,
body.is-surface-focus .dm-command-summary,
body.is-surface-focus .dm-intel-grid,
body.is-surface-focus .dm-toolkit,
body.is-surface-focus .dm-gamma-adjustment,
body.is-surface-focus .dm-simple-topnav,
body.is-surface-focus .dm-logout-link {
  display: none !important;
}

body.is-surface-focus .dm-simple-main {
  width: min(1820px, calc(100vw - 24px));
}

body.is-surface-focus .dm-simple-topbar {
  grid-template-columns: auto 1fr;
}

body.is-surface-focus .dm-simple-topbar-actions {
  justify-self: end;
}

body.is-surface-focus .dm-market-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
}

body.is-surface-focus .dm-market-workspace .dm-candle-chart {
  height: min(54vh, 650px);
  min-height: 440px;
}

@keyframes dmSurfacePanelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  .dm-simple-topbar {
    grid-template-columns: auto 1fr;
  }

  .dm-simple-topnav {
    display: none;
  }

  .dm-simple-topbar-actions {
    justify-self: end;
  }

  .dm-simple-controls {
    grid-template-columns: minmax(130px, 1fr) minmax(170px, 1.2fr) minmax(330px, 2fr) minmax(120px, 0.8fr);
  }

  .dm-simple-controls > .dm-ghost-button,
  .dm-simple-controls > .dm-primary-button {
    min-height: 38px;
  }

  .dm-floor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  }

  .dm-surface-map-actions p {
    display: none;
  }
}

@media (max-width: 1040px) {
  .dm-market-workspace,
  body.is-surface-focus .dm-market-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-market-workspace .dm-candle-chart {
    height: 420px;
  }

  .dm-decision-lens {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
    gap: 8px 18px;
  }

  .dm-decision-lens-head,
  #simple-lens-copy,
  .dm-lens-readout {
    grid-column: 1;
  }

  .dm-wall-range,
  .dm-lens-levels {
    grid-column: 2;
  }

  .dm-wall-range {
    grid-row: 1;
    margin-top: 0;
  }

  .dm-lens-levels {
    grid-row: 2;
    padding-top: 0;
  }

  .dm-lens-readout {
    grid-row: 3;
    margin-top: 0;
  }

  .dm-floor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-ladder-panel {
    max-height: 560px;
  }
}

@media (max-width: 980px) {
  .dm-simple-shell {
    display: block;
  }

  .dm-simple-rail {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 90;
    flex-direction: row;
    justify-content: center;
    width: auto;
    height: 58px;
    padding: 6px 8px;
    border: 1px solid rgba(126, 146, 174, 0.24);
    border-radius: 15px;
    background: rgba(7, 10, 15, 0.92);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px);
  }

  .dm-simple-rail-mark,
  .dm-simple-rail-gap {
    display: none;
  }

  .dm-simple-rail-btn {
    width: 46px;
    height: 44px;
  }

  .dm-simple-main {
    width: min(1680px, calc(100vw - 20px));
    padding: 10px 0 84px;
  }

  .dm-simple-topbar {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .dm-simple-topbar-actions {
    justify-self: end;
  }

  .dm-simple-status {
    min-width: 0;
  }

  .dm-simple-status small {
    max-width: 120px;
  }

  .dm-logout-link {
    display: none;
  }

  .dm-workspace-jump {
    top: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dm-workspace-jump-label {
    display: none;
  }

  .dm-workspace-shortcuts {
    display: none;
  }

  .dm-workspace-jump a {
    flex: 0 0 auto;
  }

  .dm-simple-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dm-simple-controls .dm-segmented {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dm-simple-metrics {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .dm-simple-metrics article {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }

  .dm-intel-grid,
  .dm-futures-book-grid,
  .dm-fo-grid,
  .dm-futures-suite-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-toolkit-head {
    align-items: start;
    flex-direction: column;
  }

  .dm-toolkit-tabs {
    width: 100%;
  }

  .dm-toolkit-tabs button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .dm-simple-main {
    width: min(1680px, calc(100vw - 12px));
    padding-top: 6px;
  }

  .dm-simple-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 8px;
  }

  .dm-simple-brand small,
  .dm-focus-button span,
  .dm-simple-status strong,
  .dm-simple-status small {
    display: none;
  }

  .dm-simple-topbar-actions {
    min-width: 0;
    gap: 5px;
  }

  .dm-simple-status {
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .dm-simple-status .dm-live-dot {
    grid-area: 1 / 1;
  }

  .dm-simple-brand strong {
    font-size: 15px;
  }

  .dm-simple-logo {
    width: 36px;
    height: 36px;
  }

  .dm-simple-status {
    min-height: 38px;
    padding: 7px 9px;
  }

  .dm-focus-button {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .dm-workspace-jump {
    margin-top: 6px;
  }

  .dm-simple-controls {
    gap: 7px;
    margin-top: 6px;
    padding: 9px;
  }

  .dm-simple-controls > * {
    min-width: 0;
  }

  .dm-simple-controls .dm-segmented button {
    min-width: 0;
    padding: 0 3px;
    font-size: 9px;
  }

  .dm-control input,
  .dm-control select {
    font-size: 11px;
  }

  .dm-simple-controls > .dm-ghost-button,
  .dm-simple-controls > .dm-primary-button {
    padding: 0 8px;
    font-size: 10px;
  }

  .dm-simple-metrics {
    margin-top: 6px;
  }

  .dm-simple-metrics article {
    flex-basis: 190px;
    min-height: 82px;
  }

  .dm-market-workspace,
  .dm-floor-grid,
  .dm-intel-grid,
  .dm-toolkit {
    margin-top: 6px;
  }

  .dm-market-workspace .dm-candle-chart,
  body.is-surface-focus .dm-market-workspace .dm-candle-chart {
    height: 350px;
    min-height: 320px;
  }

  .dm-decision-lens {
    display: block;
    padding: 13px;
  }

  .dm-wall-range,
  .dm-lens-levels {
    margin-top: 14px;
  }

  .dm-surface-map-head {
    display: block;
  }

  .dm-surface-map-actions {
    justify-content: stretch;
    margin-top: 10px;
  }

  .dm-surface-view-tabs {
    width: 100%;
  }

  .dm-surface-view-tabs button {
    flex: 1;
  }

  .dm-floor-chart .dm-native-chart {
    height: 430px;
    min-height: 400px;
  }

  .dm-surface-view-panel .dm-strike-heatmap {
    height: 430px;
    max-height: 430px;
  }

  .dm-ladder-panel {
    min-height: 420px;
    max-height: 500px;
  }

  .dm-toolkit-head h2 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Candle gamma impact field --------------------------------------------- */

.dm-candle-chart > .tv-lightweight-charts,
.dm-candle-chart .tv-lightweight-charts {
  position: relative !important;
  z-index: 3;
}

.dm-candle-gamma-overlay,
.dm-candle-gamma-label-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.dm-candle-gamma-overlay {
  z-index: 2;
}

.dm-candle-gamma-label-overlay {
  z-index: 6;
}

.dm-candle-gamma-overlay.is-stale,
.dm-candle-gamma-label-overlay.is-stale .dm-candle-gamma-label-level {
  opacity: 0.42;
  filter: saturate(0.55);
}

.dm-candle-gamma-band-level {
  position: absolute;
  left: 0;
  right: 68px;
  height: var(--gamma-band-height);
  transform: translateY(-50%);
  transition: top 180ms ease, height 180ms ease, opacity 180ms ease;
}

.dm-candle-gamma-band {
  position: absolute;
  top: 0;
  left: var(--gamma-band-left);
  width: var(--gamma-band-width);
  height: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(var(--gamma-edge-rgb), 0.28);
  border-bottom: 1px solid rgba(var(--gamma-rgb), 0.2);
  border-radius: 2px 12px 12px 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--gamma-rgb), 0.02) 0%,
    rgba(var(--gamma-rgb), var(--gamma-fill-alpha)) 12%,
    rgba(var(--gamma-rgb), var(--gamma-fill-alpha)) 76%,
    rgba(var(--gamma-rgb), 0.025) 100%
  );
  box-shadow:
    0 0 var(--gamma-glow) rgba(var(--gamma-rgb), 0.19),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
  clip-path: polygon(0 12%, 72% 15%, 100% 50%, 72% 85%, 0 88%);
}

.dm-candle-gamma-band-level.is-negative .dm-candle-gamma-band {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(var(--gamma-edge-rgb), 0.035) 0 4px,
      transparent 4px 9px
    ),
    linear-gradient(
      90deg,
      rgba(var(--gamma-rgb), 0.02) 0%,
      rgba(var(--gamma-rgb), var(--gamma-fill-alpha)) 12%,
      rgba(var(--gamma-rgb), var(--gamma-fill-alpha)) 76%,
      rgba(var(--gamma-rgb), 0.025) 100%
    );
}

.dm-candle-gamma-band::before {
  content: "";
  position: absolute;
  top: 34%;
  right: 2%;
  bottom: 34%;
  left: 3%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--gamma-edge-rgb), 0.38) 18%, rgba(var(--gamma-rgb), 0.16) 74%, transparent);
  filter: blur(3px);
}

.dm-candle-gamma-core {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: var(--gamma-core-width);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(var(--gamma-edge-rgb), 0.64) 12%, rgba(var(--gamma-edge-rgb), 0.76) 78%, transparent);
  box-shadow: 0 0 7px rgba(var(--gamma-rgb), 0.52);
  transform: translateY(-50%);
}

.dm-candle-gamma-band-level.is-side-max .dm-candle-gamma-band {
  border-top-color: rgba(var(--gamma-edge-rgb), 0.62);
  border-bottom-color: rgba(var(--gamma-rgb), 0.42);
  box-shadow:
    0 0 calc(var(--gamma-glow) + 6px) rgba(var(--gamma-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.dm-candle-gamma-band-level.is-king .dm-candle-gamma-band {
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow:
    0 0 calc(var(--gamma-glow) + 8px) rgba(var(--gamma-rgb), 0.3),
    0 0 18px rgba(250, 204, 21, 0.14),
    inset 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.dm-candle-gamma-band-level.is-wall-touch .dm-candle-gamma-band {
  animation: dmGammaBandTouch 1.8s ease-out both;
}

.dm-candle-gamma-label-level {
  position: absolute;
  left: 0;
  right: 68px;
  height: 1px;
  transform: translateY(-50%);
  transition: top 180ms ease, opacity 180ms ease;
}

.dm-candle-gamma-label-level > i {
  position: absolute;
  top: 0;
  right: 136px;
  left: var(--gamma-anchor-x);
  height: 1px;
  opacity: 0.5;
  background: repeating-linear-gradient(90deg, rgba(var(--gamma-rgb), 0.78) 0 4px, transparent 4px 8px);
  box-shadow: 0 0 7px rgba(var(--gamma-rgb), 0.2);
}

.dm-candle-gamma-label-level > span {
  position: absolute;
  top: 0;
  right: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 7px;
  width: 126px;
  min-height: 31px;
  padding: 5px 7px;
  border: 1px solid rgba(var(--gamma-rgb), 0.46);
  border-radius: 6px;
  color: #eaf8ff;
  background: rgba(3, 7, 12, 0.88);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 2px 0 0 rgba(var(--gamma-rgb), 0.82);
  backdrop-filter: blur(12px);
  transform: translateY(calc(-50% + var(--gamma-label-shift, 0px)));
}

.dm-candle-gamma-label-level.is-side-max > span {
  border-color: rgba(var(--gamma-rgb), 0.74);
  background: linear-gradient(90deg, rgba(var(--gamma-rgb), 0.12), rgba(3, 7, 12, 0.94) 46%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.46), 0 0 16px rgba(var(--gamma-rgb), 0.16), inset 2px 0 0 rgba(var(--gamma-rgb), 0.96);
}

.dm-candle-gamma-label-level.is-king > span {
  border-color: rgba(250, 204, 21, 0.82);
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.14), rgba(3, 7, 12, 0.95) 48%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48), 0 0 18px rgba(250, 204, 21, 0.17), inset 2px 0 0 #facc15;
}

.dm-candle-gamma-label-level.is-king small {
  color: #fde68a;
}

.dm-candle-gamma-label-level small,
.dm-candle-gamma-label-level strong,
.dm-candle-gamma-label-level em {
  min-width: 0;
  overflow: hidden;
  font-family: var(--dm-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-candle-gamma-label-level small {
  grid-column: 1 / -1;
  color: rgba(var(--gamma-rgb), 0.96);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dm-candle-gamma-label-level strong {
  color: #f4f9ff;
  font-size: 10px;
  font-weight: 900;
}

.dm-candle-gamma-label-level em {
  align-self: end;
  color: #8190a4;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.dm-candle-gamma-legend {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 5px 8px;
  border: 1px solid rgba(110, 220, 255, 0.16);
  border-radius: 7px;
  color: #8796a9;
  background: rgba(3, 7, 12, 0.76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-family: var(--dm-mono);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.dm-candle-gamma-legend strong {
  color: #e9f4ff;
  font-size: 9px;
  letter-spacing: 0.06em;
}

.dm-candle-gamma-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 4px;
  margin-right: 4px;
  border-radius: 999px;
  vertical-align: 1px;
}

.dm-candle-gamma-legend .is-positive {
  color: #8beeff;
}

.dm-candle-gamma-legend .is-positive::before {
  background: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 7px rgba(34, 211, 238, 0.36);
}

.dm-candle-gamma-legend .is-negative {
  color: #d8b4fe;
}

.dm-candle-gamma-legend .is-negative::before {
  background: repeating-linear-gradient(135deg, rgba(192, 132, 252, 0.88) 0 3px, rgba(251, 113, 133, 0.52) 3px 5px);
  box-shadow: 0 0 7px rgba(192, 132, 252, 0.32);
}

.dm-candle-gamma-legend .is-flip {
  color: #fde68a;
}

.dm-candle-gamma-legend .is-flip::before {
  height: 2px;
  background: repeating-linear-gradient(90deg, #fde047 0 5px, transparent 5px 8px);
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.48);
}

.dm-candle-gamma-legend.is-stale {
  border-color: rgba(245, 158, 11, 0.35);
  color: #f6c86f;
}

@keyframes dmGammaBandTouch {
  0%, 100% { filter: brightness(1); }
  18% { filter: brightness(1.85) saturate(1.3); box-shadow: 0 0 36px rgba(var(--gamma-rgb), 0.72), inset 0 0 0 1px rgba(255, 255, 255, 0.64); }
  48% { filter: brightness(1.22); }
}

@media (max-width: 980px) {
  .dm-candle-gamma-label-level > i {
    right: 120px;
  }

  .dm-candle-gamma-label-level > span {
    width: 110px;
  }

  .dm-candle-gamma-legend {
    gap: 6px;
  }

  .dm-candle-gamma-legend small {
    display: none;
  }
}

@media (max-width: 560px) {
  .dm-candle-gamma-band-level,
  .dm-candle-gamma-label-level {
    right: 54px;
  }

  .dm-candle-gamma-label-level > i {
    right: 101px;
  }

  .dm-candle-gamma-label-level > span {
    right: 2px;
    width: 94px;
    min-height: 27px;
    padding: 4px 6px;
  }

  .dm-candle-gamma-label-level em {
    display: none;
  }

  .dm-candle-gamma-label-level strong {
    grid-column: 1 / -1;
  }

  .dm-candle-gamma-legend {
    top: 6px;
    left: 6px;
    min-height: 24px;
    padding: 4px 6px;
  }

  .dm-candle-gamma-legend span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-candle-gamma-band-level,
  .dm-candle-gamma-label-level,
  .dm-candle-gamma-band-level.is-wall-touch .dm-candle-gamma-band {
    animation: none !important;
    transition: none !important;
  }
}

.dm-heatmap-row {
  display: contents;
}

.dm-summary-card-king::before {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.72), rgba(177, 167, 255, 0.5)) !important;
}

.dm-summary-card-leg::before {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), rgba(244, 114, 182, 0.58)) !important;
}

.dm-summary-card-leg strong {
  font-size: clamp(15px, 1.4vw, 21px) !important;
}

.dm-level-badge.is-leg-call,
.dm-ladder-strike .dm-level-badge.is-leg-call,
.dm-heatmap-strike .dm-level-badge.is-leg-call {
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: #a5f3fc;
  background: rgba(8, 88, 112, 0.76);
}

.dm-level-badge.is-leg-put,
.dm-ladder-strike .dm-level-badge.is-leg-put,
.dm-heatmap-strike .dm-level-badge.is-leg-put {
  border: 1px solid rgba(244, 114, 182, 0.36);
  color: #fbcfe8;
  background: rgba(112, 29, 83, 0.76);
}

.dm-level-badge.is-leg-mixed,
.dm-ladder-strike .dm-level-badge.is-leg-mixed,
.dm-heatmap-strike .dm-level-badge.is-leg-mixed {
  border: 1px solid rgba(250, 204, 21, 0.34);
  color: #fef3c7;
  background: rgba(113, 63, 18, 0.76);
}

.dm-level-badge.is-leg-observed {
  box-shadow: 0 0 10px currentColor;
}

.dm-ladder-row.is-king {
  border-color: rgba(250, 204, 21, 0.58);
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.1), rgba(177, 167, 255, 0.06), rgba(255, 255, 255, 0.035));
  box-shadow: inset 3px 0 0 rgba(250, 204, 21, 0.78), 0 0 16px rgba(250, 204, 21, 0.08);
}

.dm-level-badge.is-king,
.dm-ladder-strike .dm-level-badge.is-king,
.dm-heatmap-strike .dm-level-badge.is-king {
  color: #171005;
  background: linear-gradient(135deg, #fde68a, #facc15);
  box-shadow: 0 0 9px rgba(250, 204, 21, 0.25);
}

.dm-level-badge.is-call,
.dm-ladder-strike .dm-level-badge.is-call,
.dm-heatmap-strike .dm-level-badge.is-call {
  background: #fb7185;
}

.dm-level-badge.is-put,
.dm-ladder-strike .dm-level-badge.is-put,
.dm-heatmap-strike .dm-level-badge.is-put {
  background: #4ade80;
}

.dm-ladder-spot-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 3px 9px;
  border-block: 1px solid rgba(253, 224, 71, 0.56);
  color: #fde68a;
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.035), rgba(253, 224, 71, 0.15) 50%, rgba(253, 224, 71, 0.035));
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.09), inset 0 0 18px rgba(253, 224, 71, 0.035);
  font-family: var(--dm-mono);
}

.dm-ladder-spot-row span,
.dm-heatmap-spot-cell span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fde68a;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.dm-ladder-spot-row span i,
.dm-heatmap-spot-cell span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 9px rgba(253, 224, 71, 0.72);
}

.dm-ladder-spot-row strong,
.dm-heatmap-spot-cell strong {
  color: #fff8cf;
  font-size: 11px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.dm-ladder-spot-row em,
.dm-heatmap-spot-cell em {
  color: rgba(253, 230, 138, 0.64);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-align: right;
}

.dm-heatmap-spot-cell {
  position: relative;
  z-index: 4;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(78px, 0.68fr) auto minmax(0, 1fr);
  gap: 12px;
  min-height: 24px;
  padding: 3px 8px;
  border-block: 1px solid rgba(253, 224, 71, 0.56);
  color: #fde68a;
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.06), rgba(253, 224, 71, 0.18) 28%, rgba(253, 224, 71, 0.055));
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.1);
}

.dm-strike-heatmap .dm-heatmap-strike.is-king {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), rgba(8, 11, 16, 0.9));
  box-shadow: inset 3px 0 0 rgba(250, 204, 21, 0.74), 1px 0 0 rgba(148, 163, 184, 0.16);
}

#simple-gex-chart .dm-chart-bar.is-king {
  opacity: 1;
  stroke: #facc15;
  stroke-width: 2.2;
}

#simple-gex-chart .dm-chart-king-line {
  stroke: #f59e0b;
  stroke-width: 2.2;
  stroke-dasharray: 2 5;
  opacity: 0.96;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.32));
  vector-effect: non-scaling-stroke;
}

#simple-gex-chart .dm-chart-king-label rect {
  fill: rgba(35, 24, 4, 0.96);
  stroke: #f59e0b;
}

#simple-gex-chart .dm-chart-king-label text {
  fill: #fde68a;
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 950;
}

#simple-gex-chart .dm-chart-level-line.is-gamma-flip {
  stroke: #fde047;
  stroke-width: 2.4;
  stroke-dasharray: 7 5;
  opacity: 1;
  filter: drop-shadow(0 0 7px rgba(253, 224, 71, 0.48));
}

#simple-gex-chart .dm-chart-level-label.is-gamma-flip rect {
  fill: rgba(38, 32, 5, 0.96);
  stroke: #fde047;
}

#simple-gex-chart .dm-chart-level-label.is-gamma-flip text {
  fill: #fff8cf;
}

.dm-strike-heatmap .dm-heatmap-axis:first-child,
.dm-strike-heatmap .dm-heatmap-strike {
  position: sticky;
  left: 0;
  z-index: 3;
  background-color: #070b10;
  box-shadow: 1px 0 0 rgba(148, 163, 184, 0.16);
}

.dm-strike-heatmap .dm-heatmap-axis:first-child {
  z-index: 5;
}

#simple-price-context {
  color: #8fa2b9;
  font-weight: 650;
}

@media (max-width: 560px) {
  .dm-ladder-spot-row,
  .dm-heatmap-spot-cell {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .dm-ladder-spot-row em,
  .dm-heatmap-spot-cell em {
    display: none;
  }

  .dm-ladder-spot-row strong,
  .dm-heatmap-spot-cell strong {
    text-align: right;
  }
}

@layer dealermap-surface-legacy {
.dm-simple-main {
  width: min(1540px, calc(100vw - 104px));
  min-width: 0;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.dm-simple-rail {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100vh;
  padding: 16px 12px;
  border-right: 1px solid var(--dm-border);
  background: rgba(6, 14, 18, 0.94);
  backdrop-filter: blur(16px);
}

.dm-simple-rail-mark,
.dm-simple-rail-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--dm-muted);
  text-decoration: none;
}

.dm-simple-rail-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(116, 228, 255, 0.42);
  border-radius: 8px;
  color: var(--dm-cyan);
  background: #090d13;
  font-size: 12px;
  font-weight: 900;
}

.dm-simple-rail-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.dm-simple-rail-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dm-simple-rail-btn:hover,
.dm-simple-rail-btn.is-active {
  color: var(--dm-text);
  border-color: rgba(116, 228, 255, 0.45);
  background: rgba(116, 228, 255, 0.1);
}

.dm-simple-rail-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 50;
  translate: 0 -50%;
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  color: var(--dm-text);
  background: rgba(5, 7, 11, 0.96);
  box-shadow: var(--dm-shadow);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.dm-simple-rail-btn[data-tip]:hover::after {
  opacity: 1;
}

.dm-simple-rail-gap {
  flex: 1;
}

.dm-simple-topbar,
.dm-simple-controls,
.dm-simple-metrics,
.dm-chart-panel,
.dm-ladder-panel,
.dm-intel-card,
.dm-side-card,
.dm-login-card {
  position: relative;
  border: 1px solid var(--dm-border);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 21, 30, 0.96), rgba(8, 10, 15, 0.97)),
    rgba(8, 10, 15, 0.96);
  box-shadow: var(--dm-shadow);
  backdrop-filter: blur(14px);
}

.dm-simple-topbar::before,
.dm-simple-controls::before,
.dm-chart-panel::before,
.dm-ladder-panel::before,
.dm-intel-card::before,
.dm-side-card::before,
.dm-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(116, 228, 255, 0.18), transparent 22%, transparent 78%, rgba(167, 139, 250, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 36%);
  opacity: 0.72;
}

.dm-simple-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border-radius: 8px;
}

.dm-simple-brand,
.dm-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dm-simple-logo,
.dm-login-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(116, 228, 255, 0.45);
  border-radius: 8px;
  color: var(--dm-cyan);
  background: #090d13;
  font-weight: 800;
}

.dm-simple-brand strong,
.dm-login-brand strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.dm-simple-brand small,
.dm-login-brand small {
  display: block;
  margin-top: 5px;
  color: var(--dm-muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.dm-simple-topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.dm-simple-topnav::-webkit-scrollbar {
  display: none;
}

.dm-simple-topnav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--dm-muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.dm-simple-topnav a:hover,
.dm-simple-topnav a.is-active {
  color: var(--dm-text);
  border-color: rgba(116, 228, 255, 0.38);
  background: rgba(116, 228, 255, 0.1);
}

.dm-simple-status {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 8px;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  background: rgba(4, 6, 10, 0.74);
}

.dm-simple-status strong {
  line-height: 1;
}

.dm-simple-status small {
  grid-column: 2;
  color: var(--dm-muted);
  font-size: 12px;
}

.dm-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dm-cyan);
  box-shadow: 0 0 18px rgba(116, 228, 255, 0.8);
  animation: dmLivePulse 1.7s ease-in-out infinite;
}

.dm-simple-status.is-stale .dm-live-dot {
  background: var(--dm-yellow);
  box-shadow: 0 0 16px rgba(242, 213, 107, 0.65);
}

.dm-simple-status.is-error .dm-live-dot {
  background: var(--dm-red);
  box-shadow: 0 0 16px rgba(255, 107, 127, 0.65);
}

.dm-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  color: var(--dm-muted);
  text-decoration: none;
  background: rgba(4, 6, 10, 0.74);
}

.dm-simple-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 220px) auto minmax(130px, 160px) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
}

.dm-control {
  display: grid;
  gap: 7px;
}

.dm-control span,
.dm-mini-kicker,
.dm-pressure-table th {
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dm-control input,
.dm-control select,
.dm-login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--dm-border-strong);
  border-radius: 8px;
  color: var(--dm-text);
  background: #05070b;
  outline: none;
  padding: 0 13px;
}

.dm-control input:focus,
.dm-control select:focus,
.dm-login-form input:focus {
  border-color: rgba(116, 228, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(116, 228, 255, 0.14);
}

.dm-control select:disabled {
  color: var(--dm-faint);
  cursor: not-allowed;
}

.dm-control-compact {
  min-width: 130px;
}

.dm-segmented {
  display: inline-flex;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--dm-border-strong);
  border-radius: 8px;
  background: #05070b;
}

.dm-segmented button,
.dm-ghost-button,
.dm-primary-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.dm-segmented button {
  min-width: 116px;
  padding: 0 12px;
  color: var(--dm-muted);
  background: transparent;
}

.dm-segmented button.is-active {
  color: #020509;
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-purple));
  box-shadow: 0 8px 24px rgba(116, 228, 255, 0.17);
}

.dm-ghost-button,
.dm-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.dm-ghost-button {
  border: 1px solid var(--dm-border-strong);
  color: var(--dm-muted);
  background: #05070b;
}

.dm-ghost-button:hover,
.dm-primary-button:hover,
.dm-segmented button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(116, 228, 255, 0.14);
}

.dm-ghost-button.is-active {
  color: #020509;
  background: var(--dm-cyan);
}

.dm-primary-button {
  color: #020509;
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-purple));
}

.dm-refresh-button {
  min-height: 46px;
}

.dm-simple-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 8px;
}

.dm-simple-metrics article {
  min-height: 86px;
  padding: 17px;
  background: rgba(5, 7, 11, 0.84);
}

.dm-simple-metrics span,
.dm-side-card small,
.dm-chart-head p,
.dm-login-copy p,
.dm-login-foot {
  color: var(--dm-muted);
}

.dm-simple-metrics span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dm-simple-metrics strong {
  display: block;
  margin-top: 9px;
  font-size: 28px;
  line-height: 1;
}

.dm-gamma-adjustment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 213, 107, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(242, 213, 107, 0.12), rgba(116, 228, 255, 0.07)),
    rgba(6, 8, 12, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), var(--dm-shadow);
}

.dm-gamma-adjustment[hidden] {
  display: none;
}

.dm-gamma-adjustment b,
.dm-gamma-adjustment span,
.dm-gamma-adjustment em,
.dm-gamma-adjustment small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-gamma-adjustment b {
  color: #fff7c2;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dm-gamma-adjustment span,
.dm-gamma-adjustment em {
  font-family: var(--dm-mono);
  font-size: 12px;
  font-weight: 900;
}

.dm-gamma-adjustment em {
  color: #86efac;
  font-style: normal;
  text-align: right;
}

.dm-gamma-adjustment em.is-down {
  color: #ff9baa;
}

.dm-gamma-adjustment small {
  grid-column: 1 / -1;
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 800;
}

.dm-floor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  align-items: stretch;
  gap: 12px;
  margin-top: 12px;
}

.dm-chart-panel {
  padding: 14px;
  border-radius: 8px;
}

.dm-floor-chart {
  min-width: 0;
  margin-top: 0;
}

.dm-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 8px;
}

.dm-chart-head h1 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.1;
}

.dm-chart-head h2 {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.dm-chart-head p {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  text-align: right;
}

.dm-candle-panel {
  margin-top: 12px;
}

.dm-ladder-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-radius: 8px;
}

.dm-ladder-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(97, 218, 251, 0.14);
}

.dm-ladder-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.1;
}

.dm-ladder-head > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 142px;
  padding: 0 9px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 999px;
  overflow: hidden;
  color: #b9ffd2;
  background: rgba(74, 222, 128, 0.1);
  font-family: var(--dm-mono);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-ladder-head > strong.is-negative {
  border-color: rgba(251, 113, 133, 0.4);
  color: #ffd1d9;
  background: rgba(251, 113, 133, 0.12);
}

.dm-ladder-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(36, 42, 53, 0.75);
  color: var(--dm-muted);
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dm-ladder-columns span:nth-child(2) {
  text-align: center;
}

.dm-ladder-columns span:last-child {
  text-align: right;
}

.dm-strike-ladder {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
}

.dm-ladder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--dm-mono);
}

.dm-ladder-row.is-call {
  border-color: rgba(251, 113, 133, 0.42);
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.12), rgba(255, 255, 255, 0.035));
}

.dm-ladder-row.is-put {
  border-color: rgba(74, 222, 128, 0.4);
  background: linear-gradient(90deg, rgba(74, 222, 128, 0.11), rgba(255, 255, 255, 0.035));
}

.dm-ladder-row.is-poc {
  border-color: rgba(242, 213, 107, 0.4);
  background: linear-gradient(90deg, rgba(242, 213, 107, 0.1), rgba(255, 255, 255, 0.035));
}

.dm-ladder-row.is-spot {
  border-color: rgba(226, 232, 240, 0.34);
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.08), rgba(255, 255, 255, 0.035));
}

.dm-ladder-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dm-ladder-gex {
  justify-content: flex-end;
  text-align: right;
}

.dm-ladder-delta {
  justify-content: flex-start;
}

.dm-ladder-bar em {
  min-width: 46px;
  overflow: hidden;
  color: #cdd8e7;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-ladder-track {
  position: relative;
  flex: 0 1 58px;
  width: 58px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dm-ladder-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.dm-ladder-gex .dm-ladder-track i {
  margin-left: auto;
}

.dm-ladder-bar.is-positive .dm-ladder-track i {
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.35), rgba(74, 222, 128, 0.95));
}

.dm-ladder-bar.is-negative .dm-ladder-track i {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.95), rgba(239, 68, 68, 0.48));
}

.dm-ladder-strike {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  color: #f5f9ff;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.dm-ladder-strike b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  color: #050608;
  background: #dff8ff;
  font-size: 8px;
  font-weight: 950;
}

.dm-ladder-row.is-call .dm-ladder-strike b {
  background: #fb7185;
}

.dm-ladder-row.is-put .dm-ladder-strike b {
  background: #4ade80;
}

.dm-ladder-row.is-poc .dm-ladder-strike b {
  background: #f2d56b;
}

.dm-ladder-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(36, 42, 53, 0.9);
  background: rgba(36, 42, 53, 0.85);
}

.dm-ladder-foot div {
  min-width: 0;
  padding: 10px 11px;
  background: rgba(5, 7, 11, 0.52);
}

.dm-ladder-foot span,
.dm-ladder-foot small {
  display: block;
  overflow: hidden;
  color: var(--dm-muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dm-ladder-foot strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-family: var(--dm-mono);
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-ladder-foot small {
  margin-top: 3px;
  color: #cbd5e1;
  text-transform: none;
}

.dm-heatmap-panel {
  margin-top: 12px;
  min-width: 0;
}

.dm-heatmap-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.dm-heatmap-head h2 {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.1;
}

.dm-heatmap-head small {
  color: var(--dm-muted);
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.dm-strike-heatmap {
  display: grid;
  grid-template-columns: minmax(78px, 0.68fr) repeat(5, minmax(72px, 1fr));
  gap: 1px;
  max-height: 360px;
  border: 1px solid rgba(97, 218, 251, 0.16);
  border-radius: 8px;
  overflow: auto;
  background:
    linear-gradient(rgba(97, 218, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 218, 251, 0.035) 1px, transparent 1px),
    rgba(5, 7, 11, 0.76);
  background-size: 32px 32px, 32px 32px, auto;
}

.dm-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  min-height: 31px;
  padding: 7px 8px;
  color: #e7eef8;
  background: rgba(255, 255, 255, 0.032);
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.dm-heatmap-axis {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-content: flex-end;
  color: var(--dm-muted);
  background: rgba(8, 11, 16, 0.96);
  box-shadow: 0 1px 0 rgba(97, 218, 251, 0.12);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.dm-heatmap-axis:first-child,
.dm-heatmap-strike {
  justify-content: flex-start;
}

.dm-heatmap-strike {
  gap: 5px;
  background: rgba(8, 11, 16, 0.86);
}

.dm-heatmap-strike strong {
  overflow: hidden;
  color: #f7fbff;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
}

.dm-heatmap-strike b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 16px;
  padding: 0 4px;
  border-radius: 4px;
  color: #050608;
  background: #dff8ff;
  font-size: 8px;
  font-weight: 950;
}

.dm-heatmap-strike.is-call b {
  background: #fb7185;
}

.dm-heatmap-strike.is-put b {
  background: #4ade80;
}

.dm-heatmap-strike.is-poc b {
  background: #f2d56b;
}

.dm-heatmap-value {
  border: 1px solid rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dm-heatmap-value span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

.dm-heatmap-value.is-positive {
  color: #c8fff0;
}

.dm-heatmap-value.is-negative {
  color: #ffe0e7;
}

.dm-heatmap-value.is-volume {
  color: #d9eaff;
}

.dm-heatmap-value.is-call {
  color: #d7ffe2;
}

.dm-heatmap-value.is-put {
  color: #ffd7df;
}

.dm-native-chart {
  position: relative;
  width: 100%;
  height: min(64vh, 680px);
  min-height: 430px;
  border: 1px solid rgba(97, 218, 251, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(97, 218, 251, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 218, 251, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 11, 16, 0.99), rgba(2, 4, 7, 0.99));
  background-size: 44px 44px, 44px 44px, auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -44px 90px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(0, 0, 0, 0.52);
}

.dm-candle-chart {
  height: min(46vh, 430px);
  min-height: 320px;
  padding: 0;
  cursor: grab;
  touch-action: none;
}

.dm-candle-chart:active {
  cursor: grabbing;
}

.dm-candle-chart .tv-lightweight-charts,
.dm-candle-chart table,
.dm-candle-chart canvas {
  max-width: 100%;
}

.dm-candle-gamma-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.dm-candle-gamma-level {
  position: absolute;
  left: 0;
  right: 66px;
  height: 1px;
  color: var(--gamma-color);
  opacity: var(--gamma-opacity);
  transform: translateY(-50%);
}

.dm-candle-gamma-level i {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gamma-color) 16%, var(--gamma-color) 82%, transparent);
  box-shadow:
    0 0 var(--gamma-glow) var(--gamma-soft-color),
    0 0 var(--gamma-glow-soft) var(--gamma-color);
}

.dm-candle-gamma-level::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 10%;
  top: -7px;
  height: 15px;
  background: linear-gradient(90deg, transparent, var(--gamma-soft-color) 18%, var(--gamma-soft-color) 82%, transparent);
  filter: blur(9px);
  opacity: 0.34;
}

.dm-candle-gamma-level span {
  position: absolute;
  right: 8px;
  top: -11px;
  min-width: 74px;
  padding: 3px 7px;
  border: 1px solid var(--gamma-color);
  border-radius: 6px;
  background: rgba(3, 7, 12, 0.72);
  color: #ecfeff;
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.86);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.48);
}

.dm-candle-gamma-level.is-negative span {
  color: #ffe4ec;
}

.dm-futures-book {
  margin-top: 12px;
}

.dm-futures-book-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(141, 231, 255, 0.18);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.95), rgba(4, 7, 11, 0.94));
}

.dm-futures-book-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.dm-futures-book-head p {
  margin: 0;
  color: var(--dm-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.dm-futures-book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 1px;
  border: 1px solid rgba(141, 231, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: rgba(36, 42, 53, 0.92);
}

.dm-futures-book-card {
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(rgba(141, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 231, 255, 0.025) 1px, transparent 1px),
    rgba(5, 7, 11, 0.94);
  background-size: 34px 34px, 34px 34px, auto;
}

.dm-futures-book-card.is-live {
  box-shadow: inset 0 2px 0 rgba(74, 222, 128, 0.72);
}

.dm-futures-book-card.is-stale {
  box-shadow: inset 0 2px 0 rgba(245, 158, 11, 0.82);
}

.dm-futures-book-card-head,
.dm-futures-price-line,
.dm-futures-symbol-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dm-futures-book-card-head span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dm-futures-book-card-head b,
.dm-futures-price-line strong,
.dm-futures-book-quote strong,
.dm-futures-book-stats b {
  font-family: var(--dm-mono);
  font-weight: 950;
}

.dm-futures-book-card-head b {
  color: #f8fafc;
  font-size: 15px;
}

.dm-futures-book-card-head em,
.dm-futures-book-card-head small,
.dm-futures-symbol-line,
.dm-futures-book-stats em {
  overflow: hidden;
  color: var(--dm-muted);
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-book-card-head em {
  font-size: 11px;
}

.dm-futures-book-card-head small {
  flex: 0 0 auto;
  font-size: 11px;
}

.dm-futures-price-line {
  margin-top: 16px;
  align-items: end;
}

.dm-futures-price-line strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fafc;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  text-overflow: ellipsis;
}

.dm-futures-price-line em {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-family: var(--dm-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-price-line em.is-up {
  color: #86efac;
}

.dm-futures-price-line em.is-down {
  color: #ff9baa;
}

.dm-futures-symbol-line {
  margin-top: 7px;
  font-family: var(--dm-mono);
  font-size: 11px;
}

.dm-futures-symbol-line span,
.dm-futures-symbol-line em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-symbol-line span {
  color: #dbe8f7;
  font-weight: 950;
}

.dm-futures-symbol-line em {
  font-style: normal;
}

.dm-futures-book-quote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(36, 42, 53, 0.95);
}

.dm-futures-book-quote span {
  min-width: 0;
  padding: 10px;
  background: rgba(8, 13, 19, 0.86);
}

.dm-futures-book-quote b,
.dm-futures-book-quote strong,
.dm-futures-book-quote em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-book-quote b {
  color: var(--dm-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dm-futures-book-quote strong {
  margin-top: 4px;
  color: #dff8ff;
  font-size: 15px;
}

.dm-futures-book-quote em {
  margin-top: 3px;
  color: #9fb0c4;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.dm-futures-range-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #dbeafe;
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 950;
}

.dm-futures-range-line span {
  min-width: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-range-line span:last-child {
  text-align: right;
}

.dm-futures-range-line div {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.72), rgba(141, 231, 255, 0.42), rgba(74, 222, 128, 0.72));
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.08);
}

.dm-futures-range-line i {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 12px rgba(248, 250, 252, 0.78);
}

.dm-futures-book-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(36, 42, 53, 0.95);
}

.dm-futures-book-stats span {
  min-width: 0;
  padding: 9px 8px;
  background: rgba(8, 13, 19, 0.86);
}

.dm-futures-book-stats b,
.dm-futures-book-stats em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-book-stats b {
  color: #c9f7ff;
  font-size: 12px;
}

.dm-futures-book-stats em {
  margin-top: 3px;
  font-size: 9px;
  text-transform: uppercase;
}

.dm-fo-lab {
  margin-top: 12px;
}

.dm-fo-lab-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(97, 218, 251, 0.14);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(9, 14, 21, 0.94), rgba(4, 7, 11, 0.92));
}

.dm-fo-lab-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.dm-fo-product-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(44px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(97, 218, 251, 0.16);
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.72);
}

.dm-fo-product-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  color: #95a7bd;
  background: transparent;
  font-family: var(--dm-mono);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.dm-fo-product-tabs button.is-active {
  color: #031018;
  background: #8de7ff;
}

.dm-fo-symbol-loader {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 6px;
  min-width: min(430px, 100%);
}

.dm-fo-symbol-loader input,
.dm-fo-symbol-loader button {
  min-height: 40px;
  border-radius: 7px;
  font-family: var(--dm-mono);
  font-size: 11px;
  font-weight: 850;
}

.dm-fo-symbol-loader input {
  min-width: 0;
  border: 1px solid rgba(97, 218, 251, 0.18);
  color: #f8fafc;
  background: rgba(2, 6, 11, 0.78);
  padding: 0 10px;
}

.dm-fo-symbol-loader input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.dm-fo-symbol-loader button {
  border: 0;
  color: #031018;
  background: #8de7ff;
  padding: 0 12px;
  cursor: pointer;
}

.dm-fo-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(420px, 1.55fr);
  gap: 1px;
  border: 1px solid rgba(97, 218, 251, 0.14);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: rgba(36, 42, 53, 0.92);
}

.dm-fo-card {
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(rgba(97, 218, 251, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 218, 251, 0.03) 1px, transparent 1px),
    rgba(5, 7, 11, 0.92);
  background-size: 34px 34px, 34px 34px, auto;
}

.dm-fo-pulse-card {
  display: grid;
  align-content: space-between;
  min-height: 226px;
}

.dm-fo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.dm-fo-card-head span {
  overflow: hidden;
  color: #f3f7fb;
  font-family: var(--dm-mono);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-fo-card-head small {
  flex: 0 0 auto;
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 800;
}

.dm-fo-pulse-card > strong {
  display: block;
  color: #f8fafc;
  font-family: var(--dm-mono);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.dm-fo-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(36, 42, 53, 0.95);
}

.dm-fo-kpis span {
  min-width: 0;
  padding: 10px 8px;
  background: rgba(8, 13, 19, 0.88);
}

.dm-fo-kpis b,
.dm-fo-kpis em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-fo-kpis b {
  color: #c9f7ff;
  font-family: var(--dm-mono);
  font-size: 13px;
  font-weight: 950;
}

.dm-fo-kpis em {
  margin-top: 4px;
  color: var(--dm-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.dm-fo-table-card {
  grid-row: span 2;
}

.dm-fo-table {
  display: grid;
  gap: 5px;
  overflow-x: auto;
}

.dm-fo-row {
  display: grid;
  grid-template-columns: minmax(132px, 1.2fr) minmax(92px, 0.9fr) minmax(58px, 0.65fr) minmax(54px, 0.55fr) minmax(74px, 0.75fr);
  align-items: center;
  gap: 9px;
  min-height: 34px;
  min-width: 560px;
  padding: 7px 8px;
  border: 1px solid rgba(97, 218, 251, 0.08);
  border-radius: 6px;
  background: rgba(10, 15, 22, 0.72);
  color: #d8e5f2;
  font-family: var(--dm-mono);
  font-size: 11px;
}

.dm-fo-row-head {
  min-height: 26px;
  border-color: transparent;
  background: transparent;
  color: var(--dm-muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dm-fo-row strong,
.dm-fo-row span,
.dm-fo-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-fo-row strong {
  color: #f5f9ff;
  font-weight: 950;
}

.dm-fo-row em {
  font-style: normal;
  font-weight: 950;
}

.dm-fo-row em.is-positive {
  color: #92f5ae;
}

.dm-fo-row em.is-negative {
  color: #ff9baa;
}

.dm-fo-strikes,
.dm-fo-alerts {
  display: grid;
  gap: 7px;
}

.dm-fo-strike-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 30px;
  font-family: var(--dm-mono);
  font-size: 11px;
}

.dm-fo-strike-row strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border: 1px solid rgba(226, 232, 240, 0.15);
  border-radius: 5px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  font-weight: 950;
}

.dm-fo-strike-call,
.dm-fo-strike-put {
  display: flex;
  align-items: center;
  min-width: 26px;
  max-width: 100%;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  overflow: hidden;
  color: #031018;
  font-weight: 950;
  white-space: nowrap;
}

.dm-fo-strike-call {
  justify-self: end;
  justify-content: flex-end;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.46), rgba(74, 222, 128, 0.92));
}

.dm-fo-strike-put {
  justify-content: flex-start;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.92), rgba(245, 158, 11, 0.64));
}

.dm-fo-alert {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  background: rgba(8, 13, 19, 0.78);
  font-family: var(--dm-mono);
  font-size: 11px;
}

.dm-fo-alert b {
  color: #031018;
  padding: 3px 5px;
  border-radius: 4px;
  background: #cbd5e1;
  font-size: 10px;
  text-align: center;
}

.dm-fo-alert span,
.dm-fo-alert em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-fo-alert span {
  color: #dbe8f7;
}

.dm-fo-alert em {
  color: #f8fafc;
  font-style: normal;
  font-weight: 950;
}

.dm-fo-alert.is-positive b {
  background: #86efac;
}

.dm-fo-alert.is-hot b {
  background: #8de7ff;
}

.dm-fo-alert.is-negative b {
  background: #fb7185;
}

.dm-futures-suite {
  margin-top: 12px;
}

.dm-futures-suite-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid rgba(141, 231, 255, 0.18);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(4, 7, 11, 0.94));
}

.dm-futures-suite-head h2 {
  margin: 5px 0 0;
  font-size: 24px;
  line-height: 1.05;
}

.dm-futures-suite-head p {
  margin: 0;
  color: var(--dm-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.dm-futures-suite-grid {
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(360px, 1.25fr) minmax(320px, 1fr);
  gap: 1px;
  border: 1px solid rgba(141, 231, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  background: rgba(36, 42, 53, 0.9);
}

.dm-futures-tool {
  min-width: 0;
  padding: 14px;
  background:
    linear-gradient(rgba(141, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 231, 255, 0.025) 1px, transparent 1px),
    rgba(5, 7, 11, 0.94);
  background-size: 34px 34px, 34px 34px, auto;
}

.dm-futures-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dm-futures-tool-head span {
  min-width: 0;
  overflow: hidden;
  color: #f3f7fb;
  font-family: var(--dm-mono);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-futures-tool-head small {
  flex: 0 0 auto;
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 800;
}

.dm-em-core {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.dm-em-core strong {
  color: #f8fafc;
  font-family: var(--dm-mono);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.dm-em-core span {
  color: #8de7ff;
  font-family: var(--dm-mono);
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.dm-em-range {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: #dbeafe;
  font-family: var(--dm-mono);
  font-size: 11px;
  font-weight: 950;
}

.dm-em-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.08);
}

.dm-em-track b,
.dm-em-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
}

.dm-em-track b {
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.9), rgba(141, 231, 255, 0.78), rgba(74, 222, 128, 0.9));
}

.dm-em-track i {
  z-index: 2;
  width: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: 0 0 14px rgba(248, 250, 252, 0.8);
}

.dm-em-stats,
.dm-fow-summary,
.dm-iv-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(36, 42, 53, 0.95);
}

.dm-em-stats span,
.dm-fow-summary span,
.dm-iv-legend span {
  min-width: 0;
  padding: 10px 8px;
  background: rgba(8, 13, 19, 0.86);
}

.dm-em-stats b,
.dm-fow-summary b,
.dm-iv-legend b,
.dm-em-stats em,
.dm-fow-summary em,
.dm-iv-legend em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-em-stats b,
.dm-fow-summary b,
.dm-iv-legend b {
  color: #c9f7ff;
  font-family: var(--dm-mono);
  font-size: 13px;
  font-weight: 950;
}

.dm-em-stats em,
.dm-fow-summary em,
.dm-iv-legend em {
  margin-top: 4px;
  color: var(--dm-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.dm-iv-surface {
  display: grid;
  gap: 2px;
  overflow-x: auto;
}

.dm-iv-cell {
  display: grid;
  align-content: center;
  min-width: 48px;
  min-height: 42px;
  padding: 5px;
  border-radius: 5px;
  color: #021018;
  font-family: var(--dm-mono);
  text-align: center;
}

.dm-iv-cell b,
.dm-iv-cell em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-iv-cell b {
  font-size: 11px;
  font-weight: 950;
}

.dm-iv-cell em {
  margin-top: 2px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.82;
}

.dm-iv-axis {
  color: #dbe8f7;
  background: rgba(15, 23, 42, 0.84);
  font-size: 10px;
  font-weight: 950;
}

.dm-fow-map {
  display: grid;
  gap: 7px;
}

.dm-fow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  font-family: var(--dm-mono);
  font-size: 10px;
}

.dm-fow-row strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 5px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  font-size: 12px;
  font-weight: 950;
}

.dm-fow-call,
.dm-fow-put {
  display: flex;
  align-items: center;
  min-width: 34px;
  max-width: 100%;
  height: 23px;
  padding: 0 6px;
  border-radius: 5px;
  overflow: hidden;
  color: #031018;
  font-weight: 950;
  white-space: nowrap;
}

.dm-fow-call {
  justify-self: end;
  justify-content: flex-end;
}

.dm-fow-put {
  justify-content: flex-start;
}

.dm-fow-row.is-call-wall strong {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.13);
}

.dm-fow-row.is-put-wall strong {
  border-color: rgba(251, 113, 133, 0.52);
  box-shadow: 0 0 0 1px rgba(251, 113, 133, 0.13);
}

.dm-native-chart::after,
.dm-small-native-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(97, 218, 251, 0.12);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -30px 70px rgba(0, 0, 0, 0.28);
}

.dm-chart-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dm-chart-backplate {
  fill: rgba(2, 4, 7, 0.18);
}

.dm-chart-grid {
  stroke: rgba(148, 163, 184, 0.105);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dm-chart-grid-vertical {
  stroke: rgba(97, 218, 251, 0.11);
  stroke-dasharray: 4 8;
}

.dm-chart-axis-label,
.dm-chart-caption {
  fill: #9fb0c4;
  font-family: var(--dm-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dm-chart-x-label {
  fill: #d8e3ef;
  font-size: 12px;
}

.dm-chart-caption {
  fill: #c9d5e4;
  text-transform: uppercase;
}

.dm-chart-zero-line {
  stroke: rgba(226, 232, 240, 0.62);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.dm-candle-wick {
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  transition: opacity 140ms ease, filter 140ms ease;
}

.dm-candle-wick.is-up {
  stroke: rgba(105, 209, 137, 0.92);
  filter: drop-shadow(0 0 6px rgba(105, 209, 137, 0.22));
}

.dm-candle-wick.is-down {
  stroke: rgba(255, 107, 127, 0.92);
  filter: drop-shadow(0 0 6px rgba(255, 107, 127, 0.22));
}

.dm-candle-body {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: opacity 140ms ease, filter 140ms ease;
}

.dm-candle-body.is-up {
  fill: rgba(105, 209, 137, 0.84);
  stroke: rgba(185, 255, 210, 0.72);
}

.dm-candle-body.is-down {
  fill: rgba(255, 107, 127, 0.82);
  stroke: rgba(255, 209, 217, 0.68);
}

.dm-candle-body.is-active,
.dm-candle-wick.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.32));
}

.dm-candle-hit {
  fill: transparent;
  cursor: crosshair;
}

.dm-candle-last-line {
  stroke: rgba(226, 232, 240, 0.54);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
}

.dm-chart-bar {
  cursor: crosshair;
  stroke: rgba(226, 232, 240, 0.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: opacity 140ms ease, filter 140ms ease;
  animation: dmBarRise 280ms ease both;
}

.dm-chart-bar.is-positive {
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.28));
}

.dm-chart-bar.is-negative {
  filter: drop-shadow(0 0 10px rgba(251, 113, 133, 0.3));
}

.dm-chart-bar.is-active {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.34));
}

.dm-chart-poc-line {
  stroke-width: 3;
  stroke-dasharray: 5 5;
  filter: drop-shadow(0 0 12px rgba(242, 213, 107, 0.58));
  vector-effect: non-scaling-stroke;
}

.dm-chart-poc-label rect {
  fill: #f2d56b;
  stroke: rgba(255, 255, 255, 0.32);
}

.dm-chart-poc-label text {
  fill: #050608;
  font-family: var(--dm-mono);
  font-size: 11px;
  font-weight: 900;
}

.dm-chart-level-line {
  stroke-width: 2.2;
  stroke-dasharray: 6 7;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
  opacity: 0.95;
  vector-effect: non-scaling-stroke;
}

.dm-chart-level-line.is-call-wall,
.dm-chart-level-line.is-put-wall {
  stroke-dasharray: 0;
  stroke-width: 2.8;
}

.dm-chart-level-line.is-call-wall {
  filter: drop-shadow(0 0 12px rgba(251, 113, 133, 0.48));
}

.dm-chart-level-line.is-put-wall {
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.48));
}

.dm-chart-level-label rect {
  fill: rgba(6, 8, 12, 0.9);
  stroke: rgba(255, 255, 255, 0.2);
}

.dm-chart-level-label text {
  fill: var(--dm-text);
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 900;
}

.dm-chart-level-label.is-call-wall rect {
  fill: rgba(251, 113, 133, 0.2);
  stroke: rgba(251, 113, 133, 0.64);
}

.dm-chart-level-label.is-put-wall rect {
  fill: rgba(74, 222, 128, 0.18);
  stroke: rgba(74, 222, 128, 0.6);
}

.dm-chart-level-label.is-spot rect {
  fill: rgba(243, 245, 247, 0.14);
  stroke: rgba(243, 245, 247, 0.45);
}

.dm-chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 154px;
  padding: 10px 11px;
  border: 1px solid rgba(116, 228, 255, 0.32);
  border-radius: 8px;
  color: var(--dm-text);
  background: rgba(5, 7, 11, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 28px rgba(116, 228, 255, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -112%) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
}

.dm-chart-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -112%) scale(1);
}

.dm-chart-tooltip b,
.dm-chart-tooltip span,
.dm-chart-tooltip strong {
  display: block;
}

.dm-chart-tooltip b {
  font-size: 12px;
}

.dm-chart-tooltip span {
  margin-top: 3px;
  color: var(--dm-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.dm-chart-tooltip strong {
  margin-top: 5px;
  font-family: var(--dm-mono);
  font-size: 18px;
}

.dm-chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--dm-muted);
  font-family: var(--dm-mono);
  font-size: 13px;
}

.dm-intel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.dm-intel-card {
  min-width: 0;
  min-height: 260px;
  padding: 15px;
  border-radius: 8px;
}

.dm-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dm-card-head h2 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.1;
}

.dm-card-head small {
  color: var(--dm-muted);
  font-family: var(--dm-mono);
  font-size: 11px;
  text-align: right;
}

.dm-target-list,
.dm-iris-list {
  display: grid;
  gap: 8px;
}

.dm-target-row,
.dm-iris-row,
.dm-wall-chip,
.dm-empty-state {
  border: 1px solid rgba(56, 66, 83, 0.72);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.74);
}

.dm-target-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
}

.dm-target-row.is-primary {
  border-color: rgba(116, 228, 255, 0.52);
  background: linear-gradient(90deg, rgba(116, 228, 255, 0.12), rgba(167, 139, 250, 0.08));
}

.dm-target-row.is-up .dm-target-rank,
.dm-iris-row.is-buy strong {
  color: var(--dm-cyan);
}

.dm-target-row.is-down .dm-target-rank,
.dm-iris-row.is-sell strong {
  color: var(--dm-purple);
}

.dm-target-rank,
.dm-target-prob {
  font-family: var(--dm-mono);
  font-size: 12px;
  font-weight: 800;
}

.dm-target-main {
  min-width: 0;
}

.dm-target-main strong {
  display: block;
  font-family: var(--dm-mono);
  font-size: 21px;
  line-height: 1;
}

.dm-target-main small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--dm-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-target-prob {
  color: var(--dm-text);
}

.dm-wall-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.dm-wall-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.dm-wall-chip b {
  color: var(--dm-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.dm-wall-chip em {
  color: var(--dm-yellow);
  font-family: var(--dm-mono);
  font-style: normal;
  font-weight: 800;
}

.dm-small-native-chart {
  position: relative;
  width: 100%;
  height: 170px;
  border: 1px solid rgba(56, 66, 83, 0.75);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    #05070b;
  background-size: 38px 38px, 38px 38px, auto;
}

.dm-iris-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.28));
}

.dm-iris-marker {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.dm-iris-marker.is-buy {
  fill: var(--dm-cyan);
  filter: drop-shadow(0 0 10px rgba(116, 228, 255, 0.42));
}

.dm-iris-marker.is-sell {
  fill: var(--dm-purple);
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.42));
}

.dm-iris-marker.is-exit {
  fill: var(--dm-yellow);
}

.dm-iris-list {
  margin-top: 10px;
}

.dm-iris-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-family: var(--dm-mono);
  font-size: 12px;
}

.dm-iris-row span,
.dm-iris-row em {
  color: var(--dm-muted);
  font-style: normal;
}

.dm-iris-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-empty-state {
  padding: 14px;
  color: var(--dm-muted);
  font-size: 13px;
}

.dm-simple-lower {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 260px) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.dm-side-card {
  min-height: 126px;
  padding: 16px;
  border-radius: 8px;
}

.dm-side-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--dm-mono);
  font-size: 25px;
}

.dm-side-card small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.dm-side-card-wide {
  min-width: 0;
}

.dm-pressure-table-wrap {
  max-height: 270px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--dm-border);
  border-radius: 8px;
}

.dm-pressure-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--dm-mono);
  font-size: 12px;
}

.dm-pressure-table th,
.dm-pressure-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(36, 42, 53, 0.75);
  text-align: right;
  white-space: nowrap;
}

.dm-pressure-table th:first-child,
.dm-pressure-table td:first-child {
  text-align: left;
}

.dm-pressure-table tr:last-child td {
  border-bottom: 0;
}

.dm-pressure-positive {
  color: var(--dm-cyan);
}

.dm-pressure-negative {
  color: var(--dm-red);
}

.dm-pressure-delta-cell {
  min-width: 124px;
  text-align: right;
}

.dm-pressure-delta-cell strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-left: 8px;
}

.dm-pressure-delta-track {
  position: relative;
  display: inline-block;
  width: min(86px, 42vw);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dm-pressure-delta-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.34), rgba(74, 222, 128, 0.92));
}

.dm-pressure-delta-cell.dm-pressure-negative .dm-pressure-delta-track i {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.34), rgba(239, 68, 68, 0.9));
}

@keyframes dmLivePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 18px rgba(116, 228, 255, 0.78);
  }
  50% {
    transform: scale(1.32);
    box-shadow: 0 0 30px rgba(116, 228, 255, 0.95);
  }
}

@keyframes dmBarRise {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.92;
  }
}

.dm-simple-login-body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(116, 228, 255, 0.16), transparent 30%),
    radial-gradient(circle at 76% 34%, rgba(167, 139, 250, 0.12), transparent 32%),
    #050608;
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}

.dm-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dm-login-card {
  width: min(480px, 100%);
  padding: 26px;
  border-radius: 8px;
}

.dm-login-copy {
  margin-top: 28px;
}

.dm-login-copy h1 {
  margin: 8px 0 8px;
  font-size: 36px;
  line-height: 1;
}

.dm-login-copy p {
  margin: 0;
  line-height: 1.5;
}

.dm-access-offer {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(116, 228, 255, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(116, 228, 255, 0.12), rgba(167, 139, 250, 0.08)),
    rgba(5, 7, 11, 0.78);
}

.dm-access-offer span {
  color: var(--dm-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dm-access-offer strong {
  font-size: 18px;
  line-height: 1.15;
}

.dm-access-offer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: fit-content;
  margin-top: 3px;
  padding: 0 14px;
  border-radius: 6px;
  color: #020509;
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-purple));
  font-weight: 800;
  text-decoration: none;
}

.dm-login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.dm-login-form label {
  display: grid;
  gap: 7px;
}

.dm-login-form label span {
  color: var(--dm-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dm-login-form .dm-primary-button {
  min-height: 48px;
  margin-top: 2px;
}

.dm-login-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  font-size: 12px;
}

.dm-login-foot a {
  color: var(--dm-cyan);
  text-decoration: none;
}

.dm-flash-stack {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.dm-flash {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--dm-border);
  color: var(--dm-text);
  background: #05070b;
  font-size: 13px;
}

.dm-flash-error {
  border-color: rgba(255, 107, 127, 0.5);
  color: #ffd8de;
}

.dm-flash-success {
  border-color: rgba(105, 209, 137, 0.5);
  color: #d9ffe4;
}

@media (max-width: 980px) {
  .dm-simple-shell {
    grid-template-columns: 1fr;
  }

  .dm-simple-rail {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    height: auto;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--dm-border);
    overflow-x: auto;
  }

  .dm-simple-rail-btn[data-tip]::after {
    display: none;
  }

  .dm-simple-rail-gap {
    flex: 1;
    min-width: 16px;
  }

  .dm-simple-main {
    width: min(1540px, calc(100vw - 28px));
    padding-top: 12px;
  }

  .dm-simple-topbar,
  .dm-simple-controls,
  .dm-floor-grid,
  .dm-simple-lower,
  .dm-intel-grid,
  .dm-futures-book-grid,
  .dm-fo-grid,
  .dm-futures-suite-grid {
    grid-template-columns: 1fr;
  }

  .dm-fo-table-card {
    grid-row: auto;
  }

  .dm-simple-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dm-chart-head {
    display: block;
  }

  .dm-chart-head p {
    margin-top: 8px;
    text-align: left;
  }

  .dm-native-chart {
    height: 520px;
  }

  .dm-ladder-panel {
    min-height: 440px;
  }

  .dm-strike-heatmap {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .dm-simple-main {
    width: min(100vw - 16px, 1540px);
    padding-top: 8px;
  }

  .dm-simple-metrics {
    grid-template-columns: 1fr;
  }

  .dm-gamma-adjustment {
    grid-template-columns: 1fr;
  }

  .dm-gamma-adjustment em {
    text-align: left;
  }

  .dm-segmented {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .dm-segmented button {
    min-width: 0;
    padding: 0 8px;
  }

  .dm-ladder-head {
    display: block;
  }

  .dm-fo-lab-head {
    display: block;
  }

  .dm-futures-book-head {
    display: block;
  }

  .dm-futures-book-head p {
    margin-top: 8px;
    text-align: left;
  }

  .dm-futures-suite-head {
    display: block;
  }

  .dm-futures-suite-head p {
    margin-top: 8px;
    text-align: left;
  }

  .dm-fo-product-tabs {
    width: 100%;
    margin-top: 10px;
  }

  .dm-fo-symbol-loader {
    grid-template-columns: 1fr;
    min-width: 0;
    margin-top: 8px;
  }

  .dm-fo-card {
    padding: 12px;
  }

  .dm-fo-kpis {
    grid-template-columns: 1fr;
  }

  .dm-futures-price-line {
    display: block;
  }

  .dm-futures-price-line em {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .dm-futures-book-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dm-fo-strike-row {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  }

  .dm-fo-alert {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .dm-em-core {
    display: block;
  }

  .dm-em-core span {
    display: block;
    margin-top: 6px;
  }

  .dm-em-stats,
  .dm-fow-summary,
  .dm-iv-legend {
    grid-template-columns: 1fr;
  }

  .dm-iv-surface {
    padding-bottom: 4px;
  }

  .dm-fow-row {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  }

  .dm-ladder-head > strong {
    margin-top: 8px;
    max-width: 100%;
  }

  .dm-ladder-columns,
  .dm-ladder-row {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
    gap: 6px;
  }

  .dm-ladder-bar em {
    min-width: 38px;
    font-size: 9px;
  }

  .dm-ladder-track {
    flex-basis: 42px;
    width: 42px;
  }

  .dm-ladder-foot strong {
    font-size: 16px;
  }

  .dm-heatmap-head {
    display: block;
  }

  .dm-heatmap-head small {
    display: block;
    margin-top: 6px;
    text-align: left;
  }

  .dm-strike-heatmap {
    grid-template-columns: minmax(66px, 0.75fr) repeat(5, minmax(58px, 1fr));
  }

  .dm-heatmap-cell {
    min-height: 29px;
    padding: 6px 6px;
    font-size: 9px;
  }

  .dm-heatmap-strike strong {
    font-size: 10px;
  }
}
}

/* Pressure chart polish ----------------------------------------------------
   Keep the SVG renderer inexpensive: color and stroke carry hierarchy while
   persistent blur filters and replayed entrance animations stay disabled. */

#simple-gex-chart {
  --dm-chart-accent: #6edcff;
  --dm-chart-accent-soft: rgba(110, 220, 255, 0.2);
  --dm-chart-accent-wash: rgba(110, 220, 255, 0.055);
  --dm-chart-positive: #42d7c4;
  --dm-chart-positive-stroke: #a3f3e8;
  --dm-chart-negative: #ff718b;
  --dm-chart-negative-stroke: #ffc0cb;
  --dm-chart-call: #ff8098;
  --dm-chart-put: #65dda0;
  --dm-chart-poc: #b1a7ff;
  --dm-chart-spot: #f4c96b;
  border-color: var(--dm-chart-accent-soft);
  background:
    radial-gradient(circle at 50% 0%, var(--dm-chart-accent-wash), transparent 44%),
    linear-gradient(rgba(126, 146, 174, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 146, 174, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 11, 16, 0.99), rgba(3, 6, 10, 0.99));
  background-size: auto, 48px 48px, 48px 48px, auto;
  box-shadow:
    inset 0 1px 0 var(--dm-chart-accent-soft),
    inset 0 -42px 84px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.42);
}

.dm-native-chart.is-mode-volume {
  --dm-chart-accent: #60dcf6;
  --dm-chart-accent-soft: rgba(96, 220, 246, 0.22);
  --dm-chart-accent-wash: rgba(64, 211, 238, 0.07);
  --dm-chart-positive: #40d5c1;
  --dm-chart-positive-stroke: #9bf0e4;
  --dm-chart-negative: #ff718b;
  --dm-chart-negative-stroke: #ffc1cc;
}

.dm-native-chart.is-mode-delta {
  --dm-chart-accent: #a69cff;
  --dm-chart-accent-soft: rgba(166, 156, 255, 0.22);
  --dm-chart-accent-wash: rgba(157, 145, 255, 0.075);
  --dm-chart-positive: #78b7ff;
  --dm-chart-positive-stroke: #c7e0ff;
  --dm-chart-negative: #d17aff;
  --dm-chart-negative-stroke: #efc6ff;
}

.dm-native-chart.is-mode-oi {
  --dm-chart-accent: #73dfa8;
  --dm-chart-accent-soft: rgba(115, 223, 168, 0.22);
  --dm-chart-accent-wash: rgba(101, 221, 160, 0.07);
  --dm-chart-positive: #65d99d;
  --dm-chart-positive-stroke: #b4f4d3;
  --dm-chart-negative: #ff877c;
  --dm-chart-negative-stroke: #ffd0cb;
}

#simple-gex-chart .dm-chart-backplate {
  fill: rgba(3, 7, 11, 0.26);
}

#simple-gex-chart .dm-chart-grid {
  stroke: rgba(139, 155, 177, 0.12);
  stroke-width: 0.8;
  shape-rendering: crispEdges;
}

#simple-gex-chart .dm-chart-grid-vertical {
  stroke: rgba(139, 155, 177, 0.09);
  stroke-dasharray: 2 8;
}

#simple-gex-chart .dm-chart-zone,
#simple-gex-chart .dm-chart-zero-band {
  pointer-events: none;
}

#simple-gex-chart .dm-chart-zone.is-positive {
  fill: rgba(64, 213, 193, 0.035);
}

#simple-gex-chart .dm-chart-zone.is-negative {
  fill: rgba(255, 113, 139, 0.03);
}

#simple-gex-chart .dm-chart-zero-band {
  fill: rgba(217, 235, 248, 0.035);
}

#simple-gex-chart .dm-chart-zero-line {
  stroke: rgba(226, 232, 240, 0.58);
  stroke-width: 1.4;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 0 5px rgba(219, 237, 250, 0.2));
}

#simple-gex-chart .dm-chart-axis-label,
#simple-gex-chart .dm-chart-caption {
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

#simple-gex-chart .dm-chart-axis-label {
  fill: #8291a6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#simple-gex-chart .dm-chart-x-label {
  fill: #b9c6d6;
  font-size: 11px;
  font-weight: 800;
}

#simple-gex-chart .dm-chart-zero-label {
  fill: #eef6fc;
  font-weight: 900;
}

#simple-gex-chart .dm-chart-caption {
  fill: var(--dm-chart-accent);
  stroke: #05080c;
  stroke-width: 3px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

#simple-gex-chart .dm-chart-bar {
  animation: none;
  filter: none;
  opacity: 0.88;
  stroke-width: 0.8;
  shape-rendering: geometricPrecision;
  transition:
    opacity 100ms ease,
    fill 100ms ease,
    stroke 100ms ease,
    stroke-width 100ms ease;
}

#simple-gex-chart .dm-chart-bar.is-positive {
  fill: url(#dmPositiveBar);
  stroke: var(--dm-chart-positive-stroke);
  filter: none;
}

#simple-gex-chart .dm-chart-bar.is-negative {
  fill: url(#dmNegativeBar);
  stroke: var(--dm-chart-negative-stroke);
  filter: none;
}

#simple-gex-chart .dm-chart-bar.is-neutral {
  fill: #64748b;
  stroke: #a3afbf;
  opacity: 0.52;
}

#simple-gex-chart .dm-chart-bar:hover,
#simple-gex-chart .dm-chart-bar:focus-visible,
#simple-gex-chart .dm-chart-bar.is-active {
  filter: none;
  opacity: 1;
  stroke: #f8fbff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(226, 242, 252, 0.34));
}

#simple-gex-chart .dm-chart-bar:focus-visible {
  outline: none;
}

#simple-gex-chart:has(.dm-chart-bar.is-active) .dm-chart-bar:not(.is-active) {
  opacity: 0.5;
}

#simple-gex-chart .dm-chart-bar.is-key-level,
#simple-gex-chart .dm-chart-bar.is-call-wall,
#simple-gex-chart .dm-chart-bar.is-put-wall,
#simple-gex-chart .dm-chart-bar.is-poc,
#simple-gex-chart .dm-chart-bar.is-spot,
#simple-gex-chart .dm-chart-bar.is-near-spot {
  opacity: 1;
  stroke-width: 1.8;
}

#simple-gex-chart .dm-chart-bar.is-dominant {
  opacity: 1;
  stroke-width: 1.6;
}

#simple-gex-chart .dm-chart-bar.is-dominant-positive {
  filter: drop-shadow(0 0 7px rgba(64, 213, 193, 0.28));
}

#simple-gex-chart .dm-chart-bar.is-dominant-negative {
  filter: drop-shadow(0 0 7px rgba(255, 113, 139, 0.28));
}

#simple-gex-chart .dm-chart-hover-guide {
  stroke: rgba(236, 247, 255, 0.38);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  opacity: 0;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#simple-gex-chart .dm-chart-hover-guide.is-active {
  opacity: 1;
}

#simple-gex-chart .dm-chart-bar-cap {
  stroke-width: 2.2;
  opacity: 0.78;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

#simple-gex-chart .dm-chart-bar-cap.is-positive {
  stroke: var(--dm-chart-positive-stroke);
}

#simple-gex-chart .dm-chart-bar-cap.is-negative {
  stroke: var(--dm-chart-negative-stroke);
}

#simple-gex-chart .dm-chart-bar-cap.is-dominant {
  stroke-width: 3;
  opacity: 1;
}

#simple-gex-chart .dm-chart-value-label {
  fill: #f4f8fd;
  stroke: #04070a;
  stroke-width: 3px;
  paint-order: stroke fill;
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
  pointer-events: none;
}

#simple-gex-chart .dm-chart-value-label.is-positive {
  fill: var(--dm-chart-positive-stroke);
}

#simple-gex-chart .dm-chart-value-label.is-negative {
  fill: var(--dm-chart-negative-stroke);
}

#simple-gex-chart .dm-chart-legend-mark {
  stroke-width: 3;
  stroke-linecap: round;
}

#simple-gex-chart .dm-chart-legend-mark.is-positive {
  stroke: var(--dm-chart-positive);
}

#simple-gex-chart .dm-chart-legend-mark.is-negative {
  stroke: var(--dm-chart-negative);
}

#simple-gex-chart .dm-chart-legend-mark.is-level {
  stroke: var(--dm-chart-spot);
  stroke-dasharray: 3 3;
}

#simple-gex-chart .dm-chart-legend-label {
  fill: #98a8ba;
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#simple-gex-chart .dm-chart-bar.is-call-wall {
  stroke: var(--dm-chart-call);
}

#simple-gex-chart .dm-chart-bar.is-put-wall {
  stroke: var(--dm-chart-put);
}

#simple-gex-chart .dm-chart-bar.is-poc {
  stroke: var(--dm-chart-poc);
}

#simple-gex-chart .dm-chart-bar.is-spot,
#simple-gex-chart .dm-chart-bar.is-near-spot {
  stroke: var(--dm-chart-spot);
}

#simple-gex-chart .dm-chart-level-line,
#simple-gex-chart .dm-chart-poc-line {
  filter: none;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
}

#simple-gex-chart .dm-chart-level-line.is-spot {
  stroke: var(--dm-chart-spot);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

#simple-gex-chart .dm-chart-level-line.is-call-wall {
  stroke: var(--dm-chart-call);
  stroke-width: 2;
}

#simple-gex-chart .dm-chart-level-line.is-put-wall {
  stroke: var(--dm-chart-put);
  stroke-width: 2;
}

#simple-gex-chart .dm-chart-poc-line {
  stroke: var(--dm-chart-poc);
  stroke-width: 2;
  stroke-dasharray: 3 5;
}

#simple-gex-chart .dm-chart-level-label rect,
#simple-gex-chart .dm-chart-poc-label rect {
  fill: rgba(5, 9, 14, 0.94);
  stroke-width: 1;
}

#simple-gex-chart .dm-chart-level-label text,
#simple-gex-chart .dm-chart-poc-label text {
  fill: #edf3fa;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
}

#simple-gex-chart .dm-chart-level-label.is-call-wall rect {
  fill: rgba(255, 128, 152, 0.14);
  stroke: var(--dm-chart-call);
}

#simple-gex-chart .dm-chart-level-label.is-put-wall rect {
  fill: rgba(101, 221, 160, 0.13);
  stroke: var(--dm-chart-put);
}

#simple-gex-chart .dm-chart-level-label.is-spot rect {
  fill: rgba(244, 201, 107, 0.14);
  stroke: var(--dm-chart-spot);
}

#simple-gex-chart .dm-chart-poc-label rect {
  fill: rgba(177, 167, 255, 0.16);
  stroke: var(--dm-chart-poc);
}

#simple-gex-chart .dm-chart-poc-label text {
  fill: #eeeaff;
}

#simple-gex-chart .dm-chart-tooltip {
  contain: layout paint;
  min-width: 184px;
  max-width: min(270px, calc(100% - 24px));
  padding: 11px 12px 10px;
  overflow: hidden;
  border-color: var(--dm-chart-accent-soft);
  border-radius: 10px;
  background:
    linear-gradient(180deg, var(--dm-chart-accent-wash), transparent 54%),
    rgba(5, 9, 14, 0.97);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 90ms ease, transform 90ms ease;
}

#simple-gex-chart .dm-chart-tooltip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--dm-chart-accent);
}

#simple-gex-chart .dm-chart-tooltip.is-visible {
  transform: translate(-50%, calc(-100% - 12px));
}

#simple-gex-chart .dm-chart-tooltip.is-below,
#simple-gex-chart .dm-chart-tooltip.is-visible.is-below {
  transform: translate(-50%, 12px);
}

#simple-gex-chart .dm-chart-tooltip b {
  color: #f4f8fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

#simple-gex-chart .dm-chart-tooltip span {
  margin-top: 4px;
  color: #8e9caf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.015em;
  text-transform: none;
}

#simple-gex-chart .dm-chart-tooltip > span:first-of-type {
  color: var(--dm-chart-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#simple-gex-chart .dm-chart-tooltip .dm-chart-tooltip-level {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 3px 6px;
  border: 1px solid var(--dm-chart-accent-soft);
  border-radius: 3px;
  color: #dfeaf4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#simple-gex-chart .dm-chart-tooltip strong {
  margin-top: 7px;
  color: #f7fbff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

#simple-gex-chart .dm-chart-tooltip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

#simple-gex-chart .dm-chart-tooltip-row {
  display: contents;
}

#simple-gex-chart .dm-chart-tooltip-row span,
#simple-gex-chart .dm-chart-tooltip-row strong {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0;
}

#simple-gex-chart .dm-chart-tooltip-row strong {
  color: #dce7f3;
  text-align: right;
}

#simple-gex-chart .dm-chart-tooltip .is-positive {
  color: var(--dm-chart-positive);
}

#simple-gex-chart .dm-chart-tooltip .is-negative {
  color: var(--dm-chart-negative);
}

#simple-gex-chart .dm-chart-tooltip .dm-chart-tooltip-foot {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #7f8ea1;
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  #simple-gex-chart .dm-chart-axis-label {
    font-size: 9px;
  }

  #simple-gex-chart .dm-chart-x-label {
    font-size: 10px;
  }

  #simple-gex-chart .dm-chart-caption {
    font-size: 9px;
    letter-spacing: 0.075em;
  }

  #simple-gex-chart .dm-chart-tooltip {
    min-width: 160px;
    max-width: min(230px, calc(100% - 18px));
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #simple-gex-chart .dm-chart-bar,
  #simple-gex-chart .dm-chart-tooltip {
    transition: none;
  }
}

@media (min-width: 1181px) {
  .dm-simple-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Surface accessibility and responsive polish ---------------------------- */

.dm-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  min-height: 44px;
  padding: 11px 14px;
  border: 2px solid var(--dm-cyan);
  border-radius: 9px;
  color: #061016;
  background: #dff8ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(calc(-100% - 18px));
  transition: transform 140ms ease;
}

.dm-skip-link:focus {
  outline: 0;
  transform: translateY(0);
}

.dm-simple-shell {
  min-height: 100dvh;
}

.dm-simple-main,
.dm-simple-topbar,
.dm-simple-topbar-actions,
.dm-simple-controls,
.dm-simple-metrics,
.dm-market-workspace,
.dm-floor-grid,
.dm-toolkit,
.dm-toolkit-head {
  min-width: 0;
}

:is(button, a, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--dm-cyan);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(110, 220, 255, 0.14);
}

.dm-simple-rail-btn[data-tip]:focus-visible::after {
  opacity: 1;
}

.dm-simple-topnav a,
.dm-workspace-jump a,
.dm-focus-button,
.dm-logout-link,
.dm-control input,
.dm-control select,
.dm-segmented button,
.dm-ghost-button,
.dm-primary-button,
.dm-surface-view-tabs button,
.dm-toolkit-tabs button,
.dm-fo-product-tabs button,
.dm-fo-symbol-loader input,
.dm-fo-symbol-loader button {
  min-height: 44px;
}

.dm-workspace-jump a,
.dm-simple-topnav a {
  display: inline-flex;
  align-items: center;
}

.dm-simple-status {
  transition: border-color 160ms ease, background 160ms ease;
}

.dm-simple-status.is-live {
  border-color: rgba(101, 221, 160, 0.28);
  background: rgba(101, 221, 160, 0.055);
}

.dm-simple-status.is-live .dm-live-dot {
  background: var(--dm-green);
  box-shadow: 0 0 14px rgba(101, 221, 160, 0.62);
}

.dm-simple-status.is-loading .dm-live-dot {
  background: var(--dm-cyan);
}

.dm-simple-status.is-stale .dm-live-dot,
.dm-simple-status.is-error .dm-live-dot {
  animation: none;
}

.dm-refresh-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.dm-refresh-button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(7, 16, 22, 0.28);
  border-top-color: #071016;
  border-radius: 50%;
  animation: dmSurfaceRefreshSpin 720ms linear infinite;
}

.is-data-updated {
  animation: dmSurfaceDataUpdate 500ms ease-out both;
}

.dm-surface-view-panel:focus-visible,
.dm-tool-panel:focus-visible,
#surface-controls:focus-visible {
  outline-offset: 4px;
}

#simple-gex-chart .dm-chart-bar:focus-visible {
  outline: none;
  box-shadow: none;
  opacity: 1;
  stroke: #ffffff;
  stroke-width: 2.5;
}

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

@keyframes dmSurfaceDataUpdate {
  0% {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(110, 220, 255, 0.78);
    transform: translateY(1px);
  }
  100% {
    text-shadow: none;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .dm-simple-main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .dm-simple-rail {
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 20px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dm-workspace-jump,
  .dm-simple-metrics,
  .dm-toolkit-tabs {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 220, 255, 0.34) transparent;
    -webkit-overflow-scrolling: touch;
  }

  .dm-workspace-jump {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 7px;
  }

  .dm-workspace-jump a,
  .dm-simple-metrics article {
    scroll-snap-align: start;
  }

  .dm-workspace-jump::-webkit-scrollbar,
  .dm-simple-metrics::-webkit-scrollbar,
  .dm-toolkit-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .dm-workspace-jump::-webkit-scrollbar-thumb,
  .dm-simple-metrics::-webkit-scrollbar-thumb,
  .dm-toolkit-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(110, 220, 255, 0.34);
  }
}

@media (max-width: 640px) {
  .dm-simple-topbar {
    min-height: 62px;
  }

  .dm-simple-status,
  .dm-focus-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .dm-surface-view-tabs,
  .dm-toolkit-tabs {
    width: 100%;
  }

  .dm-surface-view-tabs button,
  .dm-toolkit-tabs button {
    flex: 1 0 auto;
    white-space: nowrap;
  }

  .dm-strike-heatmap {
    overscroll-behavior: contain;
    scroll-padding-inline: 66px;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-skip-link,
  .dm-simple-status,
  .is-data-updated,
  .dm-refresh-button.is-loading::before {
    animation: none;
    transition: none;
  }
}

/* Live GEX wall-touch alerts -------------------------------------------- */

.dm-wall-alert-toggle,
.dm-wall-alert-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.dm-wall-alert-toggle {
  gap: 7px;
}

.dm-wall-alert-toggle i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.dm-wall-alert-toggle.is-active {
  border-color: rgba(101, 221, 160, 0.4);
  color: #dfffee;
  background: rgba(101, 221, 160, 0.08);
}

.dm-wall-alert-toggle.is-active i {
  background: var(--dm-green);
  box-shadow: 0 0 0 3px rgba(101, 221, 160, 0.14), 0 0 14px rgba(101, 221, 160, 0.78);
  animation: dmWallBeacon 1.8s ease-in-out infinite;
}

.dm-wall-alert-desktop.is-active {
  border-color: rgba(110, 220, 255, 0.42);
  color: #dff8ff;
  background: rgba(110, 220, 255, 0.08);
}

.dm-wall-alert-center {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  margin-top: 10px;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.2);
  border-radius: var(--dm-radius);
  background:
    linear-gradient(90deg, rgba(110, 220, 255, 0.055), transparent 38%),
    rgba(7, 10, 15, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.dm-wall-alert-center::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--dm-cyan);
  opacity: 0.58;
}

.dm-wall-alert-center[data-state="paused"] {
  opacity: 0.7;
  filter: saturate(0.62);
}

.dm-wall-alert-center[data-state="positive"] {
  border-color: rgba(101, 221, 160, 0.58);
  background: linear-gradient(90deg, rgba(101, 221, 160, 0.16), transparent 48%), rgba(7, 13, 11, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 30px rgba(101, 221, 160, 0.11);
}

.dm-wall-alert-center[data-state="negative"] {
  border-color: rgba(255, 107, 127, 0.58);
  background: linear-gradient(90deg, rgba(255, 107, 127, 0.16), transparent 48%), rgba(14, 8, 11, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 30px rgba(255, 107, 127, 0.11);
}

.dm-wall-alert-center[data-state="positive"]::before {
  background: var(--dm-green);
  opacity: 1;
}

.dm-wall-alert-center[data-state="negative"]::before {
  background: var(--dm-red);
  opacity: 1;
}

.dm-wall-alert-center-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dm-wall-alert-center-head > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dm-wall-alert-center-head strong {
  overflow: hidden;
  color: #dce7f3;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-wall-alert-center-head > small {
  color: #758399;
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.dm-wall-alert-beacon {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(110, 220, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(110, 220, 255, 0.08), 0 0 15px rgba(110, 220, 255, 0.34);
  animation: dmWallBeacon 1.8s ease-in-out infinite;
}

.dm-wall-alert-center[data-state="paused"] .dm-wall-alert-beacon {
  border-color: #64748b;
  box-shadow: none;
  animation: none;
}

.dm-wall-alert-center[data-state="positive"] .dm-wall-alert-beacon {
  border-color: var(--dm-green);
  box-shadow: 0 0 0 5px rgba(101, 221, 160, 0.1), 0 0 18px rgba(101, 221, 160, 0.72);
}

.dm-wall-alert-center[data-state="negative"] .dm-wall-alert-beacon {
  border-color: var(--dm-red);
  box-shadow: 0 0 0 5px rgba(255, 107, 127, 0.1), 0 0 18px rgba(255, 107, 127, 0.72);
}

.dm-wall-alert-log {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 220, 255, 0.28) transparent;
}

.dm-wall-alert-empty {
  color: #69778b;
  font-size: 10px;
  font-weight: 700;
}

.dm-wall-alert-log-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  min-width: min(330px, 78vw);
  padding: 7px 9px 7px 11px;
  border: 1px solid rgba(126, 146, 174, 0.18);
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.72);
}

.dm-wall-alert-log-item::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 2px;
  border-radius: 999px;
  background: var(--dm-cyan);
}

.dm-wall-alert-log-item.is-positive::before {
  background: var(--dm-green);
}

.dm-wall-alert-log-item.is-negative::before {
  background: var(--dm-red);
}

.dm-wall-alert-log-item > span {
  grid-row: 1 / span 2;
  color: #8492a6;
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 750;
}

.dm-wall-alert-log-item strong {
  overflow: hidden;
  color: #eef6ff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-wall-alert-log-item small {
  overflow: hidden;
  color: #8492a6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-wall-alert-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
}

.dm-wall-alert-flash.is-positive {
  animation: dmWallFlashPositive 1.5s ease-out both;
}

.dm-wall-alert-flash.is-negative {
  animation: dmWallFlashNegative 1.5s ease-out both;
}

.dm-wall-alert-toasts {
  position: fixed;
  top: max(72px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 9999;
  display: grid;
  gap: 9px;
  width: min(390px, calc(100vw - 24px));
  pointer-events: none;
}

.dm-wall-alert-toast {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 42px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(110, 220, 255, 0.36);
  border-radius: 12px;
  color: #edf8ff;
  background: rgba(4, 8, 13, 0.96);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.52), inset 3px 0 0 var(--dm-cyan);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  animation: dmWallToastIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dm-wall-alert-toast.is-positive {
  border-color: rgba(101, 221, 160, 0.5);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.52), inset 3px 0 0 var(--dm-green), 0 0 28px rgba(101, 221, 160, 0.09);
}

.dm-wall-alert-toast.is-negative {
  border-color: rgba(255, 107, 127, 0.5);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.52), inset 3px 0 0 var(--dm-red), 0 0 28px rgba(255, 107, 127, 0.09);
}

.dm-wall-alert-toast > span {
  color: var(--dm-cyan);
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.dm-wall-alert-toast.is-positive > span {
  color: var(--dm-green);
}

.dm-wall-alert-toast.is-negative > span {
  color: #ff91a4;
}

.dm-wall-alert-toast > strong {
  font-size: 14px;
  line-height: 1.25;
}

.dm-wall-alert-toast > small {
  color: #9dacbf;
  font-size: 10px;
  line-height: 1.5;
}

.dm-wall-alert-toast > button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #9dacbf;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.dm-wall-alert-toast > button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.is-wall-alert-hit-positive {
  animation: dmWallCardPositive 1.8s ease-out both;
}

.is-wall-alert-hit-negative {
  animation: dmWallCardNegative 1.8s ease-out both;
}

@keyframes dmWallBeacon {
  0%, 100% { transform: scale(0.9); opacity: 0.68; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes dmWallFlashPositive {
  0% { opacity: 0; box-shadow: inset 0 0 0 0 rgba(101, 221, 160, 0); }
  12% { opacity: 1; box-shadow: inset 0 0 70px 20px rgba(101, 221, 160, 0.42), inset 0 0 0 5px rgba(101, 221, 160, 0.86); }
  42% { opacity: 0.62; box-shadow: inset 0 0 42px 8px rgba(101, 221, 160, 0.24), inset 0 0 0 3px rgba(101, 221, 160, 0.48); }
  100% { opacity: 0; box-shadow: inset 0 0 8px 0 rgba(101, 221, 160, 0); }
}

@keyframes dmWallFlashNegative {
  0% { opacity: 0; box-shadow: inset 0 0 0 0 rgba(255, 107, 127, 0); }
  12% { opacity: 1; box-shadow: inset 0 0 70px 20px rgba(255, 107, 127, 0.42), inset 0 0 0 5px rgba(255, 107, 127, 0.88); }
  42% { opacity: 0.62; box-shadow: inset 0 0 42px 8px rgba(255, 107, 127, 0.24), inset 0 0 0 3px rgba(255, 107, 127, 0.5); }
  100% { opacity: 0; box-shadow: inset 0 0 8px 0 rgba(255, 107, 127, 0); }
}

@keyframes dmWallToastIn {
  from { opacity: 0; transform: translate3d(18px, -5px, 0) scale(0.98); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes dmWallCardPositive {
  0%, 100% { box-shadow: none; }
  18% { box-shadow: inset 0 0 0 2px rgba(101, 221, 160, 0.78), 0 0 28px rgba(101, 221, 160, 0.24); }
}

@keyframes dmWallCardNegative {
  0%, 100% { box-shadow: none; }
  18% { box-shadow: inset 0 0 0 2px rgba(255, 107, 127, 0.8), 0 0 28px rgba(255, 107, 127, 0.24); }
}

@media (max-width: 640px) {
  .dm-wall-alert-center {
    margin-top: 6px;
    padding: 10px;
  }

  .dm-wall-alert-center-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dm-wall-alert-center-head > small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .dm-wall-alert-toasts {
    top: 68px;
    right: 8px;
    width: calc(100vw - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-wall-alert-toggle.is-active i,
  .dm-wall-alert-beacon,
  .dm-wall-alert-flash,
  .dm-wall-alert-toast,
  .is-wall-alert-hit-positive,
  .is-wall-alert-hit-negative {
    animation: none !important;
  }

  .dm-wall-alert-flash.is-positive {
    opacity: 0.34;
    box-shadow: inset 0 0 42px 8px rgba(101, 221, 160, 0.3), inset 0 0 0 4px rgba(101, 221, 160, 0.7);
  }

  .dm-wall-alert-flash.is-negative {
    opacity: 0.34;
    box-shadow: inset 0 0 42px 8px rgba(255, 107, 127, 0.3), inset 0 0 0 4px rgba(255, 107, 127, 0.7);
  }
}

/* Tool fullscreen ----------------------------------------------------------
   Shared controls and sizing for the major Surface Command workspaces. The
   class state is the browser-independent fallback; native fullscreen keeps
   the same branded, opaque canvas when the Fullscreen API is available. */

body.has-tool-fullscreen {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.dm-tool-fullscreen-head {
  position: relative;
  flex-wrap: wrap;
}

.dm-tool-fullscreen-head > .dm-tool-fullscreen-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.dm-tool-fullscreen-button {
  display: inline-flex;
  min-width: 72px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(110, 220, 255, 0.3);
  border-radius: 8px;
  color: #c9f7ff;
  background:
    linear-gradient(135deg, rgba(110, 220, 255, 0.12), rgba(157, 145, 255, 0.08)),
    rgba(5, 9, 14, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  font-family: var(--dm-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    border-color 150ms ease,
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.dm-tool-fullscreen-button:hover {
  border-color: rgba(110, 220, 255, 0.66);
  color: #ffffff;
  background-color: rgba(110, 220, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(110, 220, 255, 0.12);
  transform: translateY(-1px);
}

.dm-tool-fullscreen-button:active {
  transform: translateY(0);
}

.dm-tool-fullscreen-button:focus-visible {
  outline: 2px solid var(--dm-cyan);
  outline-offset: 3px;
}

.dm-tool-fullscreen-button[aria-pressed="true"] {
  border-color: rgba(244, 201, 107, 0.52);
  color: #ffedb5;
  background:
    linear-gradient(135deg, rgba(244, 201, 107, 0.15), rgba(110, 220, 255, 0.08)),
    rgba(5, 9, 14, 0.94);
}

.dm-tool-fullscreen-button svg,
.dm-tool-fullscreen-icon {
  display: block;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dm-tool-fullscreen-button .dm-tool-fullscreen-icon-collapse,
.dm-tool-fullscreen-button .dm-tool-fullscreen-collapse-icon,
.dm-tool-fullscreen-button [data-tool-fullscreen-icon="collapse"] {
  display: none;
}

.dm-tool-fullscreen-button[aria-pressed="true"] .dm-tool-fullscreen-icon-expand,
.dm-tool-fullscreen-button[aria-pressed="true"] .dm-tool-fullscreen-expand-icon,
.dm-tool-fullscreen-button[aria-pressed="true"] [data-tool-fullscreen-icon="expand"] {
  display: none;
}

.dm-tool-fullscreen-button[aria-pressed="true"] .dm-tool-fullscreen-icon-collapse,
.dm-tool-fullscreen-button[aria-pressed="true"] .dm-tool-fullscreen-collapse-icon,
.dm-tool-fullscreen-button[aria-pressed="true"] [data-tool-fullscreen-icon="collapse"] {
  display: block;
}

[data-tool-fullscreen].is-tool-fullscreen,
[data-tool-fullscreen]:fullscreen,
[data-tool-fullscreen]:-webkit-full-screen {
  position: fixed !important;
  inset: 10px !important;
  z-index: 2200 !important;
  isolation: isolate;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  height: calc(100vh - 20px) !important;
  height: calc(100dvh - 20px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(11px, 1.4vw, 18px) !important;
  border: 1px solid rgba(110, 220, 255, 0.3) !important;
  border-radius: 12px !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  color: var(--dm-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(110, 220, 255, 0.11), transparent 32%),
    radial-gradient(circle at 88% 2%, rgba(157, 145, 255, 0.09), transparent 34%),
    linear-gradient(rgba(126, 146, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 146, 174, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #0b1017 0%, #06090e 100%) !important;
  background-size: auto, auto, 54px 54px, 54px 54px, auto !important;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
  animation: dmToolFullscreenIn 160ms ease-out both;
}

[data-tool-fullscreen]:fullscreen,
[data-tool-fullscreen]:-webkit-full-screen {
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  border-radius: 0 !important;
}

[data-tool-fullscreen]::backdrop {
  background: #030508;
}

/* Fixed headers keep the exit control visible while a long tool scrolls. */
[data-tool-fullscreen].is-tool-fullscreen > .dm-tool-fullscreen-head,
[data-tool-fullscreen]:fullscreen > .dm-tool-fullscreen-head,
[data-tool-fullscreen]:-webkit-full-screen > .dm-tool-fullscreen-head {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

/* Price chart */
[data-tool-fullscreen].dm-candle-panel.is-tool-fullscreen,
[data-tool-fullscreen].dm-candle-panel:fullscreen,
[data-tool-fullscreen].dm-candle-panel:-webkit-full-screen,
[data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen,
[data-tool-fullscreen].dm-floor-chart:fullscreen,
[data-tool-fullscreen].dm-floor-chart:-webkit-full-screen,
[data-tool-fullscreen].dm-intel-card.is-tool-fullscreen,
[data-tool-fullscreen].dm-intel-card:fullscreen,
[data-tool-fullscreen].dm-intel-card:-webkit-full-screen,
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen,
[data-tool-fullscreen].dm-tool-panel:fullscreen,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen {
  overflow: hidden !important;
}

[data-tool-fullscreen].dm-candle-panel.is-tool-fullscreen .dm-candle-chart,
[data-tool-fullscreen].dm-candle-panel:fullscreen .dm-candle-chart,
[data-tool-fullscreen].dm-candle-panel:-webkit-full-screen .dm-candle-chart {
  flex: 1 1 auto;
  width: 100% !important;
  height: auto !important;
  min-height: min(360px, calc(100dvh - 112px)) !important;
  max-height: none !important;
}

/* GEX profile and heatmap share the remaining screen height. */
[data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen .dm-surface-view-panel:not([hidden]),
[data-tool-fullscreen].dm-floor-chart:fullscreen .dm-surface-view-panel:not([hidden]),
[data-tool-fullscreen].dm-floor-chart:-webkit-full-screen .dm-surface-view-panel:not([hidden]) {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

[data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen #simple-gex-chart,
[data-tool-fullscreen].dm-floor-chart:fullscreen #simple-gex-chart,
[data-tool-fullscreen].dm-floor-chart:-webkit-full-screen #simple-gex-chart {
  flex: 1 1 auto;
  width: 100% !important;
  height: auto !important;
  min-height: min(520px, calc(100dvh - 132px)) !important;
  max-height: none !important;
}

[data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen .dm-heatmap-head,
[data-tool-fullscreen].dm-floor-chart:fullscreen .dm-heatmap-head,
[data-tool-fullscreen].dm-floor-chart:-webkit-full-screen .dm-heatmap-head {
  flex: 0 0 auto;
}

[data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen #simple-strike-heatmap,
[data-tool-fullscreen].dm-floor-chart:fullscreen #simple-strike-heatmap,
[data-tool-fullscreen].dm-floor-chart:-webkit-full-screen #simple-strike-heatmap {
  flex: 1 1 auto;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto;
}

/* Strike ladder */
[data-tool-fullscreen].dm-ladder-panel.is-tool-fullscreen,
[data-tool-fullscreen].dm-ladder-panel:fullscreen,
[data-tool-fullscreen].dm-ladder-panel:-webkit-full-screen {
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  max-height: none !important;
  overflow: hidden !important;
}

[data-tool-fullscreen].dm-ladder-panel.is-tool-fullscreen #simple-strike-ladder,
[data-tool-fullscreen].dm-ladder-panel:fullscreen #simple-strike-ladder,
[data-tool-fullscreen].dm-ladder-panel:-webkit-full-screen #simple-strike-ladder {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}

/* Target Levels and IRIS */
[data-tool-fullscreen].dm-intel-card.is-tool-fullscreen .dm-target-list,
[data-tool-fullscreen].dm-intel-card:fullscreen .dm-target-list,
[data-tool-fullscreen].dm-intel-card:-webkit-full-screen .dm-target-list,
[data-tool-fullscreen].dm-intel-card.is-tool-fullscreen .dm-iris-list,
[data-tool-fullscreen].dm-intel-card:fullscreen .dm-iris-list,
[data-tool-fullscreen].dm-intel-card:-webkit-full-screen .dm-iris-list {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow: auto;
  overscroll-behavior: contain;
}

[data-tool-fullscreen].dm-intel-card.is-tool-fullscreen #simple-iris-chart,
[data-tool-fullscreen].dm-intel-card:fullscreen #simple-iris-chart,
[data-tool-fullscreen].dm-intel-card:-webkit-full-screen #simple-iris-chart {
  flex: 1 1 52%;
  height: auto !important;
  min-height: min(300px, calc(54dvh - 70px)) !important;
  max-height: none !important;
}

[data-tool-fullscreen].dm-intel-card.is-tool-fullscreen .dm-iris-list,
[data-tool-fullscreen].dm-intel-card:fullscreen .dm-iris-list,
[data-tool-fullscreen].dm-intel-card:-webkit-full-screen .dm-iris-list {
  flex-basis: 38%;
  margin-top: 12px;
}

/* Futures tab panels */
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-futures-book-head,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-futures-book-head,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-futures-book-head,
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-fo-lab-head,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-fo-lab-head,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-fo-lab-head,
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-futures-suite-head,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-futures-suite-head,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-futures-suite-head {
  flex: 0 0 auto;
}

[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-futures-book-grid,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-futures-book-grid,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-futures-book-grid,
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-fo-grid,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-fo-grid,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-fo-grid,
[data-tool-fullscreen].dm-tool-panel.is-tool-fullscreen .dm-futures-suite-grid,
[data-tool-fullscreen].dm-tool-panel:fullscreen .dm-futures-suite-grid,
[data-tool-fullscreen].dm-tool-panel:-webkit-full-screen .dm-futures-suite-grid {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none !important;
  align-content: start;
  overflow: auto !important;
  overscroll-behavior: contain;
}

@keyframes dmToolFullscreenIn {
  from {
    opacity: 0.84;
    transform: translateY(5px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .dm-tool-fullscreen-button {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }

  .dm-tool-fullscreen-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .dm-tool-fullscreen-head > .dm-tool-fullscreen-button {
    margin-top: 8px;
  }

  [data-tool-fullscreen].is-tool-fullscreen,
  [data-tool-fullscreen]:fullscreen,
  [data-tool-fullscreen]:-webkit-full-screen {
    inset: 4px !important;
    height: calc(100vh - 8px) !important;
    height: calc(100dvh - 8px) !important;
    padding: 9px !important;
    border-radius: 9px !important;
  }

  [data-tool-fullscreen]:fullscreen,
  [data-tool-fullscreen]:-webkit-full-screen {
    inset: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
  }

  [data-tool-fullscreen].dm-candle-panel.is-tool-fullscreen .dm-candle-chart,
  [data-tool-fullscreen].dm-candle-panel:fullscreen .dm-candle-chart,
  [data-tool-fullscreen].dm-candle-panel:-webkit-full-screen .dm-candle-chart {
    min-height: min(280px, calc(100dvh - 128px)) !important;
  }

  [data-tool-fullscreen].dm-floor-chart.is-tool-fullscreen #simple-gex-chart,
  [data-tool-fullscreen].dm-floor-chart:fullscreen #simple-gex-chart,
  [data-tool-fullscreen].dm-floor-chart:-webkit-full-screen #simple-gex-chart {
    min-height: min(390px, calc(100dvh - 174px)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-tool-fullscreen].is-tool-fullscreen,
  [data-tool-fullscreen]:fullscreen,
  [data-tool-fullscreen]:-webkit-full-screen {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Setup Radar — full-day volume gamma + open-interest setup detection
   State color communicates readiness; direction color communicates bias. This
   intentionally keeps gamma sign from being treated as directional by itself.
   -------------------------------------------------------------------------- */

.dm-setup-radar {
  --dm-setup-state: var(--dm-blue);
  --dm-setup-state-wash: rgba(142, 180, 255, 0.1);
  --dm-setup-state-glow: rgba(142, 180, 255, 0.2);
  --dm-setup-direction: #aab4c4;
  --dm-setup-direction-wash: rgba(170, 180, 196, 0.1);
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 13px;
  width: 100%;
  min-width: 0;
  margin: 12px 0 14px;
  padding: clamp(14px, 1.7vw, 20px);
  overflow: hidden;
  border: 1px solid var(--dm-setup-state);
  border-radius: 15px;
  color: var(--dm-text);
  background:
    radial-gradient(circle at 8% -30%, var(--dm-setup-state-wash), transparent 42%),
    radial-gradient(circle at 92% -35%, var(--dm-setup-direction-wash), transparent 40%),
    linear-gradient(135deg, rgba(17, 23, 33, 0.98), rgba(7, 10, 15, 0.99));
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.32),
    0 0 30px var(--dm-setup-state-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.dm-setup-radar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--dm-setup-state);
  box-shadow: 0 0 22px var(--dm-setup-state-glow);
}

.dm-setup-radar::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(48%, 560px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dm-setup-direction));
  opacity: 0.88;
}

.dm-setup-radar[data-state="loading"],
.dm-setup-card[data-state="loading"] {
  --dm-setup-state: #78b7ff;
  --dm-setup-state-wash: rgba(120, 183, 255, 0.11);
  --dm-setup-state-glow: rgba(120, 183, 255, 0.22);
}

.dm-setup-radar[data-state="neutral"],
.dm-setup-card[data-state="neutral"] {
  --dm-setup-state: #73d7ff;
  --dm-setup-state-wash: rgba(115, 215, 255, 0.1);
  --dm-setup-state-glow: rgba(115, 215, 255, 0.18);
}

.dm-setup-radar[data-state="watch"],
.dm-setup-card[data-state="watch"] {
  --dm-setup-state: #ffd45f;
  --dm-setup-state-wash: rgba(255, 212, 95, 0.12);
  --dm-setup-state-glow: rgba(255, 212, 95, 0.23);
}

.dm-setup-radar[data-state="active"],
.dm-setup-card[data-state="active"] {
  --dm-setup-state: #ae8bff;
  --dm-setup-state-wash: rgba(174, 139, 255, 0.13);
  --dm-setup-state-glow: rgba(174, 139, 255, 0.26);
}

.dm-setup-radar[data-state="confirmed"],
.dm-setup-card[data-state="confirmed"] {
  --dm-setup-state: #67e6bb;
  --dm-setup-state-wash: rgba(103, 230, 187, 0.13);
  --dm-setup-state-glow: rgba(103, 230, 187, 0.27);
}

.dm-setup-radar[data-state="stale"],
.dm-setup-card[data-state="stale"] {
  --dm-setup-state: #8490a1;
  --dm-setup-state-wash: rgba(132, 144, 161, 0.08);
  --dm-setup-state-glow: rgba(132, 144, 161, 0.12);
}

.dm-setup-radar[data-state="error"],
.dm-setup-card[data-state="error"] {
  --dm-setup-state: #ff7188;
  --dm-setup-state-wash: rgba(255, 113, 136, 0.12);
  --dm-setup-state-glow: rgba(255, 113, 136, 0.24);
}

.dm-setup-radar[data-direction="bullish"],
.dm-setup-card[data-direction="bullish"] {
  --dm-setup-direction: #64e59e;
  --dm-setup-direction-wash: rgba(100, 229, 158, 0.12);
}

.dm-setup-radar[data-direction="bearish"],
.dm-setup-card[data-direction="bearish"] {
  --dm-setup-direction: #ff667e;
  --dm-setup-direction-wash: rgba(255, 102, 126, 0.13);
}

.dm-setup-radar[data-direction="mixed"],
.dm-setup-card[data-direction="mixed"] {
  --dm-setup-direction: #b491ff;
  --dm-setup-direction-wash: rgba(180, 145, 255, 0.13);
}

.dm-setup-radar[data-direction="neutral"],
.dm-setup-card[data-direction="neutral"] {
  --dm-setup-direction: #78cfff;
  --dm-setup-direction-wash: rgba(120, 207, 255, 0.1);
}

/* Once a setup is actionable, direction owns the signal color. */
.dm-setup-radar:is([data-state="active"], [data-state="confirmed"])[data-direction="bullish"],
.dm-setup-card:is([data-state="active"], [data-state="confirmed"])[data-direction="bullish"] {
  --dm-setup-state: #64e59e;
  --dm-setup-state-wash: rgba(100, 229, 158, 0.13);
  --dm-setup-state-glow: rgba(100, 229, 158, 0.29);
}

.dm-setup-radar:is([data-state="active"], [data-state="confirmed"])[data-direction="bearish"],
.dm-setup-card:is([data-state="active"], [data-state="confirmed"])[data-direction="bearish"] {
  --dm-setup-state: #ff667e;
  --dm-setup-state-wash: rgba(255, 102, 126, 0.14);
  --dm-setup-state-glow: rgba(255, 102, 126, 0.3);
}

.dm-setup-radar:is([data-state="active"], [data-state="confirmed"])[data-direction="mixed"],
.dm-setup-card:is([data-state="active"], [data-state="confirmed"])[data-direction="mixed"] {
  --dm-setup-state: #b491ff;
  --dm-setup-state-wash: rgba(180, 145, 255, 0.14);
  --dm-setup-state-glow: rgba(180, 145, 255, 0.28);
}

.dm-setup-radar-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.dm-setup-radar-title {
  min-width: 0;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.dm-setup-radar-beacon {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--dm-setup-direction);
  box-shadow:
    0 0 0 4px var(--dm-setup-direction-wash),
    0 0 18px var(--dm-setup-direction);
}

[data-direction="bullish"] > .dm-setup-radar-head .dm-setup-radar-beacon,
[data-direction="bullish"] .dm-setup-card-head .dm-setup-radar-beacon {
  border-radius: 2px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

[data-direction="bearish"] > .dm-setup-radar-head .dm-setup-radar-beacon,
[data-direction="bearish"] .dm-setup-card-head .dm-setup-radar-beacon {
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

[data-direction="mixed"] > .dm-setup-radar-head .dm-setup-radar-beacon,
[data-direction="mixed"] .dm-setup-card-head .dm-setup-radar-beacon {
  border-radius: 2px;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.dm-setup-radar-meta {
  display: flex;
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
  margin-left: auto;
  color: #a8b4c5;
  font-family: var(--dm-mono);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-align: right;
  text-transform: uppercase;
}

.dm-setup-radar-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-width: 0;
}

.dm-setup-card {
  --dm-setup-source: #6edcff;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 10px;
  min-width: 0;
  padding: 15px 16px 14px 18px;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.24);
  border-left-color: var(--dm-setup-state);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, var(--dm-setup-direction-wash), transparent 42%),
    linear-gradient(150deg, var(--dm-setup-state-wash), transparent 52%),
    rgba(5, 8, 13, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.2);
}

.dm-setup-card.is-volume {
  --dm-setup-source: #68dcff;
}

.dm-setup-card.is-oi {
  --dm-setup-source: #b492ff;
}

.dm-setup-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--dm-setup-state);
  box-shadow: 0 0 17px var(--dm-setup-state-glow);
}

/* A visible text badge makes state and direction readable without color. */
.dm-setup-card::after {
  content: attr(data-state) "  /  " attr(data-direction);
  position: absolute;
  top: 12px;
  right: 13px;
  max-width: 48%;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid var(--dm-setup-state);
  border-radius: 999px;
  color: var(--dm-setup-state);
  background: rgba(3, 6, 10, 0.86);
  font-family: var(--dm-mono);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dm-setup-card[data-state="watch"] {
  border-style: dashed;
}

.dm-setup-card[data-state="stale"] {
  filter: saturate(0.55);
}

.dm-setup-card[data-state="error"] {
  background-image:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(255, 113, 136, 0.035) 12px 13px),
    radial-gradient(circle at 100% 0, var(--dm-setup-direction-wash), transparent 42%),
    linear-gradient(150deg, var(--dm-setup-state-wash), transparent 52%);
}

.dm-setup-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 24px;
  padding-right: 132px;
  color: #f4f8fd;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dm-setup-card-head::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2px;
  background: var(--dm-setup-source);
  box-shadow: 0 0 10px var(--dm-setup-source);
}

.dm-setup-card-level {
  min-width: 0;
  color: var(--dm-setup-direction);
  font-family: var(--dm-mono);
  font-size: clamp(17px, 2vw, 25px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px var(--dm-setup-direction-wash);
}

.dm-setup-card-detail {
  min-width: 0;
  max-width: 78ch;
  margin: 0;
  color: #bac4d1;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.48;
}

.dm-setup-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.dm-setup-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.25);
  border-radius: 7px;
  color: #c6cfdb;
  background: rgba(13, 18, 26, 0.86);
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-setup-chip::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dm-setup-chip:is(.is-positive, [data-tone="positive"], [data-direction="bullish"]) {
  border-color: rgba(100, 229, 158, 0.34);
  color: #7bebad;
  background: rgba(100, 229, 158, 0.075);
}

.dm-setup-chip:is(.is-negative, [data-tone="negative"], [data-direction="bearish"]) {
  border-color: rgba(255, 102, 126, 0.36);
  color: #ff8395;
  background: rgba(255, 102, 126, 0.08);
}

.dm-setup-chip:is(.is-warning, [data-tone="warning"], [data-state="watch"]) {
  border-color: rgba(255, 212, 95, 0.36);
  color: #ffdc78;
  background: rgba(255, 212, 95, 0.08);
}

.dm-setup-chip:is(.is-gamma, [data-tone="gamma"], [data-direction="mixed"]) {
  border-color: rgba(180, 145, 255, 0.36);
  color: #c2a7ff;
  background: rgba(180, 145, 255, 0.08);
}

.dm-setup-chip:is(.is-info, [data-tone="info"], [data-direction="neutral"]) {
  border-color: rgba(115, 215, 255, 0.34);
  color: #8be0ff;
  background: rgba(115, 215, 255, 0.075);
}

.dm-setup-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(126, 146, 174, 0.14);
  color: #7f8b9c;
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.dm-setup-combo-key {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(126, 146, 174, 0.17);
  border-radius: 10px;
  background: rgba(4, 7, 11, 0.56);
}

.dm-setup-combo-key::before {
  content: "Signal key";
  flex: 0 0 auto;
  margin-right: 2px;
  color: #7d899b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dm-setup-combo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid rgba(126, 146, 174, 0.22);
  border-radius: 7px;
  color: #b7c1cf;
  background: rgba(14, 19, 27, 0.74);
  font-family: var(--dm-mono);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.25;
}

.dm-setup-combo:is(.is-bullish, [data-direction="bullish"]) {
  border-color: rgba(100, 229, 158, 0.32);
  color: #80ecb2;
}

.dm-setup-combo:is(.is-bearish, [data-direction="bearish"]) {
  border-color: rgba(255, 102, 126, 0.34);
  color: #ff8798;
}

.dm-setup-combo:is(.is-mixed, [data-direction="mixed"]) {
  border-color: rgba(180, 145, 255, 0.34);
  color: #c3a9ff;
}

.dm-setup-disclaimer {
  position: relative;
  z-index: 1;
  margin: -2px 0 0;
  color: #707c8e;
  font-size: 9px;
  font-weight: 620;
  line-height: 1.4;
}

.dm-setup-radar :is(a, button, [tabindex]):focus-visible {
  outline: 2px solid #f7fbff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--dm-setup-direction-wash);
}

.dm-setup-card:focus-within {
  border-color: var(--dm-setup-direction);
}

.dm-setup-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dm-setup-radar[data-state="loading"]::after,
.dm-setup-card[data-state="loading"]::before {
  animation: dmSetupLoading 1.6s ease-in-out infinite;
}

.dm-setup-radar:is([data-state="active"], [data-state="confirmed"]) .dm-setup-radar-beacon {
  animation: dmSetupBeacon 1.8s ease-out infinite;
}

.dm-setup-radar.is-new-signal,
.dm-setup-card.is-new-signal {
  animation: dmSetupSignalArrive 700ms ease-out both;
}

@keyframes dmSetupLoading {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dmSetupBeacon {
  0%,
  100% {
    box-shadow:
      0 0 0 3px var(--dm-setup-direction-wash),
      0 0 12px var(--dm-setup-direction);
  }
  50% {
    box-shadow:
      0 0 0 7px transparent,
      0 0 22px var(--dm-setup-direction);
  }
}

@keyframes dmSetupSignalArrive {
  0% {
    opacity: 0.58;
    transform: translateY(-5px) scale(0.993);
    box-shadow: 0 0 0 2px var(--dm-setup-state), 0 0 44px var(--dm-setup-state-glow);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Focus mode keeps the actionable radar directly above its pared-down charts. */
body.is-surface-focus .dm-setup-radar {
  display: grid !important;
}

@media (max-width: 900px) {
  .dm-setup-radar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-setup-radar-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dm-setup-radar-meta {
    flex: 1 1 100%;
    margin-left: 23px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .dm-setup-radar {
    gap: 10px;
    margin: 9px 0 11px;
    padding: 12px 10px 11px 13px;
    border-radius: 12px;
  }

  .dm-setup-radar::before {
    width: 4px;
  }

  .dm-setup-radar-title {
    font-size: 14px;
    letter-spacing: 0.025em;
  }

  .dm-setup-radar-meta {
    gap: 5px 8px;
    margin-left: 0;
    font-size: 8px;
  }

  .dm-setup-radar-grid {
    gap: 8px;
  }

  .dm-setup-card {
    gap: 8px;
    padding: 12px 11px 11px 14px;
  }

  .dm-setup-card::after {
    position: static;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    margin-top: -3px;
  }

  .dm-setup-card-head {
    min-height: 0;
    padding-right: 0;
    font-size: 10px;
  }

  .dm-setup-card-level {
    font-size: 18px;
  }

  .dm-setup-card-detail {
    font-size: 10px;
  }

  .dm-setup-chip {
    min-height: 23px;
    padding-inline: 7px;
    font-size: 8px;
  }

  .dm-setup-combo-key {
    align-items: stretch;
    padding: 8px;
  }

  .dm-setup-combo-key::before {
    flex-basis: 100%;
  }

  .dm-setup-combo {
    flex: 1 1 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-setup-radar,
  .dm-setup-radar::after,
  .dm-setup-card,
  .dm-setup-card::before,
  .dm-setup-radar-beacon {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Structured Setup Radar markup refinements. */
.dm-setup-radar-title {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 11px;
  text-transform: none;
}

.dm-setup-radar-title > div {
  min-width: 0;
}

.dm-setup-radar-title .dm-mini-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--dm-setup-state);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dm-setup-radar-title h2 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.dm-setup-radar-head,
.dm-setup-radar-title {
  gap: 7px;
}

.dm-setup-radar-beacon {
  width: 8px;
  height: 8px;
  border-width: 1px;
}

.dm-setup-radar-title p {
  max-width: 86ch;
  margin: 7px 0 0;
  color: #aab6c6;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.dm-setup-radar-meta {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
}

.dm-setup-radar-meta strong {
  padding: 5px 8px;
  border: 1px solid var(--dm-setup-state);
  border-radius: 999px;
  color: var(--dm-setup-state);
  background: var(--dm-setup-state-wash);
}

.dm-setup-radar-meta small {
  max-width: 330px;
  color: #778497;
  font-size: 8px;
  line-height: 1.35;
}

.dm-setup-card-head > span {
  min-width: 0;
  color: var(--dm-setup-source);
}

.dm-setup-card-head > strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f8fd;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-setup-card-level {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 10px;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-shadow: none;
}

.dm-setup-card-level > span {
  color: #748196;
  font-family: var(--dm-font);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dm-setup-card-level > b {
  min-width: 0;
  color: var(--dm-setup-direction);
  font-family: var(--dm-mono);
  font-size: clamp(20px, 2.35vw, 31px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
  text-shadow: 0 0 18px var(--dm-setup-direction-wash);
}

.dm-setup-card-level > em {
  grid-column: 1 / -1;
  color: #8a97a9;
  font-family: var(--dm-font);
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.dm-setup-combo.is-controlled-bid {
  border-color: rgba(100, 229, 158, 0.32);
  color: #82edb4;
}

.dm-setup-combo.is-upside-expansion {
  border-color: rgba(110, 220, 255, 0.36);
  color: #8de7ff;
}

.dm-setup-combo.is-controlled-offer {
  border-color: rgba(255, 177, 92, 0.36);
  color: #ffc27f;
}

.dm-setup-combo.is-downside-expansion {
  border-color: rgba(255, 102, 126, 0.36);
  color: #ff8798;
}

@media (max-width: 640px) {
  .dm-setup-radar-title h2 {
    font-size: 18px;
  }

  .dm-setup-radar-meta {
    align-items: flex-start;
  }

  .dm-setup-card-level > b {
    font-size: 22px;
  }
}

.dm-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Compact price-position and price-action regime panel. */
.dm-setup-radar {
  gap: 6px;
  margin: 8px 0 9px;
  padding: 9px 10px 8px 12px;
  border-color: rgba(126, 146, 174, 0.28);
  border-radius: 10px;
  background: rgba(7, 11, 17, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dm-setup-radar-title h2 {
  font-size: clamp(15px, 1.35vw, 19px);
  letter-spacing: -0.015em;
}

.dm-setup-radar-title .dm-mini-kicker {
  margin-bottom: 3px;
  font-size: 7px;
}

.dm-setup-radar-meta {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.dm-setup-radar-meta strong {
  padding: 3px 6px;
  font-size: 8px;
}

.dm-setup-radar-meta small {
  max-width: 250px;
  font-size: 7px;
}

.dm-setup-radar-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.dm-setup-card {
  grid-template-areas: "head level regime";
  grid-template-columns: minmax(140px, 0.7fr) minmax(105px, 0.45fr) minmax(0, 2.85fr);
  grid-template-rows: auto;
  align-items: stretch;
  gap: 7px 10px;
  padding: 7px 8px 7px 11px;
  border-color: rgba(126, 146, 174, 0.16);
  border-radius: 7px;
  background: rgba(3, 6, 10, 0.62);
  box-shadow: none;
}

.dm-setup-card::after {
  display: none;
  content: none;
}

.dm-setup-card-head {
  grid-area: head;
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 0;
  padding-right: 0;
  font-size: 9px;
}

.dm-setup-card-head > strong {
  margin-left: 0;
  color: var(--dm-setup-state);
  font-size: 8px;
  line-height: 1.15;
  text-align: left;
  white-space: normal;
}

.dm-setup-card-level {
  grid-area: level;
  align-content: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.dm-setup-card-level > span {
  display: none;
}

.dm-setup-card-level > b {
  font-size: clamp(17px, 1.55vw, 21px);
}

.dm-setup-card-level > em {
  grid-column: 1;
  color: var(--dm-setup-direction);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.dm-setup-regime-grid {
  grid-area: regime;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.18);
  border-radius: 6px;
  background: rgba(9, 13, 19, 0.58);
}

.dm-setup-regime-cell {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 39px;
  padding: 5px 7px;
  border-left: 1px solid rgba(126, 146, 174, 0.14);
}

.dm-setup-regime-cell:first-child {
  border-left: 0;
}

.dm-setup-regime-cell small {
  color: #748196;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.dm-setup-regime-cell b {
  min-width: 0;
  color: #c6d0dc;
  font-family: var(--dm-mono);
  font-size: clamp(7px, 0.68vw, 9px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dm-setup-regime-cell b[data-tone="bullish"],
.dm-setup-regime-cell b[data-tone="positive"] {
  color: #72e8ad;
}

.dm-setup-regime-cell b[data-tone="bearish"] {
  color: #ff8193;
}

.dm-setup-regime-cell b[data-tone="negative"] {
  color: #c6a7ff;
}

.dm-setup-regime-cell b[data-tone="warning"] {
  color: #ffda6c;
}

.dm-setup-card-detail {
  grid-area: detail;
  margin: 0;
  color: #8793a4;
  font-size: 9px;
  line-height: 1.35;
}

.dm-setup-legend,
.dm-setup-disclaimer {
  margin: 0;
  color: #717e90;
  font-size: 7px;
  font-weight: 650;
  line-height: 1.3;
}

.dm-setup-legend b {
  color: #cbd5e1;
}

@media (max-width: 760px) {
  .dm-setup-card {
    grid-template-areas:
      "head level"
      "regime regime";
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dm-setup-regime-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dm-setup-regime-cell:nth-child(3) {
    border-left: 1px solid rgba(126, 146, 174, 0.14);
    border-top: 0;
  }

  .dm-setup-regime-cell:nth-child(4) {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .dm-setup-radar {
    gap: 6px;
    padding: 8px 7px 7px 10px;
  }

  .dm-setup-card {
    padding: 7px 6px 6px 10px;
  }

  .dm-setup-card-head > strong {
    max-width: none;
    white-space: normal;
  }

  .dm-setup-regime-cell {
    min-height: 38px;
    padding: 5px 4px;
  }

  .dm-setup-regime-cell b {
    font-size: 7px;
  }
}

/* Active-map Call, Put, and signed Net Gamma totals. */
.dm-gamma-totals {
  --dm-gamma-net: #f5cf70;
  --dm-gamma-net-wash: rgba(245, 207, 112, 0.1);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(135px, 0.48fr) minmax(0, 2.52fr);
  grid-template-areas: "head values";
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0 0 8px;
  padding: 7px 8px 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(139, 157, 185, 0.24);
  border-radius: 10px;
  background: rgba(7, 11, 17, 0.94);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.dm-gamma-totals::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--dm-gamma-net);
  box-shadow: 0 0 10px var(--dm-gamma-net);
}

.dm-gamma-totals[data-tone="positive"] {
  --dm-gamma-net: #69e5a5;
  --dm-gamma-net-wash: rgba(105, 229, 165, 0.11);
}

.dm-gamma-totals[data-tone="negative"] {
  --dm-gamma-net: #ff768b;
  --dm-gamma-net-wash: rgba(255, 118, 139, 0.11);
}

.dm-gamma-totals-head {
  grid-area: head;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 1px 3px 1px 6px;
}

.dm-gamma-totals-head .dm-mini-kicker {
  display: none;
}

.dm-gamma-totals-head h2 {
  margin: 0;
  color: #f6f9fd;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 930;
  line-height: 1;
  letter-spacing: -0.025em;
}

.dm-gamma-totals-head small {
  display: block;
  margin-top: 4px;
  color: #8491a3;
  font-family: var(--dm-mono);
  font-size: 6px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.dm-gamma-totals-grid {
  grid-area: values;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(139, 157, 185, 0.16);
  border-radius: 7px;
  background: rgba(3, 6, 10, 0.45);
}

.dm-gamma-total {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 40px;
  padding: 5px 9px 5px 11px;
  border-left: 1px solid rgba(139, 157, 185, 0.14);
}

.dm-gamma-total:first-child {
  border-left: 0;
}

.dm-gamma-total::before {
  content: "";
  position: absolute;
  inset: 7px auto 7px 0;
  width: 1px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.88;
  box-shadow: 0 0 6px currentColor;
}

.dm-gamma-total.is-call {
  color: #69d9ff;
}

.dm-gamma-total.is-put {
  color: #c09aff;
}

.dm-gamma-total.is-net {
  color: var(--dm-gamma-net);
  background: var(--dm-gamma-net-wash);
}

.dm-gamma-total dt {
  min-width: 0;
  color: #7f8da1;
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.095em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.dm-gamma-total dd {
  min-width: 0;
  margin: 0;
  color: currentColor;
  font-family: var(--dm-mono);
  font-size: clamp(14px, 1.4vw, 19px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-shadow: 0 0 10px color-mix(in srgb, currentColor 55%, transparent);
}

.dm-gamma-total.is-net dd {
  font-size: clamp(15px, 1.55vw, 21px);
}

body.is-surface-focus .dm-gamma-totals {
  display: none !important;
}

@media (max-width: 560px) {
  .dm-gamma-totals {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "values";
    gap: 5px;
    padding: 7px;
  }

  .dm-gamma-totals-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 0 2px 0 4px;
  }

  .dm-gamma-totals-head > div {
    flex: 0 0 auto;
  }

  .dm-gamma-totals-head small {
    margin: 0;
    text-align: right;
  }
}

@media (max-width: 480px) {
  .dm-setup-radar-meta small {
    display: none;
  }

  .dm-setup-radar-title h2 {
    font-size: 14px;
  }

  .dm-setup-legend {
    font-size: 6px;
  }

  .dm-gamma-total {
    min-height: 38px;
    padding: 5px 4px 5px 7px;
  }

  .dm-gamma-total dt {
    font-size: 6px;
    letter-spacing: 0.055em;
  }

  .dm-gamma-total dd,
  .dm-gamma-total.is-net dd {
    font-size: clamp(12px, 3.8vw, 16px);
  }

  .dm-gamma-totals-head small {
    max-width: 65%;
    font-size: 6px;
  }
}

/* --------------------------------------------------------------------------
   Levexes command cockpit + Global Impulse v1
   -------------------------------------------------------------------------- */

.levexes-surface .lx-surface-hero {
  display: none;
}

.dm-command-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 23vw, 378px);
  align-items: start;
  gap: 10px;
  margin-top: 8px;
}

.dm-cockpit-core,
.dm-global-impulse {
  min-width: 0;
}

.dm-cockpit-core > :first-child {
  margin-top: 0;
}

.dm-cockpit-core .dm-market-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.dm-cockpit-core .dm-market-workspace .dm-candle-chart {
  height: clamp(480px, 50vh, 610px);
  min-height: 480px;
  border-color: rgba(233, 220, 176, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 42% 48%, rgba(110, 220, 255, 0.028), transparent 46%),
    #050709;
}

.dm-candle-head-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.dm-candle-head-meta p {
  max-width: 270px;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-candle-session-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(233, 220, 176, 0.18);
  border-radius: 999px;
  color: #d5cba8;
  background: rgba(233, 220, 176, 0.045);
  font-family: var(--dm-mono);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.dm-candle-price-controls {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(233, 220, 176, 0.16);
  border-radius: 999px;
  background: rgba(3, 7, 12, 0.72);
}

.dm-candle-price-controls .dm-candle-price-control {
  min-height: 19px;
  padding: 0 7px;
  border: 0;
  color: #8e98a6;
  background: transparent;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.dm-candle-price-controls .dm-candle-price-control:hover,
.dm-candle-price-controls .dm-candle-price-control:focus-visible {
  color: #f1ead3;
  background: rgba(233, 220, 176, 0.08);
}

.dm-candle-price-controls .dm-candle-price-control.is-active {
  color: #071015;
  background: #e9dcb0;
  box-shadow: 0 0 14px rgba(233, 220, 176, 0.16);
}

.dm-candle-level-import-toggle {
  cursor: pointer;
}

.dm-candle-level-import-toggle[aria-expanded="true"] {
  border-color: rgba(103, 232, 249, 0.42);
  color: #bff7ff;
  background: rgba(34, 211, 238, 0.09);
}

.dm-candle-level-import {
  position: absolute;
  z-index: 24;
  top: 62px;
  right: 14px;
  width: min(350px, calc(100% - 28px));
  padding: 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(145deg, rgba(8, 15, 22, 0.98), rgba(3, 7, 12, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.dm-candle-level-import[hidden] {
  display: none;
}

.dm-candle-level-import-head,
.dm-candle-level-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-candle-level-import-head strong {
  display: block;
  margin-top: 3px;
  color: #f5f1e5;
  font-size: 12px;
}

.dm-candle-level-import-head > button {
  width: 27px;
  height: 27px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  color: #9ca8b7;
  background: rgba(255, 255, 255, 0.035);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.dm-candle-level-import > label {
  display: block;
  margin: 10px 0 5px;
  color: #8ea0b3;
  font-family: var(--dm-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dm-candle-level-import textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 7px;
  outline: 0;
  color: #e9edf2;
  background: rgba(0, 0, 0, 0.48);
  font-family: var(--dm-mono);
  font-size: 10px;
  line-height: 1.55;
}

.dm-candle-level-import textarea:focus {
  border-color: rgba(103, 232, 249, 0.48);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.08);
}

.dm-candle-level-import-actions {
  margin-top: 9px;
}

.dm-candle-level-import-actions > span {
  flex: 1 1 auto;
  color: #7f8b9a;
  font-family: var(--dm-mono);
  font-size: 8px;
  line-height: 1.35;
}

.dm-candle-level-import-actions > span.is-error {
  color: #fca5a5;
}

.dm-candle-level-import-actions > span.is-success {
  color: #86efac;
}

.dm-candle-level-import-actions button {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #b6c0cc;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--dm-mono);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

#simple-candle-level-draw {
  border-color: rgba(103, 232, 249, 0.38);
  color: #061014;
  background: #9deaf4;
}

.dm-cockpit-core .dm-decision-lens {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(220px, 1fr);
  gap: 8px 12px;
  min-height: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.dm-cockpit-core .dm-decision-lens::before {
  display: none;
}

.dm-cockpit-core .dm-decision-lens-head {
  grid-column: 1;
  grid-row: 1;
}

.dm-cockpit-core .dm-decision-lens h2 {
  font-size: 14px;
}

.dm-cockpit-core #simple-lens-copy {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
}

.dm-cockpit-core .dm-wall-range {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  margin: 0;
  padding: 9px 10px 7px;
  border-radius: 7px;
}

.dm-cockpit-core .dm-wall-track {
  margin-top: 15px;
  margin-bottom: 14px;
}

.dm-cockpit-core .dm-lens-readout {
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  border-radius: 6px;
}

.dm-cockpit-core .dm-lens-readout > div {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 30px;
  padding: 5px 8px;
}

.dm-cockpit-core .dm-lens-levels {
  grid-column: 1 / -1;
  grid-row: 4;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 146, 174, 0.14);
  border-radius: 6px;
  background: rgba(126, 146, 174, 0.1);
}

.dm-cockpit-core .dm-lens-levels article {
  min-height: 46px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0;
}

.dm-cockpit-core .dm-lens-levels strong {
  display: inline;
  margin: 0 7px;
  font-size: 15px;
}

.dm-cockpit-core .dm-lens-levels small {
  display: inline;
}

.dm-global-impulse {
  position: sticky;
  top: 70px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  height: min(780px, calc(100vh - 84px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(233, 220, 176, 0.22);
  border-radius: 9px;
  color: #e8edf5;
  background:
    linear-gradient(180deg, rgba(233, 220, 176, 0.035), transparent 100px),
    rgba(3, 5, 7, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(15px);
}

.dm-global-impulse::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, #eadcae, rgba(110, 220, 255, 0.36) 48%, transparent);
  opacity: 0.66;
}

.dm-global-impulse-head {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px 9px 13px;
  border-bottom: 1px solid rgba(137, 156, 184, 0.16);
}

.dm-global-impulse-head h2 {
  margin: 2px 0 0;
  color: #f6f0dc;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.dm-global-impulse-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dm-global-impulse-clock time {
  color: #d9d0b2;
  font-family: var(--dm-mono);
  font-size: 9px;
  font-weight: 750;
}

.dm-global-impulse-clock button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(233, 220, 176, 0.2);
  border-radius: 50%;
  color: #e9dfbe;
  background: rgba(233, 220, 176, 0.045);
  cursor: pointer;
}

.dm-global-impulse-clock button:hover,
.dm-global-impulse-clock button:focus-visible {
  border-color: rgba(233, 220, 176, 0.55);
  background: rgba(233, 220, 176, 0.11);
}

.dm-global-impulse-clock button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.dm-global-impulse-clock svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dm-global-impulse[data-state="loading"] .dm-global-impulse-clock svg {
  animation: dmImpulseSpin 850ms linear infinite;
}

.dm-global-impulse-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 35px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(137, 156, 184, 0.13);
}

.dm-global-impulse-tabs button {
  position: relative;
  min-width: 0;
  padding: 0 5px;
  border: 0;
  color: #737f91;
  background: transparent;
  font-family: var(--dm-mono);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  cursor: pointer;
}

.dm-global-impulse-tabs button::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 1px;
  background: transparent;
}

.dm-global-impulse-tabs button.is-active {
  color: #efe5c5;
}

.dm-global-impulse-tabs button.is-active::after {
  background: #eadcae;
  box-shadow: 0 0 9px rgba(234, 220, 174, 0.55);
}

.dm-global-impulse-meta {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 11px 5px 13px;
  border-bottom: 1px solid rgba(137, 156, 184, 0.11);
  color: #778396;
  font-family: var(--dm-mono);
  font-size: 7px;
}

.dm-global-impulse-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-global-impulse-meta b {
  flex: 0 0 auto;
  color: #aeb8c6;
}

.dm-global-impulse-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(233, 220, 176, 0.25) transparent;
  scrollbar-width: thin;
  list-style: none;
}

.dm-global-impulse-item {
  position: relative;
  border-bottom: 1px solid rgba(137, 156, 184, 0.105);
}

.dm-global-impulse-item > a,
.dm-global-impulse-item > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 0 7px;
  min-height: 72px;
  padding: 9px 11px 9px 13px;
  color: inherit;
  text-decoration: none;
}

.dm-global-impulse-item > a:hover,
.dm-global-impulse-item > a:focus-visible {
  background: linear-gradient(90deg, rgba(var(--impulse-rgb, 110, 220, 255), 0.08), transparent 78%);
}

.dm-global-impulse-item > a:focus-visible {
  outline: 2px solid rgba(234, 220, 174, 0.82);
  outline-offset: -3px;
}

.dm-global-impulse-dot {
  grid-row: 1 / 4;
  width: 5px;
  height: 5px;
  margin-top: 4px;
  border-radius: 50%;
  background: rgb(var(--impulse-rgb, 110, 220, 255));
  box-shadow: 0 0 8px rgba(var(--impulse-rgb, 110, 220, 255), 0.55);
}

.dm-global-impulse-item[data-category="macro"],
.dm-global-impulse-item[data-category="rates"] {
  --impulse-rgb: 110, 220, 255;
}

.dm-global-impulse-item[data-category="ticker"],
.dm-global-impulse-item[data-category="earnings"] {
  --impulse-rgb: 101, 221, 160;
}

.dm-global-impulse-item[data-category="energy"] {
  --impulse-rgb: 244, 201, 107;
}

.dm-global-impulse-item[data-category="geopolitics"],
.dm-global-impulse-item[data-category="risk"] {
  --impulse-rgb: 255, 128, 152;
}

.dm-global-impulse-line {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: rgb(var(--impulse-rgb, 110, 220, 255));
  font-family: var(--dm-mono);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.dm-global-impulse-line span,
.dm-global-impulse-line time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-global-impulse-line time {
  flex: 0 0 auto;
  color: #697588;
  font-weight: 650;
  letter-spacing: 0;
}

.dm-global-impulse-title {
  grid-column: 2;
  margin: 4px 0 0;
  color: #edf1f6;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.dm-global-impulse-source {
  grid-column: 2;
  margin-top: 4px;
  overflow: hidden;
  color: #687487;
  font-family: var(--dm-mono);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-global-impulse-empty {
  display: grid;
  min-height: 190px;
  padding: 28px 22px;
  place-items: center;
  color: #7d899a;
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.dm-global-impulse-skeleton {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 7px;
  min-height: 72px;
  align-content: center;
  padding: 9px 11px 9px 13px;
  border-bottom: 1px solid rgba(137, 156, 184, 0.1);
}

.dm-global-impulse-skeleton i {
  grid-row: 1 / 3;
  width: 5px;
  height: 5px;
  margin-top: 3px;
  border-radius: 50%;
  background: #344052;
}

.dm-global-impulse-skeleton span {
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(111, 125, 146, 0.1), rgba(167, 180, 197, 0.22), rgba(111, 125, 146, 0.1));
  background-size: 200% 100%;
  animation: dmImpulseShimmer 1.3s linear infinite;
}

.dm-global-impulse-skeleton span:last-child {
  width: 68%;
}

.dm-global-impulse-foot {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px 6px 13px;
  border-top: 1px solid rgba(137, 156, 184, 0.12);
  color: #647084;
  font-family: var(--dm-mono);
  font-size: 6px;
}

.dm-global-impulse-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8c9aab;
  font-weight: 750;
  text-transform: uppercase;
}

.dm-global-impulse-foot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dm-green);
  box-shadow: 0 0 7px rgba(101, 221, 160, 0.55);
}

body.is-surface-focus .dm-global-impulse {
  display: none;
}

body.is-surface-focus .dm-command-cockpit {
  grid-template-columns: minmax(0, 1fr);
}

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

@keyframes dmImpulseShimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 1480px) {
  .dm-command-cockpit {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-global-impulse {
    position: relative;
    top: auto;
    height: min(620px, 72vh);
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .dm-command-cockpit {
    gap: 8px;
  }

  .dm-cockpit-core .dm-market-workspace .dm-candle-chart {
    height: 430px;
    min-height: 390px;
  }

  .dm-candle-head-meta {
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .dm-candle-head-meta p {
    flex-basis: 100%;
    max-width: 210px;
    margin: 0;
  }

  .dm-candle-level-import {
    top: 92px;
  }

  .dm-cockpit-core .dm-decision-lens {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-cockpit-core .dm-decision-lens-head,
  .dm-cockpit-core #simple-lens-copy,
  .dm-cockpit-core .dm-wall-range,
  .dm-cockpit-core .dm-lens-readout,
  .dm-cockpit-core .dm-lens-levels {
    grid-column: 1;
    grid-row: auto;
  }

  .dm-cockpit-core .dm-lens-readout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-global-impulse {
    width: 100%;
    height: min(560px, 70dvh);
    min-height: 420px;
    border-radius: 7px;
  }

  .dm-global-impulse-clock button {
    width: 44px;
    height: 44px;
  }

  .dm-global-impulse-tabs button {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .dm-cockpit-core .dm-market-workspace .dm-candle-chart {
    height: 390px;
    min-height: 360px;
  }

  .dm-candle-session-chip {
    display: none;
  }

  .dm-candle-price-controls,
  .dm-candle-price-controls .dm-candle-price-control,
  .dm-candle-session-chip.dm-candle-level-import-toggle {
    display: inline-flex;
  }

  .dm-candle-price-controls .dm-candle-price-control {
    padding: 0 6px;
  }

  .dm-candle-level-import {
    top: 112px;
    right: 8px;
    width: calc(100% - 16px);
  }

  .dm-candle-level-import-actions {
    flex-wrap: wrap;
  }

  .dm-candle-level-import-actions > span {
    flex-basis: 100%;
  }

  .dm-global-impulse-head {
    padding-left: 10px;
  }

  .dm-global-impulse-item > a,
  .dm-global-impulse-item > div {
    padding-right: 9px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-global-impulse[data-state="loading"] .dm-global-impulse-clock svg,
  .dm-global-impulse-skeleton span {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Flat market rails v5
   These read as one continuous instrument panel: no card shells, rounded
   sub-panels, filled metric tiles, or container glow.
   -------------------------------------------------------------------------- */

.dm-setup-radar {
  gap: 0;
  margin: 5px 0 6px;
  padding: 0 10px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(137, 156, 184, 0.26);
  border-bottom: 1px solid rgba(137, 156, 184, 0.22);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(4, 8, 13, 0.82), rgba(4, 8, 13, 0.6));
  box-shadow: none;
  backdrop-filter: blur(7px);
}

.dm-setup-radar::before,
.dm-setup-radar::after {
  display: none;
  content: none;
}

.dm-setup-radar-head {
  min-height: 30px;
  padding: 4px 2px 5px;
  border-bottom: 1px solid rgba(137, 156, 184, 0.18);
}

.dm-setup-radar-title {
  gap: 7px;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.dm-setup-radar-title > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.dm-setup-radar-title .dm-mini-kicker {
  flex: 0 0 auto;
  margin: 0;
  color: #7d899b;
  font-size: 6px;
  letter-spacing: 0.105em;
}

.dm-setup-radar-title h2 {
  min-width: 0;
  margin: 0;
  color: #edf2f8;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  white-space: nowrap;
}

.dm-setup-radar-beacon {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 1px;
  background: var(--dm-setup-state);
  box-shadow: none;
  transform: rotate(45deg);
}

.dm-setup-radar[data-direction] > .dm-setup-radar-head .dm-setup-radar-beacon,
.dm-setup-radar:is([data-state="active"], [data-state="confirmed"]) .dm-setup-radar-beacon {
  border-radius: 1px;
  clip-path: none;
  box-shadow: none;
  animation: none;
}

.dm-setup-radar-meta {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-size: 7px;
  text-align: right;
}

.dm-setup-radar-meta strong {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--dm-setup-state);
  background: transparent;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.dm-setup-radar-meta small {
  max-width: 330px;
  margin: 0;
  color: #697589;
  font-size: 6px;
  white-space: nowrap;
}

.dm-setup-radar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.dm-setup-card,
.dm-setup-card[data-state] {
  grid-template-areas: "head level regime";
  grid-template-columns: minmax(180px, 0.72fr) minmax(145px, 0.55fr) minmax(0, 3fr);
  grid-template-rows: minmax(34px, auto);
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(137, 156, 184, 0.13);
  border-radius: 0;
  border-style: solid;
  background: transparent;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.dm-setup-card:last-child {
  border-bottom: 0;
}

.dm-setup-card::before,
.dm-setup-card::after {
  display: none;
  content: none;
}

.dm-setup-card:focus-within {
  border-color: rgba(137, 156, 184, 0.13);
}

.dm-setup-card-head {
  grid-area: head;
  display: flex;
  align-items: center;
  align-content: initial;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px 0 2px;
  color: var(--dm-setup-source);
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.dm-setup-card-head::before {
  width: 4px;
  height: 4px;
  border: 0;
  border-radius: 1px;
  box-shadow: none;
}

.dm-setup-card-head > span,
.dm-setup-card-head > strong {
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.dm-setup-card-head > strong {
  margin: 0;
  color: #758196;
  font-weight: 760;
}

.dm-setup-card-head > strong::before {
  content: "/";
  margin-right: 7px;
  color: #404a58;
}

.dm-setup-card-level {
  grid-area: level;
  display: flex;
  align-items: center;
  align-content: initial;
  gap: 7px;
  min-height: 34px;
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(137, 156, 184, 0.14);
  color: var(--dm-setup-direction);
  text-shadow: none;
}

.dm-setup-card-level > span {
  display: none;
}

.dm-setup-card-level > b {
  flex: 0 0 auto;
  font-size: clamp(13px, 1.08vw, 17px);
  line-height: 1;
  letter-spacing: -0.025em;
}

.dm-setup-card-level > em {
  grid-column: auto;
  min-width: 0;
  color: #6f7b8e;
  font-size: 6px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0.045em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-setup-regime-grid {
  grid-area: regime;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dm-setup-regime-cell,
.dm-setup-regime-cell:first-child {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 34px;
  padding: 3px 10px;
  border: 0;
  border-left: 1px solid rgba(137, 156, 184, 0.14);
  background: transparent;
}

.dm-setup-regime-cell small {
  color: #657184;
  font-size: 5px;
  letter-spacing: 0.11em;
}

.dm-setup-regime-cell b {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #b8c3d1;
  font-size: clamp(7px, 0.61vw, 9px);
  line-height: 1.12;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-setup-card.is-new-signal,
.dm-setup-radar.is-new-signal {
  animation: dmSetupFlatSignal 500ms ease-out both;
}

@keyframes dmSetupFlatSignal {
  0% {
    opacity: 0.56;
    transform: translateY(-2px);
    box-shadow: none;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: none;
  }
}

/* Gamma is a single-line readout, not a second card group. */
.dm-gamma-totals {
  position: relative;
  display: grid;
  grid-template-columns: minmax(185px, 0.5fr) minmax(0, 2.5fr);
  grid-template-areas: "head values";
  gap: 0;
  margin: 0 0 7px;
  padding: 0 10px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(137, 156, 184, 0.22);
  border-bottom: 1px solid rgba(137, 156, 184, 0.2);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(4, 8, 13, 0.76), rgba(4, 8, 13, 0.54));
  box-shadow: none;
  backdrop-filter: blur(7px);
}

.dm-gamma-totals::before {
  display: none;
  content: none;
}

.dm-gamma-totals-head {
  grid-area: head;
  display: flex;
  align-items: center;
  align-content: initial;
  gap: 9px;
  min-height: 36px;
  padding: 0 12px 0 2px;
}

.dm-gamma-totals-head > div {
  flex: 0 0 auto;
}

.dm-gamma-totals-head h2 {
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.dm-gamma-totals-head small {
  min-width: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  color: #697589;
  font-size: 5px;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-gamma-totals-grid {
  grid-area: values;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dm-gamma-total,
.dm-gamma-total:first-child {
  position: relative;
  display: flex;
  align-items: center;
  align-content: initial;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid rgba(137, 156, 184, 0.14);
  background: transparent;
}

.dm-gamma-total::before {
  display: none;
  content: none;
}

.dm-gamma-total.is-net {
  color: var(--dm-gamma-net);
  background: transparent;
}

.dm-gamma-total dt {
  flex: 0 1 auto;
  color: #6f7b8e;
  font-size: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dm-gamma-total dd,
.dm-gamma-total.is-net dd {
  flex: 0 0 auto;
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dm-setup-radar-head {
    align-items: center;
    flex-wrap: nowrap;
  }

  .dm-setup-radar-meta {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
  }

  .dm-setup-radar-meta small {
    display: none;
  }

  .dm-setup-card,
  .dm-setup-card[data-state] {
    grid-template-areas:
      "head level"
      "regime regime";
    grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
    grid-template-rows: minmax(29px, auto) minmax(32px, auto);
  }

  .dm-setup-card-head,
  .dm-setup-card-level {
    min-height: 29px;
  }

  .dm-setup-card-level {
    justify-content: flex-end;
    border-left: 0;
  }

  .dm-setup-regime-cell,
  .dm-setup-regime-cell:first-child,
  .dm-setup-regime-cell:nth-child(3),
  .dm-setup-regime-cell:nth-child(4) {
    min-height: 32px;
    border-top: 1px solid rgba(137, 156, 184, 0.11);
    border-left: 1px solid rgba(137, 156, 184, 0.14);
  }

  .dm-setup-regime-cell:first-child {
    border-left: 0;
  }

  .dm-gamma-totals {
    grid-template-columns: minmax(155px, 0.55fr) minmax(0, 2.45fr);
  }

  .dm-gamma-total,
  .dm-gamma-total:first-child {
    padding-inline: 10px;
  }

  .dm-gamma-total dt {
    font-size: 5px;
  }
}

@media (max-width: 620px) {
  .dm-setup-radar,
  .dm-gamma-totals {
    padding-inline: 7px;
  }

  .dm-gamma-total:first-child {
    border-left: 0;
  }

  .dm-setup-radar-title .dm-mini-kicker {
    display: none;
  }

  .dm-setup-radar-title h2 {
    font-size: 12px;
  }

  .dm-setup-card-head {
    padding-right: 6px;
  }

  .dm-setup-card-head > span,
  .dm-setup-card-head > strong {
    font-size: 6px;
  }

  .dm-setup-card-level {
    padding-inline: 7px;
  }

  .dm-setup-regime-cell,
  .dm-setup-regime-cell:first-child {
    padding-inline: 5px;
  }

  .dm-setup-regime-cell b {
    font-size: 6px;
  }

  .dm-gamma-totals {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "head"
      "values";
    gap: 0;
  }

  .dm-gamma-totals-head {
    min-height: 23px;
    justify-content: space-between;
    padding-inline: 2px;
    border-bottom: 1px solid rgba(137, 156, 184, 0.12);
  }

  .dm-gamma-totals-head small {
    text-align: right;
  }

  .dm-gamma-total,
  .dm-gamma-total:first-child {
    min-height: 34px;
    padding-inline: 7px;
  }

  .dm-gamma-total dd,
  .dm-gamma-total.is-net dd {
    font-size: clamp(12px, 3.4vw, 16px);
  }
}

@media (max-width: 430px) {
  .dm-setup-card-level > em {
    display: none;
  }

  .dm-setup-card-head > strong::before {
    display: none;
  }

  .dm-setup-card-head {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  .dm-gamma-total,
  .dm-gamma-total:first-child {
    display: grid;
    justify-content: initial;
    gap: 2px;
  }

  .dm-gamma-total dt {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ECharts strike profile -------------------------------------------------- */

#simple-gex-chart.is-echarts-profile {
  height: 520px;
  min-height: 520px;
  overflow: hidden;
  border-color: rgba(126, 146, 174, 0.18);
  background:
    linear-gradient(rgba(126, 146, 174, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 146, 174, 0.03) 1px, transparent 1px),
    rgba(3, 7, 11, 0.34);
  background-size: 44px 44px, 44px 44px, auto;
}

@media (max-width: 760px) {
  #simple-gex-chart.is-echarts-profile {
    height: 470px;
    min-height: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #simple-gex-chart.is-echarts-profile * {
    animation: none !important;
    transition: none !important;
  }
}

/* Levexes candle indicator ---------------------------------------------- */

.dm-candle-indicator-toggle {
  gap: 5px;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

.dm-candle-indicator-toggle::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 rgba(245, 200, 92, 0);
  content: "";
}

.dm-candle-indicator-toggle:hover,
.dm-candle-indicator-toggle:focus-visible {
  border-color: rgba(245, 200, 92, 0.48);
  color: #fff2bd;
  outline: none;
}

.dm-candle-indicator-toggle.is-active {
  border-color: rgba(245, 200, 92, 0.52);
  color: #fff1b6;
  background: rgba(245, 200, 92, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 182, 0.025);
}

.dm-candle-indicator-toggle.is-active::before {
  background: #f5c85c;
  box-shadow: 0 0 8px rgba(245, 200, 92, 0.72);
}

.dm-candle-indicator-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.dm-candle-levexes-overlay,
.dm-candle-levexes-label-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}

.dm-candle-levexes-overlay {
  z-index: 4;
}

.dm-candle-levexes-label-overlay {
  z-index: 5;
}

.dm-candle-levexes-zone {
  --levexes-zone-rgb: 245, 200, 92;
  --levexes-zone-strength: 0.5;
  --levexes-zone-opacity: 0.63;
  --levexes-zone-border-alpha: 0.46;
  --levexes-zone-fill-alpha: 0.11;
  --levexes-zone-core-alpha: 0.24;
  --levexes-zone-glow: 13px;
  position: absolute;
  min-width: 12px;
  min-height: 5px;
  overflow: hidden;
  border: 1px solid rgba(var(--levexes-zone-rgb), var(--levexes-zone-border-alpha));
  border-radius: 3px;
  opacity: var(--levexes-zone-opacity);
  background:
    linear-gradient(
      90deg,
      rgba(var(--levexes-zone-rgb), var(--levexes-zone-fill-alpha)),
      rgba(var(--levexes-zone-rgb), var(--levexes-zone-core-alpha)) 72%,
      rgba(var(--levexes-zone-rgb), 0.035)
    );
  box-shadow:
    inset 0 1px 0 rgba(var(--levexes-zone-rgb), 0.18),
    inset 0 -1px 0 rgba(var(--levexes-zone-rgb), 0.12),
    0 0 var(--levexes-zone-glow) rgba(var(--levexes-zone-rgb), 0.09);
  transform-origin: left center;
  animation: dmLevexesZoneIn 260ms ease-out both;
}

.dm-candle-levexes-zone::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(var(--levexes-zone-rgb), 0.38);
  box-shadow: 0 0 7px rgba(var(--levexes-zone-rgb), 0.2);
  content: "";
  transform: translateY(-50%);
}

.dm-candle-levexes-zone.is-bull {
  --levexes-zone-rgb: 52, 211, 153;
}

.dm-candle-levexes-zone.is-bear {
  --levexes-zone-rgb: 251, 113, 133;
}

.dm-candle-levexes-zone.is-volume {
  --levexes-zone-rgb: 245, 200, 92;
}

.dm-candle-levexes-zone.is-contested {
  border-style: dashed;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(var(--levexes-zone-rgb), 0.12) 0 5px,
      rgba(248, 250, 252, 0.025) 5px 9px
    );
}

.dm-candle-levexes-zone.is-inactive {
  opacity: 0.22;
}

.dm-candle-levexes-label {
  position: absolute;
  display: inline-flex;
  min-height: 19px;
  max-width: 108px;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  color: #b7c3d2;
  background: rgba(3, 7, 12, 0.79);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(9px);
  font-family: var(--dm-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  white-space: nowrap;
}

.dm-candle-levexes-label strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 8px;
  text-overflow: ellipsis;
}

.dm-candle-levexes-label.is-bull {
  border-color: rgba(52, 211, 153, 0.3);
  color: #87e9c4;
}

.dm-candle-levexes-label.is-bear {
  border-color: rgba(251, 113, 133, 0.3);
  color: #f8a5b5;
}

.dm-candle-levexes-label.is-volume {
  border-color: rgba(245, 200, 92, 0.32);
  color: #f5d88f;
}

.dm-candle-levexes-legend {
  position: absolute;
  top: 42px;
  left: 10px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  border: 1px solid rgba(245, 200, 92, 0.18);
  border-radius: 6px;
  color: #8896a8;
  background: rgba(3, 7, 12, 0.7);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  font-family: var(--dm-mono);
  font-size: 7px;
  font-weight: 800;
  white-space: nowrap;
}

.dm-candle-levexes-legend strong {
  color: #f6e8b9;
  font-size: 8px;
  letter-spacing: 0.055em;
}

.dm-candle-levexes-legend span::before {
  display: inline-block;
  width: 10px;
  height: 3px;
  margin-right: 3px;
  border-radius: 999px;
  vertical-align: 1px;
  content: "";
}

.dm-candle-levexes-legend .is-bull {
  color: #8be7c4;
}

.dm-candle-levexes-legend .is-bull::before {
  background: #34d399;
}

.dm-candle-levexes-legend .is-bear {
  color: #f5a3b3;
}

.dm-candle-levexes-legend .is-bear::before {
  background: #fb7185;
}

.dm-candle-levexes-legend .is-volume {
  color: #f5d88f;
}

.dm-candle-levexes-legend .is-volume::before {
  background: #f5c85c;
}

.dm-candle-levexes-legend small {
  color: #738197;
  font-size: 7px;
}

.dm-candle-levexes-legend.is-empty {
  border-color: rgba(245, 200, 92, 0.3);
}

.dm-candle-levexes-legend.is-empty span {
  display: none;
}

.dm-candle-levexes-legend.is-empty small {
  color: #e2bd68;
}

@keyframes dmLevexesZoneIn {
  from {
    opacity: 0;
    transform: scaleX(0.94);
  }
}

@media (max-width: 980px) {
  .dm-candle-levexes-legend small {
    display: none;
  }
}

@media (max-width: 560px) {
  .dm-candle-levexes-legend {
    top: 36px;
    left: 6px;
    gap: 5px;
  }

  .dm-candle-levexes-legend span {
    display: none;
  }

  .dm-candle-levexes-label {
    max-width: 94px;
  }
}

@media (max-width: 480px) {
  .dm-candle-session-chip.dm-candle-indicator-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-candle-indicator-toggle,
  .dm-candle-levexes-zone {
    animation: none !important;
    transition: none !important;
  }
}
