.decision-workspace {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr);
  gap: 6px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0 2px;
}

.decision-workspace > .sr-only {
  position: absolute !important;
}

.app-shell {
  display: flex !important;
  flex-direction: column !important;
  height: calc(100svh - 10px) !important;
  max-height: calc(100svh - 10px) !important;
  padding-top: max(8px, env(safe-area-inset-top)) !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 9%, rgba(154, 98, 255, .24), transparent 30%),
    radial-gradient(circle at 5% 70%, rgba(22, 198, 160, .08), transparent 30%),
    #05070a !important;
}

.app-shell .mobile-screens,
.mobile-screens {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.app-shell .screen.is-active,
.screen.is-active {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.app-shell .bottom-nav,
.bottom-nav {
  display: none !important;
  min-height: 62px !important;
  padding-top: 6px !important;
  padding-bottom: max(5px, env(safe-area-inset-bottom)) !important;
}

.app-shell .bottom-nav .nav-item,
.bottom-nav .nav-item {
  min-height: 50px;
}

.app-shell .app-topbar.topbar,
.app-topbar {
  display: flex !important;
  flex-direction: row !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 13px !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  margin-bottom: 8px !important;
  border: 1px solid rgba(8, 167, 181, .13);
  border-radius: 24px 24px 18px 18px;
  background:
    radial-gradient(circle at 23% 10%, rgba(8, 167, 181, .16), transparent 34%),
    linear-gradient(180deg, rgba(8, 12, 19, .98), rgba(3, 8, 14, .94));
  box-shadow: 0 18px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 14px 18px;
  overflow: hidden;
}

.app-shell .app-topbar .brand-refresh-button,
.brand-refresh-button {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  flex: 0 0 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f7f8f8;
}

.app-shell .app-topbar .brand-refresh-button svg,
.brand-refresh-button svg {
  display: block;
  width: 23px !important;
  height: 23px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell .app-topbar .brand-lockup,
.app-topbar .brand-lockup {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  place-items: center start;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  text-align: left;
  text-decoration: none;
}

body.tv-ui-consistency .app-shell .app-topbar .brand-lockup,
body.tv-logo-chart-polish .app-shell .app-topbar .brand-lockup,
body.tv-ui-consistency .app-topbar .brand-lockup,
body.tv-logo-chart-polish .app-topbar .brand-lockup {
  grid-column: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: auto !important;
  min-height: 0 !important;
}

body.tv-ui-consistency .app-shell .app-topbar .brand-lockup > span,
body.tv-logo-chart-polish .app-shell .app-topbar .brand-lockup > span,
body.tv-ui-consistency .app-topbar .brand-lockup > span,
body.tv-logo-chart-polish .app-topbar .brand-lockup > span {
  grid-column: 1 !important;
  display: grid !important;
  justify-items: start !important;
  text-align: left !important;
}

.app-shell .app-topbar .brand-lockup strong,
.app-topbar .brand-lockup strong {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #f7f8f8;
  font-size: clamp(28px, 7.2vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

body.tv-ui-consistency .app-shell .app-topbar .brand-lockup strong,
body.tv-logo-chart-polish .app-shell .app-topbar .brand-lockup strong,
body.tv-ui-consistency .app-topbar .brand-lockup strong,
body.tv-logo-chart-polish .app-topbar .brand-lockup strong {
  display: inline-flex !important;
  font-size: clamp(28px, 7.2vw, 34px) !important;
  letter-spacing: 0 !important;
}

.app-shell .app-topbar .brand-lockup strong .brand-title-main,
.app-topbar .brand-lockup strong .brand-title-main {
  color: #f7f8f8;
}

.app-shell .app-topbar .brand-lockup strong span,
.app-topbar .brand-lockup strong span {
  color: #08a7b5;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #08a7b5;
  box-shadow: 0 0 0 3px rgba(8, 167, 181, .14), 0 0 16px rgba(8, 167, 181, .68);
}

.app-shell .app-topbar .brand-lockup small:not(#connectionStatus),
.app-topbar .brand-lockup small:not(#connectionStatus) {
  position: static;
  width: auto;
  height: auto;
  margin-top: 7px;
  overflow: visible;
  clip: auto;
  color: rgba(232, 237, 245, .86);
  font-size: clamp(14px, 3.9vw, 18px);
  font-weight: 600;
  line-height: 1.12;
  white-space: nowrap;
}

.app-shell .app-topbar #connectionStatus,
.app-topbar #connectionStatus {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.tv-ui-consistency .app-shell .app-topbar .brand-lockup #connectionStatus,
body.tv-logo-chart-polish .app-shell .app-topbar .brand-lockup #connectionStatus,
body.tv-ui-consistency .app-topbar .brand-lockup #connectionStatus,
body.tv-logo-chart-polish .app-topbar .brand-lockup #connectionStatus {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.app-shell .app-topbar .topbar-alert-button,
.topbar-alert-button {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  flex: 0 0 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f7f8f8;
  overflow: hidden;
}

.app-shell .app-topbar .topbar-alert-button img,
.topbar-alert-button img {
  display: block;
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(8, 167, 181, .38));
}

.app-shell .app-topbar .topbar-alert-button svg,
.topbar-alert-button svg {
  display: block;
  width: 23px !important;
  height: 23px !important;
  min-width: 23px !important;
  min-height: 23px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-session-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.decision-session-strip > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 24, 35, .74), rgba(7, 10, 15, .54));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.decision-session-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, .08);
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip span,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip span,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip span,
.decision-session-strip span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip strong,
.decision-session-strip strong {
  color: var(--text);
  overflow: hidden;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip small,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip em,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #localDate,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #sessionWindow,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.decision-quick-snapshot-ui #localDate,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.decision-quick-snapshot-ui #sessionWindow,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip small,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip em,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #localDate,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #sessionWindow,
.decision-session-strip small,
.decision-session-strip em {
  color: var(--muted);
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-workspace__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(17, 23, 33, .8), rgba(7, 10, 15, .62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.workspace-select {
  position: relative;
  display: inline-flex;
  min-width: 0;
  width: min(160px, 100%);
  z-index: 5;
  overflow: visible;
}

.native-instrument-select {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.instrument-picker-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7f8f8;
  font-weight: 950;
  cursor: pointer;
}

.instrument-picker-button strong {
  font-size: 31px;
  letter-spacing: 0;
}

.instrument-picker-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: rgba(202, 171, 255, .92);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.workspace-select.is-open .instrument-picker-button svg {
  transform: rotate(180deg);
}

.decision-workspace__bar {
  position: relative;
  z-index: 70;
  overflow: visible !important;
}

.workspace-select.is-open {
  z-index: 160;
}

.instrument-picker-menu {
  position: absolute;
  left: -6px;
  top: calc(100% + 8px);
  z-index: 220;
  display: none;
  min-width: 188px;
  padding: 7px;
  border: 1px solid rgba(167, 117, 255, .28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(25, 20, 42, .98), rgba(6, 9, 14, .98));
  box-shadow: 0 22px 44px rgba(0, 0, 0, .44), 0 0 30px rgba(128, 70, 255, .24);
  backdrop-filter: blur(18px);
}

.workspace-select.is-open .instrument-picker-menu {
  display: grid;
  gap: 5px;
}

.instrument-picker-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #f7f8f8;
  text-align: left;
  cursor: pointer;
}

.instrument-picker-option strong {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.instrument-picker-option span {
  color: rgba(216, 222, 231, .72);
  font-size: 11px;
  font-weight: 800;
}

.instrument-picker-option:hover,
.instrument-picker-option.is-active {
  background: rgba(132, 77, 255, .24);
}

.instrument-picker-option.is-active strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: #08a7b5;
  box-shadow: 0 0 14px rgba(8, 167, 181, .55);
}

#workspaceCurrentPrice {
  color: #08a7b5;
  font-size: 33px;
  line-height: 1;
  font-weight: 950;
  text-align: right;
  white-space: nowrap;
}

.workspace-timeframes {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  align-self: stretch;
  padding-bottom: 0;
  min-width: 0;
}

.workspace-timeframes .timeframe-chip {
  min-height: 34px;
  min-width: 0;
  padding: 0 1px;
  border-radius: 12px;
  background: rgba(14, 20, 27, .75);
  font-size: 12.5px;
  font-weight: 900;
}

.decision-context-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(17, 23, 33, .78), rgba(7, 10, 15, .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.decision-context-summary span {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 72px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-context-summary strong {
  color: var(--text);
  overflow: hidden;
  font-size: 16px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-context-summary span:last-child {
  border-right: 0;
}

.decision-context-summary small {
  color: #e7ebf2;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  text-overflow: ellipsis;
}

.decision-context-summary [data-tone="price"] strong {
  color: var(--green);
}

.decision-context-summary [data-tone="level"] strong {
  color: var(--amber);
}

.decision-context-summary [data-tone="reason"] strong {
  color: var(--green);
  font-size: 14px;
  white-space: normal;
}

#decisionWorkspaceChart.decision-workspace__chart.chart-stage {
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
  overflow: hidden;
}

.decision-workspace__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.position-readout {
  min-height: 27px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.position-readout span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: rgba(13, 18, 23, .55);
  padding: 3px 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.position-readout strong {
  color: var(--text);
  overflow: hidden;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0;
}

.position-tool-toggle,
.chart-expand-button,
.manual-level-place-button,
.chart-toolbar-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(12, 18, 25, .72);
  color: #08a7b5;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.position-tool-toggle {
  justify-content: flex-start;
  gap: 9px;
  padding: 0 16px;
  font-size: 12px;
}

.position-tool-toggle svg,
.chart-expand-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.position-tool-toggle[aria-pressed="true"] {
  color: #f7f8f8;
  background: linear-gradient(135deg, rgba(154, 98, 255, .58), rgba(50, 25, 96, .8));
}

.manual-level-place-button {
  color: #08a7b5;
  font-size: 13px;
}

.manual-level-place-button[aria-pressed="true"] {
  color: #effdff;
  background: linear-gradient(135deg, rgba(8, 167, 181, .96), rgba(139, 107, 214, .88));
}

.chart-toolbar-grip {
  color: rgba(224, 230, 239, .56);
  cursor: grab;
  font-size: 12px;
  letter-spacing: -2px;
}

.chart-toolbar-grip:active {
  cursor: grabbing;
}

body.tv-chart-expanded .app-topbar,
body.tv-chart-expanded .decision-session-strip,
body.tv-chart-expanded .decision-workspace__bar,
body.tv-chart-expanded .decision-context-summary,
body.tv-chart-expanded .decision-workspace__tools,
body.tv-chart-expanded .workspace-timeframes {
  display: none !important;
}

body.tv-chart-expanded .decision-workspace {
  grid-template-rows: auto minmax(0, 1fr);
}

body.tv-chart-expanded .chart-action-row {
  grid-template-columns: minmax(0, 1fr) 54px;
}

.tv-manual-level-label,
.tv-chart-current-price,
.tv-position-label {
  position: absolute;
  right: 3px !important;
  left: auto !important;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 20px;
  border: 1px solid rgba(8, 167, 181, .72);
  border-radius: 4px;
  background: rgba(9, 12, 16, .95);
  color: #08a7b5;
  font: 950 9px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: grab;
  touch-action: none;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-manual-level-label.is-dragging,
.tv-manual-level-grab.is-dragging,
.tv-position-label.is-dragging {
  cursor: grabbing;
  box-shadow: 0 0 0 2px rgba(8, 167, 181, .7), 0 8px 20px rgba(0, 0, 0, .3);
}

.tv-manual-level-label {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
  font-size: 8.5px;
}

.tv-manual-level-label.is-support {
  border-color: rgba(8, 167, 181, .78);
  color: #7beaf2;
}

.tv-manual-level-label.is-resistance {
  border-color: rgba(139, 107, 214, .78);
  color: #c9b7ff;
}

.tv-chart-current-price {
  display: none !important;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 22px;
  min-height: 22px;
  padding: 0 4px;
  border-color: rgba(8, 167, 181, .7);
  color: #effdff;
  background: #08a7b5;
  font-size: 9px;
  line-height: 1;
  text-overflow: clip;
}

.tv-chart-current-price__value {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1;
}

.tv-chart-axis-countdown {
  position: absolute;
  top: 8px;
  right: 3px;
  z-index: 13;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 22px;
  border: 1px solid rgba(139, 107, 214, .72);
  border-radius: 4px;
  background: rgba(9, 12, 16, .94);
  color: #c9b7ff;
  font: 950 9px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}

.tv-position-overlay {
  position: absolute;
  inset: 0 82px 0 0;
  z-index: 6;
  pointer-events: none;
}

.tv-position-zone,
.tv-position-line {
  position: absolute;
  left: 0;
  right: 0;
}

.tv-position-zone {
  opacity: .18;
}

.tv-position-zone.is-profit {
  background: #08a7b5;
}

.tv-position-zone.is-risk {
  background: #8b6bd6;
}

.tv-position-line {
  border-top: 1px solid rgba(255, 255, 255, .8);
}

.tv-position-line.is-entry {
  border-color: #eef2f7;
}

.tv-position-line.is-stop {
  border-color: #8b6bd6;
}

.tv-position-line.is-tp {
  border-color: #08a7b5;
}

.tv-position-label {
  right: 69px !important;
  z-index: 14;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px;
  min-height: 18px;
  padding: 0 1px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1;
  text-overflow: clip;
  border-color: rgba(255, 255, 255, .45);
  color: #eef2f7;
}

.tv-position-label.is-stop {
  border-color: rgba(255, 86, 86, .7);
  color: #ff7777;
}

.tv-position-label.is-tp {
  border-color: rgba(24, 201, 155, .7);
  color: #53e5be;
}

@media (max-width: 380px) {
  .decision-workspace {
    gap: 4px;
  }

  .decision-workspace__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .decision-context-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr);
  }

  #decisionWorkspaceChart.decision-workspace__chart.chart-stage {
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
  }

  .position-readout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 520px) {
  .decision-workspace__tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .position-readout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Premium mobile trading workspace */
.app-shell {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif !important;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 4%, rgba(151, 75, 255, .22), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(22, 198, 160, .08), transparent 34%),
    linear-gradient(180deg, #05060a 0%, #080d12 52%, #05070a 100%) !important;
}

.decision-workspace {
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 0 10px 10px !important;
}

.app-shell .app-topbar.topbar,
.app-topbar {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  margin: 0 10px 11px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 0 24px 24px !important;
  background:
    radial-gradient(circle at 50% 115%, rgba(144, 66, 255, .72), transparent 53%),
    linear-gradient(135deg, rgba(18, 14, 44, .96), rgba(53, 22, 102, .88) 54%, rgba(12, 13, 30, .95)) !important;
  box-shadow: 0 18px 38px rgba(111, 44, 255, .28), 0 1px 0 rgba(255, 255, 255, .08) inset !important;
}

.app-shell .app-topbar .topbar-alert-button,
.topbar-alert-button,
.app-shell .app-topbar .brand-refresh-button,
.brand-refresh-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(255, 255, 255, .1) !important;
  border-radius: 15px !important;
  background: rgba(6, 7, 16, .44) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.app-shell .app-topbar .brand-lockup strong,
.app-topbar .brand-lockup strong {
  font-size: 25px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.connection-dot {
  width: 8px !important;
  height: 8px !important;
}

.decision-session-strip {
  gap: 8px !important;
}

.decision-session-strip > div,
.decision-workspace__bar,
.decision-context-summary,
.position-readout span,
.decision-chart-shell {
  border: 1px solid rgba(255, 255, 255, .055) !important;
  background:
    linear-gradient(180deg, rgba(20, 25, 39, .72), rgba(8, 12, 18, .56)) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.decision-session-strip > div {
  min-height: 70px !important;
  padding: 11px 14px !important;
  border-radius: 17px !important;
}

.decision-session-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, .055) !important;
}

.decision-session-strip span,
.decision-context-summary span,
.position-readout span {
  letter-spacing: .08em !important;
}

.decision-session-strip strong {
  font-size: 23px !important;
}

.decision-session-strip small,
.decision-session-strip em {
  font-size: 12px !important;
}

.decision-workspace__bar {
  min-height: 74px !important;
  padding: 11px 16px !important;
  border-radius: 18px !important;
}

.instrument-picker-button {
  height: 48px !important;
  min-height: 48px !important;
  letter-spacing: 0 !important;
}

.instrument-picker-button strong {
  font-size: 31px !important;
}

#workspaceCurrentPrice {
  color: #08a7b5 !important;
  font-size: clamp(32px, 8.4vw, 42px) !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 24px rgba(8, 167, 181, .22);
  transition: color .18s ease, text-shadow .18s ease, transform .18s ease;
}

#workspaceCurrentPrice.is-no-data {
  font-size: clamp(15px, 4.4vw, 20px) !important;
  color: rgba(216, 229, 234, .78) !important;
  text-shadow: none;
}

#workspaceCurrentPrice.is-price-up {
  animation: tvPriceUp .45s ease;
}

#workspaceCurrentPrice.is-price-down {
  animation: tvPriceDown .45s ease;
}

@keyframes tvPriceUp {
  0% { transform: translateY(0); text-shadow: 0 0 0 rgba(8, 167, 181, 0); }
  38% { transform: translateY(-1px); text-shadow: 0 0 26px rgba(8, 167, 181, .72); }
  100% { transform: translateY(0); text-shadow: 0 0 24px rgba(8, 167, 181, .22); }
}

@keyframes tvPriceDown {
  0% { transform: translateY(0); color: #08a7b5; }
  38% { transform: translateY(1px); color: #8b6bd6; text-shadow: 0 0 24px rgba(139, 107, 214, .6); }
  100% { transform: translateY(0); color: #08a7b5; }
}

.decision-context-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) !important;
  border-radius: 18px !important;
}

.decision-context-summary span {
  min-height: 92px !important;
  gap: 0 !important;
  padding: 13px 14px !important;
  border-right-color: rgba(255, 255, 255, .055) !important;
}

.decision-context-summary strong {
  font-size: 19px !important;
  letter-spacing: 0 !important;
}

.decision-context-summary small {
  display: -webkit-box;
  min-height: 28px;
  overflow: hidden;
  color: rgba(238, 242, 247, .92) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.decision-context-summary [data-tone="reason"] strong {
  color: #08a7b5 !important;
  font-size: 16px !important;
  line-height: 1.12 !important;
}

.decision-workspace__tools {
  min-height: 82px !important;
}

.position-readout {
  min-height: 82px !important;
  gap: 0 !important;
  overflow: hidden;
  border-radius: 18px !important;
}

.position-readout span {
  min-height: 82px !important;
  gap: 5px !important;
  padding: 12px 13px !important;
  border-width: 0 1px 0 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.position-readout span:first-child {
  border-radius: 18px 0 0 18px !important;
}

.position-readout span:last-child {
  border-right: 0 !important;
  border-radius: 0 18px 18px 0 !important;
}

.position-readout strong {
  color: #f6f8fb !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.position-readout small {
  overflow: hidden;
  color: rgba(231, 235, 242, .82);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-timeframes {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  min-height: 48px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 2px !important;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.workspace-timeframes::-webkit-scrollbar {
  display: none;
}

.workspace-timeframes .timeframe-chip {
  flex: 0 0 47px !important;
  min-width: 47px !important;
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  border-radius: 15px !important;
  background: rgba(15, 21, 29, .72) !important;
  color: rgba(232, 237, 244, .76) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  scroll-snap-align: start;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

.workspace-timeframes .timeframe-chip.is-active {
  color: #fff !important;
  border-color: rgba(181, 126, 255, .72) !important;
  background: linear-gradient(180deg, rgba(154, 98, 255, .9), rgba(91, 42, 180, .84)) !important;
  box-shadow: 0 0 0 1px rgba(154, 98, 255, .18), 0 12px 28px rgba(154, 98, 255, .32) !important;
}

.decision-chart-shell {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px !important;
}

#decisionWorkspaceChart.decision-workspace__chart.chart-stage {
  border: 0 !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  background: #0b1218;
}

.chart-action-row {
  position: absolute !important;
  top: 9px;
  right: auto;
  left: 10px;
  z-index: 25;
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 17px;
  background: rgba(7, 11, 17, .34);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
  pointer-events: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: width .18s ease, max-width .18s ease, padding .18s ease, gap .18s ease, left .18s ease, background .18s ease, opacity .18s ease;
}

.chart-action-row.is-collapsed {
  left: 6px !important;
  width: 42px !important;
  max-width: 42px !important;
  gap: 0 !important;
  padding: 4px !important;
  border-radius: 15px !important;
}

.chart-action-row.is-collapsed .manual-level-place-button,
.chart-action-row.is-collapsed .position-tool-toggle,
.chart-action-row.is-collapsed .chart-expand-button {
  display: none !important;
}

.position-tool-toggle,
.chart-expand-button,
.manual-level-place-button,
.chart-toolbar-grip {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 13px !important;
  background: rgba(12, 17, 24, .78) !important;
  color: #08a7b5 !important;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.manual-level-place-button {
  color: #08a7b5 !important;
  font-size: 13px !important;
}

.manual-level-place-button[aria-pressed="true"] {
  color: #effdff !important;
  background: linear-gradient(135deg, rgba(8, 167, 181, .96), rgba(139, 107, 214, .9)) !important;
  box-shadow: 0 0 18px rgba(8, 167, 181, .26), inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

.chart-toolbar-grip {
  color: rgba(224, 230, 239, .6) !important;
  cursor: grab;
  font-size: 17px !important;
  letter-spacing: 0 !important;
}

.chart-toolbar-grip.is-dragging {
  cursor: grabbing;
}

.decision-chart-shell.is-placing-manual-level #decisionWorkspaceChart {
  cursor: crosshair;
}

.position-tool-toggle {
  justify-content: center !important;
}

.position-tool-toggle span:not(.sr-only) {
  display: none !important;
}

.position-tool-toggle[aria-pressed="true"] {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(154, 98, 255, .82), rgba(71, 37, 135, .82)) !important;
}

.position-tool-toggle svg,
.chart-expand-button svg {
  width: 22px !important;
  height: 22px !important;
}

body.tv-chart-expanded .decision-session-strip,
body.tv-chart-expanded .decision-workspace__bar,
body.tv-chart-expanded .decision-context-summary,
body.tv-chart-expanded .decision-workspace__tools {
  display: none !important;
}

body.tv-chart-expanded .app-topbar {
  display: flex !important;
}

body.tv-chart-expanded .workspace-timeframes {
  display: flex !important;
}

body.tv-chart-expanded .decision-workspace {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.tv-manual-level-line,
.tv-position-line,
.tv-position-zone,
.tv-manual-level-label,
.tv-chart-current-price,
.tv-position-label {
  transition: top .12s ease, height .12s ease, opacity .16s ease;
}

.tv-manual-level-label {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
}

.tv-position-label {
  right: 69px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 1px !important;
}

.tv-position-metrics {
  position: absolute;
  left: 10px;
  right: 100px;
  bottom: 44px;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 7px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(6, 10, 15, .78);
  color: #edf3fb;
  font: 900 9px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.tv-position-metrics span {
  display: grid;
  min-width: 0;
  gap: 2px;
  white-space: nowrap;
}

.tv-position-metrics small {
  color: #9ca8b7;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .08em;
}

.tv-position-metrics strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #f4f8ff;
  font-size: 9.5px;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.tv-position-metrics em {
  color: #cbd3df;
  font-size: 7.5px;
  font-style: normal;
  line-height: 1;
}

body.tv-chart-expanded .tv-position-metrics {
  bottom: 48px;
}

.tv-position-metrics [data-kind="tp"] strong {
  color: #43ef7c;
}

.tv-position-metrics [data-kind="sl"] strong {
  color: #ff6469;
}

.tv-position-metrics [data-kind="rr"] strong {
  color: #a96fff;
}

@media (max-width: 380px) {
  .decision-workspace {
    gap: 8px !important;
    padding-inline: 8px !important;
  }

  .decision-session-strip > div {
    min-height: 66px !important;
    padding: 9px 11px !important;
  }

  .decision-workspace__bar {
    min-height: 66px !important;
  }

  .decision-context-summary span,
  .position-readout span {
    padding-inline: 10px !important;
  }

  .decision-context-summary strong {
    font-size: 16px !important;
  }

  .position-readout strong {
    font-size: 13px !important;
  }
}

/* Keep the chart dominant inside the desktop phone-case preview. */
body .app-shell {
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

body.tv-mobile-only .app-shell,
body.tv-decision-shared-chart .app-shell,
body.decision-quick-snapshot-ui .app-shell {
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell {
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

.decision-workspace {
  gap: 6px !important;
}

.app-shell .app-topbar.topbar,
.app-topbar {
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  margin-bottom: 8px !important;
}

.app-shell .app-topbar .topbar-alert-button,
.topbar-alert-button {
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
}

.app-shell .app-topbar .brand-refresh-button,
.brand-refresh-button {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
}

.app-shell .app-topbar .brand-lockup strong,
.app-topbar .brand-lockup strong {
  font-size: clamp(28px, 7.2vw, 34px) !important;
}

.decision-session-strip > div {
  height: 56px !important;
  min-height: 56px !important;
  gap: 2px !important;
  padding: 7px 11px !important;
}

.decision-session-strip strong {
  font-size: 18px !important;
}

.decision-session-strip small,
.decision-session-strip em {
  font-size: 10px !important;
}

.decision-workspace__bar {
  min-height: 54px !important;
  height: 54px !important;
  padding: 7px 13px !important;
}

.instrument-picker-button {
  height: 40px !important;
  min-height: 40px !important;
}

.instrument-picker-button strong {
  font-size: 25px !important;
}

#workspaceCurrentPrice {
  font-size: clamp(28px, 7.2vw, 36px) !important;
}

.decision-context-summary span {
  min-height: 66px !important;
  height: 66px !important;
  gap: 4px !important;
  padding: 8px 11px !important;
}

.decision-context-summary strong {
  font-size: 15px !important;
}

.decision-context-summary [data-tone="reason"] strong {
  font-size: 13px !important;
}

.decision-context-summary small {
  min-height: 20px;
  font-size: 9.5px !important;
}

.decision-workspace__tools,
.position-readout,
.position-readout span {
  min-height: 52px !important;
  height: 52px !important;
}

.position-readout span {
  gap: 2px !important;
  padding: 6px 9px !important;
}

.position-readout strong {
  font-size: 12px !important;
}

.position-readout small {
  font-size: 8.5px !important;
}

.workspace-timeframes {
  min-height: 44px !important;
  height: 44px !important;
}

.workspace-timeframes .timeframe-chip {
  flex-basis: 44px !important;
  min-width: 44px !important;
  min-height: 40px !important;
  font-size: 14px !important;
}

.decision-chart-shell {
  min-height: 220px;
}

/* Final compact polish for the laptop phone-case viewport. */
.app-shell .app-topbar.topbar,
.app-topbar {
  padding-inline: 10px !important;
}

.app-shell .app-topbar .brand-lockup,
.app-topbar .brand-lockup {
  min-width: 0 !important;
  padding-inline: 0 !important;
}

.app-shell .app-topbar .brand-lockup strong,
.app-topbar .brand-lockup strong {
  flex-wrap: nowrap !important;
  gap: 0 !important;
  font-size: clamp(28px, 7.2vw, 34px) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.app-shell .app-topbar .brand-lockup strong span,
.app-topbar .brand-lockup strong span {
  display: inline !important;
}

.app-shell .app-topbar .connection-dot,
.connection-dot {
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .topbar-alert-button,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-refresh-button {
  box-sizing: border-box !important;
  padding: 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .topbar-alert-button {
  width: 60px !important;
  max-width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  max-height: 60px !important;
  min-height: 60px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-refresh-button {
  width: 46px !important;
  max-width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  max-height: 46px !important;
  min-height: 46px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-lockup strong {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  font-size: clamp(28px, 7.2vw, 34px) !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.brand-refresh-button.is-refreshing svg,
.brand-refresh-button[aria-busy="true"] svg {
  animation: tvRefreshSpin .85s linear infinite;
}

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

.decision-session-strip > div {
  grid-template-rows: 12px 24px 14px !important;
  align-content: center !important;
  height: 78px !important;
  min-height: 78px !important;
  gap: 5px !important;
  padding: 12px 14px !important;
}

.decision-session-strip span {
  font-size: 7.5px !important;
  line-height: 1.08 !important;
  white-space: normal !important;
}

.decision-session-strip strong {
  align-self: center !important;
  font-size: 18px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.decision-session-strip small,
.decision-session-strip em {
  align-self: center !important;
  font-size: 9.5px !important;
  line-height: 1.16 !important;
  white-space: nowrap !important;
}

.decision-workspace__tools:has(.position-readout:empty),
.position-readout:empty {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* Decision card alignment: keep labels, prices, and tick/details on shared rows. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary {
  grid-template-columns: minmax(0, .98fr) minmax(0, .98fr) minmax(0, 1.18fr) !important;
  align-items: stretch !important;
  min-height: 106px !important;
  height: auto !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary span {
  display: grid !important;
  grid-template-rows: 16px 24px minmax(42px, auto) !important;
  align-content: start !important;
  min-height: 106px !important;
  height: auto !important;
  gap: 7px !important;
  padding: 13px 12px !important;
  overflow: hidden !important;
  line-height: 1.08 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary strong {
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: clamp(14px, 3.8vw, 18px) !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary small {
  display: block !important;
  min-height: 22px !important;
  overflow: hidden !important;
  font-size: clamp(9px, 2.8vw, 11.5px) !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="level"] small {
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="reason"] strong {
  font-size: clamp(12px, 3.3vw, 15px) !important;
  text-overflow: clip !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="reason"] small {
  display: -webkit-box !important;
  min-height: 44px !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  min-height: 116px !important;
  height: auto !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas:
    "entry rr"
    "stop tp" !important;
  grid-auto-rows: minmax(56px, auto) !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout span {
  display: grid !important;
  grid-template-rows: 17px 24px minmax(16px, auto) !important;
  align-content: start !important;
  min-height: 56px !important;
  height: auto !important;
  gap: 5px !important;
  padding: 10px 12px !important;
  overflow: hidden !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  border-width: 0 1px 1px 0 !important;
  border-radius: 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-role="entry"] {
  grid-area: entry !important;
  border-radius: 18px 0 0 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-role="rr"] {
  grid-area: rr !important;
  border-right: 0 !important;
  border-radius: 0 18px 0 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-role="stop"] {
  grid-area: stop !important;
  border-bottom: 0 !important;
  border-radius: 0 0 0 18px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-role="tp"] {
  grid-area: tp !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 0 18px 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout strong {
  align-self: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: clamp(12px, 3.55vw, 16px) !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout small {
  min-height: 16px !important;
  overflow: hidden !important;
  font-size: clamp(8px, 2.6vw, 10.5px) !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Keep compact card prices readable inside the phone frame. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="level"] strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout strong {
  overflow: visible !important;
  font-size: 14px !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout span {
  padding-right: 8px !important;
  padding-left: 8px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-role="rr"] strong {
  font-size: 13px !important;
}

/* Decision summary: support/resistance on top, trade reason full width below. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-areas:
    "support resistance"
    "reason reason" !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary span {
  min-height: 76px !important;
  grid-template-rows: 14px 22px 18px !important;
  gap: 5px !important;
  padding: 10px 14px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="support"] {
  grid-area: support !important;
  border-right: 1px solid rgba(255, 255, 255, .055) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="resistance"] {
  grid-area: resistance !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .055) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="reason"] {
  grid-area: reason !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 13px 20px minmax(15px, auto) !important;
  align-items: start !important;
  min-height: 70px !important;
  gap: 4px !important;
  border-right: 0 !important;
  padding: 10px 14px 12px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="level"] strong {
  font-size: 17px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-tone="level"] small {
  min-height: 18px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="reason"] strong {
  font-size: 15px !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  display: block !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="reason"] small {
  display: block !important;
  min-height: 0 !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Position summary: compact rows, neutral dashes, directional trade colors. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  min-height: 88px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  grid-auto-rows: minmax(42px, auto) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout span {
  grid-template-rows: 12px 18px 13px !important;
  min-height: 42px !important;
  gap: 3px !important;
  padding: 7px 10px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout strong {
  font-size: 13px !important;
  line-height: 1.02 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout small {
  min-height: 12px !important;
  font-size: 8.5px !important;
  line-height: 1.05 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="buy"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="buy"] strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="profit"] strong {
  color: #08a7b5 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="sell"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="sell"] strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="loss"] strong {
  color: #8b6bd6 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout [data-position-tone="rr"] strong {
  color: #a869ff !important;
}

/* Final chart sizing: normal mode gives the chart the majority of the phone;
   expanded mode lets the chart occupy the full available workspace. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace__bar,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .workspace-timeframes {
  flex: 0 0 auto !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-chart-shell {
  flex: 1 0 52svh !important;
  min-height: clamp(340px, 52svh, 620px) !important;
  height: auto !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart #decisionWorkspaceChart.decision-workspace__chart.chart-stage {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .app-topbar,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-session-strip,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace__bar,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-context-summary,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .workspace-timeframes {
  display: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .app-shell,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .mobile-screens,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .screen.is-active,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace {
  height: 100svh !important;
  max-height: 100svh !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace {
  gap: 0 !important;
  padding: 8px !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-chart-shell {
  flex: 1 1 auto !important;
  min-height: 100% !important;
  height: 100% !important;
  border-radius: 24px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  cursor: pointer !important;
  outline: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout:focus-visible {
  box-shadow: 0 0 0 2px rgba(154, 98, 255, .72) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout {
  min-height: 44px !important;
  height: 44px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout {
  grid-template-columns: minmax(0, 1fr) minmax(0, .58fr) !important;
  grid-template-areas: "entry rr" !important;
  grid-auto-rows: 44px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout [data-position-role="stop"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout [data-position-role="tp"] {
  display: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout span {
  grid-template-rows: 12px 18px !important;
  min-height: 44px !important;
  height: 44px !important;
  gap: 3px !important;
  padding: 7px 12px !important;
  border-bottom: 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout [data-position-role="entry"] {
  border-radius: 18px 0 0 18px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout [data-position-role="rr"] {
  border-radius: 0 18px 18px 0 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-position-summary-expanded) .position-readout small {
  display: none !important;
}

/* Expanded chart still needs timeframe switching available. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .workspace-timeframes {
  display: flex !important;
  flex: 0 0 52px !important;
  min-height: 52px !important;
  height: 52px !important;
  margin: 0 0 8px !important;
  padding: 2px 0 8px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .workspace-timeframes .timeframe-chip {
  flex: 0 0 50px !important;
  min-width: 50px !important;
  min-height: 44px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-chart-shell {
  flex: 1 1 calc(100svh - 68px) !important;
  min-height: calc(100svh - 68px) !important;
  height: calc(100svh - 68px) !important;
}

/* Compact decision drawer: default view shows only status + full reason. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary {
  cursor: pointer !important;
  outline: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary:focus-visible {
  box-shadow: 0 0 0 2px rgba(154, 98, 255, .72) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "reason" !important;
  min-height: auto !important;
  height: auto !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="support"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="resistance"] {
  display: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"] {
  align-content: start !important;
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  gap: 4px !important;
  padding: 11px 16px 3px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"]::before {
  display: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"] strong {
  grid-row: 1 !important;
  font-size: 17px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"] small {
  grid-row: 2 !important;
  display: block !important;
  min-height: 0 !important;
  overflow: visible !important;
  font-size: 11.5px !important;
  line-height: 1.22 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="reason"] small {
  overflow: visible !important;
  white-space: normal !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-workspace__tools {
  display: none !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* Expanded mode must keep the bottom time axis inside the phone frame. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .app-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100svh !important;
  max-height: 100svh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .mobile-screens,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .screen.is-active {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  gap: 8px !important;
  padding: 0 8px max(10px, env(safe-area-inset-bottom)) !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-chart-shell {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-card-chart-stage,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded #decisionWorkspaceChart,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded #decisionWorkspaceChart .tv-shared-chart-host {
  height: 100% !important;
  min-height: 0 !important;
}

/* Normal mode also has to keep the chart time axis visible inside the phone. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .app-shell {
  display: flex !important;
  flex-direction: column !important;
  height: 100svh !important;
  max-height: 100svh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .mobile-screens,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .screen.is-active {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .decision-workspace {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .decision-chart-shell {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 260px !important;
  max-height: none !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) #decisionWorkspaceChart.decision-workspace__chart.chart-stage {
  height: 100% !important;
  min-height: 0 !important;
}

/* Sprint 1 V2: market-structure workspace only. No automatic trade plan cards. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace__tools,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .position-readout {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-areas:
    "support resistance"
    "reason reason" !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="support"] {
  display: grid !important;
  grid-area: support !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="resistance"] {
  display: grid !important;
  grid-area: resistance !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="reason"] {
  display: grid !important;
  grid-area: reason !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary span {
  grid-template-rows: 12px 20px 16px !important;
  min-height: 48px !important;
  gap: 4px !important;
  padding: 8px 12px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary strong {
  font-size: clamp(14px, 3.7vw, 18px) !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary small {
  display: block !important;
  min-height: 0 !important;
  font-size: clamp(8.5px, 2.55vw, 10.5px) !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-tone="reason"] strong {
  color: #56f27a !important;
  text-transform: uppercase !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="reason"] {
  align-content: start !important;
  grid-template-rows: auto auto !important;
  min-height: 0 !important;
  gap: 5px !important;
  padding: 10px 14px 3px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary [data-summary-role="reason"] small {
  overflow: visible !important;
  text-overflow: clip !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "reason" !important;
  min-height: auto !important;
  height: auto !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="support"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="resistance"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="room"],
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary [data-summary-role="structure"] {
  display: none !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-chart-shell,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .decision-chart-shell {
  flex: 1 1 0 !important;
  min-height: clamp(360px, 58svh, 720px) !important;
}

/* Keep the chart's bottom time scale inside the visible phone viewport. */
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-workspace {
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-chart-shell {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-bottom: 30px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart #decisionWorkspaceChart.decision-workspace__chart.chart-stage,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart #decisionWorkspaceChart .tv-shared-chart-host {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-chart-expanded) .decision-chart-shell {
  min-height: clamp(330px, 50svh, 590px) !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded {
  overflow: hidden !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-workspace {
  height: 100svh !important;
  max-height: 100svh !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .workspace-timeframes {
  flex: 0 0 52px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-chart-expanded .decision-chart-shell {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-bottom: 34px !important;
}

/* Final masthead lock: keep the Abundant Freedom header visible after all mobile overrides. */
.app-shell .app-topbar.topbar,
.app-topbar,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) 28px !important;
  align-items: center !important;
  column-gap: 12px !important;
  box-sizing: border-box !important;
  width: calc(100% - 20px) !important;
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  margin: 8px 10px 10px !important;
  padding: 18px 14px 14px !important;
  border: 1px solid rgba(8, 167, 181, .13) !important;
  border-radius: 24px 24px 18px 18px !important;
  background:
    radial-gradient(circle at 22% 8%, rgba(8, 167, 181, .16), transparent 34%),
    linear-gradient(180deg, rgba(8, 12, 19, .98), rgba(3, 8, 14, .94)) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

.app-shell .app-topbar .topbar-af-logo,
.topbar-af-logo,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .topbar-af-logo {
  position: static !important;
  justify-self: start !important;
  align-self: center !important;
  z-index: 3 !important;
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  pointer-events: none !important;
  transform: none !important;
}

.app-shell .app-topbar .masthead-settings-button,
.masthead-settings-button,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .masthead-settings-button {
  position: relative !important;
  justify-self: end !important;
  align-self: center !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #dfe8ef !important;
  cursor: pointer !important;
  transform: none !important;
}

.masthead-settings-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.masthead-settings-button__dot {
  position: absolute;
  right: 9px;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #64f7df;
  box-shadow: 0 0 10px rgba(100, 247, 223, .72);
  opacity: 0;
}

body.tv-settings-alert-dot .masthead-settings-button__dot {
  opacity: 1;
}

.app-shell .app-topbar .brand-lockup,
.app-topbar .brand-lockup {
  min-width: 0 !important;
  max-width: 100% !important;
  position: static !important;
  justify-self: center !important;
  align-self: center !important;
  z-index: 2 !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: center !important;
  transform: none !important;
}

.app-shell .app-topbar .brand-lockup > span,
.app-topbar .brand-lockup > span,
body.tv-ui-consistency .app-shell .app-topbar .brand-lockup > span,
body.tv-logo-chart-polish .app-shell .app-topbar .brand-lockup > span,
body.tv-ui-consistency .app-topbar .brand-lockup > span,
body.tv-logo-chart-polish .app-topbar .brand-lockup > span {
  display: grid !important;
  justify-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
}

.app-shell .app-topbar .brand-lockup strong,
.app-topbar .brand-lockup strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-lockup strong {
  display: inline-flex !important;
  gap: 6px !important;
  max-width: 100% !important;
  overflow: hidden !important;
  color: #f7f8f8 !important;
  font-size: clamp(20px, 5vw, 25px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

.app-shell .app-topbar .brand-lockup strong span,
.app-topbar .brand-lockup strong span {
  min-width: 0 !important;
}

.app-shell .app-topbar .brand-lockup strong .brand-title-main,
.app-topbar .brand-lockup strong .brand-title-main {
  color: #f7f8f8 !important;
}

.app-shell .app-topbar .brand-lockup strong span:not(.brand-title-main),
.app-topbar .brand-lockup strong span:not(.brand-title-main) {
  color: #08a7b5 !important;
}

.app-shell .app-topbar .brand-tagline,
.app-topbar .brand-tagline {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin-top: 7px !important;
  overflow: hidden !important;
  clip: auto !important;
  color: rgba(232, 237, 245, .86) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}

.tv-settings-modal {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: grid;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  padding: 22px 20px;
  overflow: hidden;
}

.tv-settings-modal[aria-hidden="true"] {
  display: none;
}

.tv-settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 13, .76);
  backdrop-filter: blur(10px);
}

.tv-settings-modal__panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 44px);
  overflow: auto;
  padding: 18px 18px 22px;
  border: 1px solid rgba(8, 167, 181, .32);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16, 26, 38, .98), rgba(8, 12, 20, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .48), 0 0 38px rgba(8, 167, 181, .13);
  color: #f7f8f8;
}

.tv-settings-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.tv-settings-modal__header span,
.tv-settings-modal__section h2 {
  display: block;
  margin: 0;
  color: rgba(232, 237, 245, .68);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tv-settings-modal__header strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.tv-settings-modal__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #f7f8f8;
  font-size: 18px;
  font-weight: 900;
}

.tv-settings-modal__section {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.tv-settings-modal__section h2 {
  color: #08a7b5;
}

.tv-settings-modal .switch-line,
.tv-settings-modal .setting-row,
.tv-settings-modal .mini-field {
  margin: 0;
}

.tv-settings-modal .mini-field input {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(148, 125, 226, .36);
  border-radius: 14px;
  background: rgba(4, 7, 13, .58);
  color: #f7f8f8;
  font: inherit;
}

.tv-settings-modal .mini-field input:focus {
  outline: 2px solid rgba(8, 167, 181, .55);
  outline-offset: 2px;
}

.tv-settings-modal .quiet-button {
  width: 100%;
  justify-content: center;
  border-color: rgba(8, 167, 181, .46);
  color: #f7f8f8;
}

.tv-settings-modal__save {
  background: linear-gradient(135deg, rgba(8, 167, 181, .88), rgba(148, 125, 226, .82)) !important;
  color: #041018 !important;
  font-weight: 900;
}

#topstepxSettingsStatus[data-tone="success"] {
  color: #64f7df;
}

#topstepxSettingsStatus[data-tone="error"] {
  color: #ff8d9b;
}

/* Readability pass: keep the core trading view legible without glasses. */
.app-shell .app-topbar .brand-lockup,
.app-topbar .brand-lockup,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-lockup {
  width: 100% !important;
}

.app-shell .app-topbar .brand-tagline,
.app-topbar .brand-tagline,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .brand-tagline {
  width: min(100%, 250px) !important;
  margin-top: 7px !important;
  font-size: clamp(11px, 2.9vw, 13px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.decision-session-strip {
  gap: 10px !important;
}

.decision-session-strip > div {
  grid-template-rows: auto auto auto !important;
  min-height: 86px !important;
  height: 86px !important;
  gap: 7px !important;
  padding: 12px 13px !important;
  overflow: hidden !important;
}

.decision-session-strip span {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(9px, 2.35vw, 10.5px) !important;
  line-height: 1.08 !important;
  letter-spacing: .06em !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.decision-session-strip strong {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(21px, 5.35vw, 24px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip small,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-session-strip em,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #localDate,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-ui-consistency #sessionWindow,
.decision-session-strip small,
.decision-session-strip em {
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: clamp(10.5px, 2.7vw, 12px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary {
  min-height: 130px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary {
  min-height: 116px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary span {
  min-height: 118px !important;
  padding: 16px 16px !important;
  gap: 9px !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"] strong,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary strong {
  font-size: 22px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .decision-context-summary small,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart:not(.tv-decision-summary-expanded) .decision-context-summary [data-summary-role="reason"] small,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart.tv-decision-summary-expanded .decision-context-summary small {
  font-size: 14px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
}

.tv-manual-level-label,
.tv-chart-current-price,
.tv-position-label {
  min-height: 30px !important;
  padding: 6px 15px !important;
  min-width: 104px !important;
  font-size: 14px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

.tv-chart-current-price__value {
  font-size: 14px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
}

.app-shell .app-topbar .topbar-alert-button,
.topbar-alert-button,
html body.tv-mobile-only.decision-quick-snapshot-ui.tv-decision-shared-chart .app-shell .app-topbar .topbar-alert-button {
  pointer-events: auto !important;
  cursor: pointer !important;
}
