html,
body {
  background: transparent !important;
}

/* Keep the native header visually inside the chart instead of rendering a black strip. */
.layout__area--top,
.layout__area--top .toolbar-qqNP9X6e,
.layout__area--top .innerWrap-OhqNVIYA,
.layout__area--top .inner-OhqNVIYA,
.layout__area--top .fill-OhqNVIYA {
  background-color: transparent !important;
}

.layout__area--top {
  --tv-color-pane-background: transparent;
  --color-pane-bg: transparent;
  opacity: 0 !important;
  transition: none !important;
}

html.bb-chart-toolbar-ready .layout__area--top {
  opacity: 1 !important;
}

.bb-chart-header-button {
  box-sizing: border-box;
  display: inline-flex;
  height: 34px;
  min-width: 34px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 5px 3px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(239, 243, 241, 0.76);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  outline: none;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.bb-chart-header-button:hover,
.bb-chart-header-button:focus-visible {
  color: #f5f7f6;
  background: rgba(255, 255, 255, 0.055);
}

.bb-chart-header-button:focus-visible {
  border-color: rgba(37, 211, 158, 0.62);
}

.bb-chart-overlay-button.is-open {
  color: #f5f7f6;
  border-color: #16b98b;
  background: rgba(18, 201, 143, 0.075);
  box-shadow: 0 0 0 1px rgba(18, 201, 143, 0.16);
}

.bb-chart-overlay-button > svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}

.bb-chart-overlay-button.is-open > svg {
  transform: rotate(180deg);
}

.bb-chart-screenshot-button,
.bb-chart-fullscreen-button,
.bb-chart-settings-button {
  padding: 0;
}

.bb-chart-screenshot-button > svg,
.bb-chart-fullscreen-button > svg,
.bb-chart-settings-button > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-chart-screenshot-button.is-busy > svg {
  opacity: 0.4;
}



.theme-light .bb-chart-basis-toggle > button[aria-pressed="true"],
html.theme-light .bb-chart-basis-toggle > button[aria-pressed="true"] {
  background: rgba(22, 143, 95, 0.12);
}

.bb-chart-overlay-menu {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  width: 244px;
  padding: 14px;
  border: 1px solid rgba(143, 157, 151, 0.22);
  border-radius: 11px;
  color: #edf2ef;
  background: #101419;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
}

.bb-chart-overlay-menu[hidden] {
  display: none !important;
}

.bb-chart-overlay-menu__heading,
.bb-chart-overlay-menu__lead {
  display: block;
}

.bb-chart-overlay-menu__heading {
  font-size: 12px;
  font-weight: 720;
  line-height: 17px;
}

.bb-chart-overlay-menu__lead {
  margin-top: 1px;
  color: rgba(211, 220, 216, 0.47);
  font-size: 9.5px;
  line-height: 14px;
}

.bb-chart-overlay-menu__divider {
  display: block;
  height: 1px;
  margin: 9px 0 6px;
  background: rgba(255, 255, 255, 0.085);
}

.bb-chart-overlay-option {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0;
  padding: 5px 6px;
  border: 0;
  border-radius: 8px;
  color: rgba(235, 241, 238, 0.78);
  background: transparent;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.bb-chart-overlay-option:hover:not(:disabled),
.bb-chart-overlay-option:focus-visible:not(:disabled) {
  color: #f5f8f6;
  background: rgba(255, 255, 255, 0.045);
}

.bb-chart-overlay-option:disabled {
  color: rgba(212, 220, 216, 0.35);
  cursor: default;
}

.bb-chart-overlay-option__icon {
  display: grid;
  box-sizing: border-box;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.bb-chart-overlay-option__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-chart-overlay-option__copy {
  min-width: 0;
}

.bb-chart-overlay-option__copy strong,
.bb-chart-overlay-option__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-chart-overlay-option__copy strong {
  font-size: 11px;
  font-weight: 650;
  line-height: 15px;
}

.bb-chart-overlay-option__copy small {
  margin-top: 1px;
  color: rgba(210, 219, 215, 0.4);
  font-size: 9px;
  line-height: 13px;
}

.bb-chart-overlay-option__state {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: transparent;
}

.bb-chart-overlay-option__state svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bb-chart-overlay-option.is-active .bb-chart-overlay-option__state {
  border-color: rgba(24, 201, 142, 0.58);
  color: #0d1210;
  background: #18c98e;
}

.bb-chart-overlay-option:disabled .bb-chart-overlay-option__state {
  opacity: 0.42;
}

.theme-light .bb-chart-header-button,
html.theme-light .bb-chart-header-button {
  color: rgba(32, 45, 38, 0.72);
}

.theme-light .bb-chart-header-button:hover,
.theme-light .bb-chart-header-button:focus-visible,
html.theme-light .bb-chart-header-button:hover,
html.theme-light .bb-chart-header-button:focus-visible {
  color: #17221c;
  background: rgba(18, 42, 29, 0.055);
}

.theme-light .bb-chart-overlay-menu,
html.theme-light .bb-chart-overlay-menu {
  color: #1d2b23;
  border-color: rgba(32, 54, 42, 0.16);
  background: #fffdf9;
  box-shadow: 0 18px 44px rgba(29, 43, 35, 0.15);
}

.layout__area--top .group-MBOVGQRI,
.layout__area--top .separatorWrap-MBOVGQRI {
  background-color: transparent !important;
}

/* The native basis dropdown starts the right toolbar without a leading divider. */
.bb-chart-native-basis .separatorWrap-MBOVGQRI:has(
  + .group-MBOVGQRI + .separatorWrap-MBOVGQRI + .group-MBOVGQRI .bb-chart-overlay-button
) {
  display: none !important;
}

/* Pane management is application-owned; never expose TradingView's corner controls. */
[data-qa-id^="pane-button-"] {
  display: none !important;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 130, 124, 0.34) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(118, 130, 124, 0.34);
}

::-webkit-scrollbar-track {
  background: transparent;
}
