#indicators {
  --study-accent:#6ee7ff; --light-x:16%; background:var(--cfx-band); color:var(--site-ink);
}
.study-layout {
  display:grid; grid-template-columns:1fr auto; grid-template-areas:"heading more" "picker picker";
  align-items:end; gap:20px; padding-block:clamp(34px,4vw,58px);
}
.study-heading {grid-area:heading}
.study-heading h2 {margin:0; font-size:clamp(24px,2.45vw,34px); font-weight:740; line-height:1.5; letter-spacing:-.04em}
.study-heading p {margin:4px 0 0; color:var(--site-muted); font-size:13px; line-height:1.9}
.study-more {grid-area:more; display:inline-flex; align-items:center; gap:8px; width:fit-content; color:#98d8f6; font-size:12px}
.study-more:hover {color:#dcf7ff; text-decoration:underline; text-underline-offset:4px}
.study-picker {grid-area:picker; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
.study-picker button {
  position:relative; isolation:isolate; display:grid; grid-template-areas:"symbol" "plot" "label"; grid-template-columns:minmax(0,1fr);
  gap:9px; min-width:0; overflow:hidden; padding:14px 16px 10px; text-align:start; border-radius:11px;
  border:1px solid color-mix(in srgb,var(--tool-ink) 35%,#15243b);
  background:linear-gradient(165deg,color-mix(in srgb,var(--tool-ink) 10%,transparent),transparent 64%),var(--cfx-glass);box-shadow:var(--cfx-rim);
  color:#e7edf7; font:550 13px/1.6 Vazirmatn,Tahoma,sans-serif;
}
.study-picker button::after {content:"↗"; position:absolute; top:10px; right:14px; font:17px/1 system-ui,sans-serif; color:var(--tool-ink)}
.study-picker button:hover,.study-picker button[aria-pressed=true] {border-color:var(--tool-ink)}
.study-picker button bdi {grid-area:symbol; justify-self:end; color:var(--tool-ink); font:670 16px/1.3 system-ui,sans-serif; letter-spacing:.03em}
.study-picker button>span:first-child {grid-area:label}
.study-preview {grid-area:plot; width:100%; height:38px; display:block; direction:ltr; color:var(--tool-ink)}
.study-preview svg {display:block; width:100%; height:100%}
#indicators [data-study-view=vwap],.study-stage[data-mode=vwap] {--tool-ink:#f2c774}
#indicators [data-study-view=ema],.study-stage[data-mode=ema] {--tool-ink:#78b8ff}
#indicators [data-study-view=rsi],.study-stage[data-mode=rsi] {--tool-ink:#bf9dff}
#indicators [data-study-view=fib],.study-stage[data-mode=fib] {--tool-ink:#69dec6}
.study-stage {
  --tool-ink: var(--study-accent);
  grid-column:1/-1; grid-row:3; min-width: 0; margin: 0;
  border: 1px solid #37424d; border-radius: 12px; overflow: hidden;
  background: #131722; align-self: center;
}
.study-stage[hidden] {display:none}
.study-close {padding:0; width:32px; height:32px; color:#bbcee9; background:transparent; border:0; border-radius:4px; font:22px/1 system-ui,sans-serif}
.study-close:hover {background:#26374c; color:white}
.study-head .study-market {margin-right:auto}
.study-head,.study-caption,.study-market,.study-play,.study-readout,.study-reading {display: flex; align-items: center}
.study-head {
  direction: ltr; justify-content: space-between; gap: 8px; padding: 4px 13px;
  min-height: 40px; background: #191d2a; border-bottom: 1px solid #303743;
}
.study-market {gap: 8px; font: 650 14px/1.4 system-ui, sans-serif; color: #e2e8ec}
.study-market span {font-size: 10px; color: #adbac4}
.study-clean {
  border: 1px solid #3b4651; border-radius: 5px; background: transparent;
  padding: 2px 9px; min-height: 28px; color: #b5c3cb; font-size: 11px;
}
.study-clean[aria-pressed=true] {border-color: #3e6766; background: #1b3236; color: #b4e8df}
.study-stage cfx-study-plot {width: 100%; --study-price-height:clamp(215px,21vw,262px); height:calc(var(--study-price-height) + var(--study-osc-height,0px))}
.study-readout {
  min-height: 31px; padding: 4px 12px; flex-wrap: wrap; gap: 2px 14px;
  border-top: 1px solid #303743; color: #b3bdc8; background: #181c28;
  font-size: 10.5px; line-height: 1.5;
}
.study-stamp,.study-reading bdi {font: 570 11px/1.3 system-ui, sans-serif; font-variant-numeric: tabular-nums}
.study-reading {gap: 5px}
.study-reading bdi {color: #e3e7ed}
.study-value bdi {color: var(--tool-ink)}
.study-readout [hidden] {display: none}
.study-caption {
  min-height: 65px; padding: 6px 12px; justify-content: space-between; gap: 10px;
  border-top: 1px solid #303743; background: #171e26;
}
.study-caption small {display: block; font-size: 10.5px; color: #a8b6c1}
.study-caption p {margin: 2px 0 0; font-size: 12px; line-height: 1.75; color: #d3dddf}
.study-play {
  flex: none; gap: 6px; min-height: 34px; padding: 2px 5px;
  border: 0; border-radius: 4px; color: #b9eee1; background: transparent; font-size: 11.5px;
}
.study-play i {width: 11px; height: 12px; background: currentColor; clip-path: polygon(18% 5%,93% 50%,18% 95%)}
.study-play[data-state=playing] i {clip-path: polygon(12% 6%,40% 6%,40% 94%,12% 94%,12% 6%,60% 6%,88% 6%,88% 94%,60% 94%,60% 6%)}
.study-progress {height: 2px; background: #242f37}
.study-progress i {display: block; height: 100%; transform: scaleX(0); transform-origin: right; background: var(--tool-ink)}
@media (hover: hover) {
  .study-clean:hover,.study-play:hover {color: #e0fff8; background: #25323b}
}
@media (prefers-reduced-motion: reduce) {.study-progress i {visibility: hidden}}
@media (max-width: 740px) {
  .study-layout {grid-template-columns:minmax(0,1fr); grid-template-areas:"heading" "picker" "stage" "more"; gap:12px}
  .study-layout:not(:has(.study-stage:not([hidden]))) {grid-template-areas:"heading" "picker" "more"}
  .study-picker {grid-template-columns:1fr 1fr; gap:9px}
  .study-picker button {padding:12px; gap:5px; font-size:12px}
  .study-preview {height:29px}
  .study-stage cfx-study-plot {--study-price-height:213px}
  .study-caption {min-height: 71px}
}
@media (max-width: 400px) {
  .study-readout {padding-inline: 7px; gap: 3px 8px}
  .study-caption {padding-inline: 8px}
  .study-caption p {font-size: 11.5px}
}
