.alert-notification-enable {
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
  border: 1px solid #4f451b;
  border-radius: 9px;
  background: #121108;
  color: var(--market-gold);
  font-size: 8px;
  font-weight: 850;
}

.alert-notification-enable.is-hidden {
  display: none;
}

.top-action.is-active {
  border-color: #665515;
  background: #17140a;
  color: var(--market-gold);
}

/* Keep the chart watermark visible in the same fixed center position on every layout. */
html body.market-launch-ready #chartWorkspace .chart-watermark {
  display: flex !important;
  visibility: visible !important;
  opacity: .075 !important;
  z-index: 7 !important;
  pointer-events: none !important;
}

/* KLine light mode: keep controls readable without changing layout or chart logic. */
html[data-kline-page-theme="light"] body.market-launch-ready .market-back,
html[data-kline-page-theme="light"] body.market-launch-ready .top-action {
  color: #475467 !important;
  border-color: #cfd7e2 !important;
}

html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .market-selector {
  border-top: 0 !important;
  border-bottom-color: #d7dee8 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .market-selector::before,
html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .market-selector::after {
  display: none !important;
  content: none !important;
}

html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .timeframe-rail button:not(.is-active) {
  color: #526070 !important;
}

html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .workspace-commandbar .command-button:not(.is-active) {
  color: #526070 !important;
}

html[data-kline-page-theme="light"].market-chart-active:not(.chart-native-landscape):not(.mobile-chart-fullscreen-active)
  body.market-launch-ready .workspace-commandbar .command-button:disabled {
  color: #98a2b3 !important;
  opacity: .72 !important;
}

html[data-kline-page-theme="light"] body.market-launch-ready .mobile-chart-action-rail button:not(.is-active) {
  color: #526070 !important;
  opacity: 1 !important;
}

html[data-kline-page-theme="light"] body.market-launch-ready .mobile-chart-action-rail button:disabled {
  color: #98a2b3 !important;
  opacity: .72 !important;
}

html[data-kline-page-theme="light"] body.market-launch-ready .market-bottom-nav button:not(.is-active) {
  color: #526070 !important;
}

html[data-kline-page-theme="light"] body.market-launch-ready .workspace-commandbar,
html[data-kline-page-theme="light"] body.market-launch-ready .mobile-chart-action-rail {
  border-color: #d7dee8 !important;
}

/* Desktop KLine: restore professional proportions without touching mobile. */
@media (min-width: 1024px) {
  body.market-launch-ready .market-shell {
    grid-template-columns: minmax(0,1fr) clamp(310px,21vw,390px) !important;
    grid-template-rows: 62px minmax(0,1fr) !important;
  }

  body.market-launch-ready .market-topbar {
    min-height: 62px !important;
    padding: 8px 14px !important;
    gap: 10px !important;
  }

  body.market-launch-ready .market-back,
  body.market-launch-ready .top-action {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
  }

  body.market-launch-ready .market-brand__mark {
    width: 36px !important;
    height: 36px !important;
  }

  body.market-launch-ready .market-brand strong { font-size: 14px !important; }

  body.market-launch-ready .market-main {
    grid-template-rows: 62px minmax(0,1fr) !important;
    gap: 9px !important;
    padding: 9px 9px 10px 11px !important;
  }

  body.market-launch-ready .market-workspace-header {
    grid-template-columns: minmax(320px,.78fr) minmax(520px,1.22fr) !important;
    min-height: 62px !important;
    border-radius: 10px !important;
  }

  body.market-launch-ready .instrument-strip { padding: 7px 12px !important; }
  body.market-launch-ready .instrument-icon { width: 38px !important; height: 38px !important; border-radius: 9px !important; }
  body.market-launch-ready .instrument-title h1 { font-size: 16px !important; }
  body.market-launch-ready .instrument-title p { font-size: 8px !important; }
  body.market-launch-ready .quote-block strong { font-size: 19px !important; }

  body.market-launch-ready .market-selector { padding: 6px 10px !important; }
  body.market-launch-ready .asset-chip { min-height: 34px !important; padding-inline: 9px !important; font-size: 8px !important; }
  body.market-launch-ready .timeframe-rail button { height: 32px !important; min-width: 34px !important; padding-inline: 8px !important; font-size: 8px !important; }

  body.market-launch-ready .workspace-commandbar {
    flex-basis: 46px !important;
    min-height: 46px !important;
    padding: 6px 10px !important;
  }

  body.market-launch-ready .workspace-commandbar .command-button {
    min-width: 36px !important;
    height: 34px !important;
    padding-inline: 8px !important;
  }

  body.market-launch-ready .chart-workspace { grid-template-columns: 74px minmax(0,1fr) !important; }
  body.market-launch-ready .quick-toolbar { gap: 5px !important; padding: 8px 7px !important; }
  body.market-launch-ready .quick-toolbar button { min-height: 50px !important; border-radius: 10px !important; }
  body.market-launch-ready .quick-toolbar button span:last-child { font-size: 8px !important; }

  body.market-launch-ready .chart-statusbar {
    flex-basis: 40px !important;
    min-height: 40px !important;
    padding: 4px 10px !important;
  }

  body.market-launch-ready .market-shell > .market-hub-view {
    margin: 9px 11px 10px 0 !important;
    border-radius: 10px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-head {
    padding: 11px 11px 9px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-titlebar h1 {
    font-size: 17px !important;
    line-height: 34px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-add {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-search input {
    height: 37px !important;
    min-height: 37px !important;
    font-size: 10px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-tabs button {
    height: 27px !important;
    min-height: 27px !important;
    padding: 0 9px !important;
    font-size: 6.5px !important;
  }

  body.market-launch-ready .market-hub-view .market-hub-section-head {
    min-height: 32px !important;
    padding: 6px 10px !important;
  }

  body.market-launch-ready .market-hub-view .hub-asset-row {
    grid-template-columns: 34px minmax(0,1fr) minmax(92px,auto) 28px !important;
    gap: 8px !important;
    min-height: 58px !important;
    padding: 7px 9px !important;
  }

  body.market-launch-ready .market-hub-view .hub-asset-badge {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 7px !important;
  }

  body.market-launch-ready .market-hub-view .hub-asset-copy strong,
  body.market-launch-ready .market-hub-view .hub-asset-price strong { font-size: 10px !important; }

  body.market-launch-ready .market-hub-view .hub-asset-copy span,
  body.market-launch-ready .market-hub-view .hub-asset-price span {
    margin-top: 4px !important;
    font-size: 7px !important;
  }

  body.market-launch-ready .market-hub-view .hub-asset-fav {
    width: 28px !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 16px !important;
  }

  html body.market-launch-ready #chartWorkspace .chart-watermark {
    opacity: .095 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready #chartWorkspace .chart-watermark strong {
    color: rgba(17,24,39,.62) !important;
    text-shadow: none !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready #chartWorkspace .chart-watermark span {
    color: rgba(154,116,0,.72) !important;
    opacity: 1 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-topbar,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-workspace-header,
  html[data-kline-page-theme="light"] body.market-launch-ready .workspace-commandbar,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-card,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-shell > .market-hub-view,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-head,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head {
    border-color: #cfd7e2 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-titlebar h1,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-copy strong,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-price strong {
    color: #101828 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-copy span,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head strong,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head span {
    color: #586578 !important;
  }

  /* Light-only desktop finish: dark mode above remains byte-for-byte unchanged. */
  html[data-kline-page-theme="light"] body.market-launch-ready .market-shell {
    background: #eef2f6 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-main {
    background: #eef2f6 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-topbar,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-workspace-header,
  html[data-kline-page-theme="light"] body.market-launch-ready .instrument-strip,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-selector,
  html[data-kline-page-theme="light"] body.market-launch-ready .workspace-commandbar,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-card,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-workspace,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-stage,
  html[data-kline-page-theme="light"] body.market-launch-ready .quick-toolbar,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-statusbar {
    background: #ffffff !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-workspace-header,
  html[data-kline-page-theme="light"] body.market-launch-ready .chart-card,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-shell > .market-hub-view {
    border-color: #d5dce6 !important;
    box-shadow: 0 1px 2px rgba(15,23,42,.025) !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .instrument-strip {
    border-right-color: #e1e6ed !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .workspace-commandbar {
    border-bottom-color: #dfe5ec !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .quick-toolbar {
    border-right-color: #dfe5ec !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .chart-statusbar {
    border-top-color: #dfe5ec !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .command-button,
  html[data-kline-page-theme="light"] body.market-launch-ready .quick-toolbar button {
    color: #475467 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .command-button:hover,
  html[data-kline-page-theme="light"] body.market-launch-ready .quick-toolbar button:hover {
    background: #f4f6f9 !important;
    color: #202939 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .command-button.is-active,
  html[data-kline-page-theme="light"] body.market-launch-ready .quick-toolbar button.is-active {
    background: #fff7d6 !important;
    border-color: #d9b52b !important;
    color: #8b6800 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .asset-chip,
  html[data-kline-page-theme="light"] body.market-launch-ready .timeframe-rail button {
    color: #475467 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .asset-chip.is-active,
  html[data-kline-page-theme="light"] body.market-launch-ready .timeframe-rail button.is-active {
    background: #fff7d6 !important;
    border-color: #d9b52b !important;
    color: #8b6800 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-shell > .market-hub-view {
    background: #ffffff !important;
    color: #101828 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-head {
    background: #ffffff !important;
    border-bottom-color: #dfe5ec !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-titlebar h1 {
    color: #101828 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-search {
    background: #f7f9fb !important;
    border-color: #d8dee8 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-search input {
    color: #101828 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-search input::placeholder {
    color: #7a8595 !important;
    opacity: 1 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-tabs button {
    background: #f5f7fa !important;
    border-color: #e0e5ec !important;
    color: #596579 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-tabs button.is-active {
    background: #fff7d6 !important;
    border-color: #d9b52b !important;
    color: #8b6800 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head {
    background: #f8fafc !important;
    border-bottom-color: #e0e5ec !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head strong {
    color: #475467 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-section-head span {
    color: #667085 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .market-hub-list {
    background: #ffffff !important;
    scrollbar-color: #c5ceda transparent !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-row {
    background: #ffffff !important;
    border-bottom-color: #e5e9ef !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-row:hover {
    background: #f8fafc !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-copy strong,
  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-price strong {
    color: #101828 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-copy span {
    color: #667085 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-price .up {
    color: #078f77 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-price .down {
    color: #d92d3d !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-price .muted {
    color: #667085 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-fav {
    color: #667085 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-asset-fav.is-active {
    color: #d4a900 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready .market-hub-view .hub-add-symbol-row {
    background: #ffffff !important;
    color: #101828 !important;
    border-bottom-color: #e1e6ed !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready #chartWorkspace .chart-watermark {
    opacity: .065 !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready #chartWorkspace .chart-watermark strong {
    color: rgba(17,24,39,.42) !important;
    text-shadow: none !important;
  }

  html[data-kline-page-theme="light"] body.market-launch-ready #chartWorkspace .chart-watermark span {
    color: rgba(154,116,0,.62) !important;
    opacity: .9 !important;
  }
}
