/* 차트 v2 (10-23) — 트레이딩뷰식 전체 화면. chart.css(부품 모양) 위에 배치만 덮는다. 옛 /chart 는 이 파일을 읽지 않는다 */

/* ---- 화면 높이에 꽉: 시세 띠 · 머리말 · 도구줄 · 작업 영역(남은 높이 전부) ---- */
body.ch-body.v2 { --st-page: 100%; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
body.v2 > .st-tk, body.v2 > .st-top, body.v2 > .v2-bar { flex: none; }
body.v2 .st-top { padding: 0 16px; }
html:fullscreen body.v2 > .st-tk, html:fullscreen body.v2 > .st-top { display: none; }   /* 전체화면에서는 차트만 */

/* ---- 위 도구줄 ---- */
.v2-bar { gap: 6px; padding: 6px 10px; }
.v2-bar .st-btn { min-height: 34px; padding: 0 10px; }
.v2-bar .ch-pick { min-height: 36px; }
.v2-bar .ch-heart { width: 36px; height: 36px; }
.v2-bar .ch-tfs button { min-height: 32px; min-width: 36px; padding: 0 8px; }
.v2-ibtn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 0 8px !important; }
.v2-ibtn[aria-pressed="true"] { color: var(--st-accent); border-color: var(--st-accent); }
.v2-sep { width: 1px; height: 22px; background: var(--st-border); flex: none; }
.v2-grow { flex: 1 1 auto; }
.v2-type-pop { min-width: 210px; }
.ch-pop button.v2-topt { justify-content: flex-start; align-items: center; gap: 10px; }
.ch-pop button.v2-topt span:last-child { color: var(--st-text); font-family: var(--st-font); font-size: var(--st-fs-md); }
.ch-pop button.v2-topt[aria-pressed="true"] { color: var(--st-accent); background: var(--st-accent-soft); }

/* ---- 작업 영역: 그리기 도구 | 차트(+아래 패널) | 오른쪽 패널 | 아이콘 줄 ---- */
.v2-app { flex: 1 1 auto; min-height: 0; display: flex; background: var(--st-bg); }
.v2-center { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* 왼쪽 그리기 도구 (세로) */
.ch-dbar.v2-dbar { flex: none; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 2px; width: 46px; padding: 6px 4px; overflow-y: auto; scrollbar-width: none;
  border-bottom: 0; border-right: 1px solid var(--st-border); background: var(--st-surface); }
.v2-dbar button { width: 36px; min-width: 36px; height: 36px; padding: 0; }
.v2-dbar .db-sep { width: 22px; height: 1px; margin: 4px 0; }
.v2-dbar .db-clear { position: relative; }
.v2-dbar .db-clear span { position: absolute; right: 1px; bottom: 1px; font-size: 9px; }

/* 가운데 차트 */
.ch-card.v2-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; box-shadow: none; }
.v2-chart { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.v2 .ch-plot { flex: 1 1 auto; height: auto; min-height: 180px; }
.v2 .ch-subs { flex: none; }
.v2 .ch-sub-plot { height: 130px; }
/* 범례 — 차트 위 왼쪽에 겹친다. 글자만 받고 나머지는 차트로 지나간다 */
.ch-legend.v2-legend { position: absolute; top: 6px; left: 10px; z-index: 3; max-width: calc(100% - 96px); min-height: 0; padding: 2px 6px; gap: 2px 12px;
  font-size: var(--st-fs-sm); pointer-events: none; background: color-mix(in srgb, var(--st-surface) 72%, transparent); border-radius: var(--st-r-sm); }
.v2-legend button, .v2-legend a { pointer-events: auto; }
.v2-legend .lg-ohlc { font-size: var(--st-fs-sm); }
/* 차트 위에 뜨는 것들이 범례와 겹치지 않게 자리를 옮긴다 */
.v2 .ch-draw-props { left: 50%; transform: translateX(-50%); }
.v2 .ch-older { top: auto; bottom: 34px; }
.v2 .ch-rel-tip { top: auto; bottom: 34px; }
.v2 .sim-ov { top: auto; bottom: 34px; }
.v2 .pat-ov { left: auto; right: 72px; }
.v2 .ch-loading { top: 30%; }

/* 아래 상태줄 — 기간 단추 · 저장 위치 · 시간대 · 가격축 */
.v2-status { flex: none; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-top: 1px solid var(--st-border); background: var(--st-surface); font-size: var(--st-fs-sm); }
.v2-ranges, .v2-scale { display: flex; align-items: center; gap: 2px; }
.v2-ranges button, .v2-scale button { height: 24px; padding: 0 8px; border: 0; border-radius: var(--st-r-sm); background: none; color: var(--st-text-muted); font: 500 var(--st-fs-sm)/1 var(--st-mono); cursor: pointer; }
.v2-ranges button:hover, .v2-scale button:hover { background: var(--st-surface-2); color: var(--st-text); }
.v2-ranges button[aria-pressed="true"], .v2-scale button[aria-pressed="true"] { color: var(--st-accent); background: var(--st-accent-soft); }
.v2-ranges button.is-busy { opacity: .5; }
.v2-scale { padding-left: 6px; border-left: 1px solid var(--st-border); }
.v2-status .db-sync { margin: 0; padding: 0; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--st-fs-xs); color: var(--st-text-muted); }
.v2-status .db-sync[data-s="saved"] { color: var(--st-ok); }
.v2-status .db-sync[data-s="error"] { color: var(--st-err); }
.v2-status .db-sync a { color: var(--st-accent); }
.v2-tz { font: 400 var(--st-fs-xs)/1 var(--st-mono); white-space: nowrap; }

/* ---- 경계 끌기 ---- */
.v2-split { flex: none; position: relative; z-index: 4; background: transparent; touch-action: none; }
.v2-split:hover, .v2-split:focus-visible { background: var(--st-accent-soft); outline: none; }
.v2-split-b, .v2-split-sub { height: 5px; margin-top: -3px; cursor: row-resize; }
.v2-split-s { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; }
body.v2-dragging { user-select: none; }
body.v2-dragging .ch-plot, body.v2-dragging .ch-sub-plot { pointer-events: none; }

/* ---- 아래 패널 ---- */
.v2-bottom { flex: none; display: flex; flex-direction: column; border-top: 1px solid var(--st-border); background: var(--st-surface); }
.v2-bottom[data-open="false"] .v2-bbody, .v2-bottom[data-open="false"] .v2-split-b { display: none; }
.v2-btabs { display: flex; align-items: stretch; height: 34px; padding: 0 6px; }
.v2-btabs [role="tab"] { padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--st-text-muted); font: 500 var(--st-fs-sm)/1 var(--st-font); cursor: pointer; }
.v2-btabs [role="tab"]:hover { color: var(--st-text); }
.v2-btabs [role="tab"][aria-selected="true"] { color: var(--st-accent); border-bottom-color: var(--st-accent); }
.v2-bfold { width: 34px; border: 0; background: none; color: var(--st-text-muted); cursor: pointer; }
.v2-bfold[aria-expanded="false"] svg { transform: rotate(180deg); }
.v2-bbody { overflow: auto; border-top: 1px solid var(--st-border); }
.v2-bpane { padding: 0 12px 12px; }
.v2-bpane .ch-sim { margin-top: 8px; padding: 6px 0; }
.v2-bempty { margin: 0; padding: 16px 4px; font-size: var(--st-fs-sm); }
.v2-bpane .ch-reports { margin-top: 12px; }
.v2-bpane .ch-table-wrap { margin-top: 8px; }

/* ---- 오른쪽 패널 · 아이콘 줄 ---- */
.v2-side { position: relative; flex: none; width: var(--v2-side-w, 300px); min-height: 0; border-left: 1px solid var(--st-border); background: var(--st-surface); }
.v2-side[hidden] { display: none; }
.v2-sinner { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.ch-head.v2-head { flex: none; gap: 6px 10px; min-height: 0; margin: 0; padding: 12px 12px 8px; }
.v2-head .mk-badge { width: 30px; height: 30px; font-size: 10px; }
.v2-head .ch-title b { font-size: var(--st-fs-lg); }
.v2-head .ch-last { font-size: var(--st-fs-xl); margin-left: 0; }
.v2-head .ch-when { width: 100%; }
.v2-stats { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; padding: 8px 12px 10px; border-bottom: 1px solid var(--st-border); font-size: var(--st-fs-sm); }
.v2-stats div { min-width: 0; }
.v2-stats dt { color: var(--st-text-muted); font-size: var(--st-fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-stats dd { margin: 0; font-weight: 600; }
.v2-stats div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.v2-spane { flex: 1 1 auto; min-height: 0; overflow: auto; }
.v2-spane[hidden] { display: none; }
.v2-spane .ch-watch { border: 0; border-radius: 0; box-shadow: none; }
.v2-spane .ch-watch header { padding: 10px 12px; }
.v2-spane[data-spane="news"], .v2-spane[data-spane="cal"], .v2-spane[data-spane="wh"] { padding: 8px 10px; }
.v2-rail { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 46px; padding: 8px 4px; border-left: 1px solid var(--st-border); background: var(--st-surface); }
.v2-rail button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: var(--st-r-sm); background: none; color: var(--st-text-muted); cursor: pointer; }
.v2-rail button:hover { background: var(--st-surface-2); color: var(--st-text); }
.v2-rail button[aria-selected="true"] { color: var(--st-accent); background: var(--st-accent-soft); border-color: var(--st-accent); }
.v2-rail button:focus-visible, .v2-btabs [role="tab"]:focus-visible { outline: 2px solid var(--st-focus); outline-offset: 1px; }

/* ---- 휴대폰·좁은 화면: 위에서 아래로 쌓고 스크롤 ---- */
@media (max-width: 900px) {
  body.ch-body.v2 { display: block; height: auto; overflow: visible; }
  .v2-app { flex-direction: column; }
  .ch-dbar.v2-dbar { flex-direction: row; width: auto; padding: 4px 6px; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--st-border); }
  .v2-dbar .db-sep { width: 1px; height: 22px; margin: 0 4px; }
  .v2 .ch-plot { flex: none; height: clamp(320px, 56vh, 520px); }
  .v2-status { height: auto; min-height: 30px; flex-wrap: wrap; padding: 4px 8px; }
  .v2-status .db-sync { max-width: 100%; }
  .v2-rail { flex-direction: row; justify-content: center; width: auto; padding: 6px; border-left: 0; border-top: 1px solid var(--st-border); }
  .v2-side { width: auto; border-left: 0; border-top: 1px solid var(--st-border); }
  .v2-split-s { display: none; }
  .v2-spane { max-height: 70vh; }
  .v2 .pat-ov { right: 60px; }
  .ch-legend.v2-legend { max-width: calc(100% - 70px); font-size: 11px; }
}

/* ---- 간결한 위쪽 (10-23 사용자: 차트에서는 상단 메뉴도 간결하게) ----
   시세 띠는 빼고(차트 화면은 오른쪽 관심 목록이 시세를 보여 준다), 머리말 56→44px, 단추는 아이콘 위주 */
body.v2 > .st-tk { display: none; }
body.v2 .st-top { height: 44px; gap: 18px; }
body.v2 .st-logo { font-size: var(--st-fs-md); }
body.v2 .st-logo svg { width: 22px; height: 22px; }
body.v2 .st-nav a { padding: 0 10px; font-size: var(--st-fs-md); }
body.v2 .st-nav .st-dev { transform: scale(.85); }
body.v2 .st-top-r { gap: 6px; }
body.v2 .st-top-r .st-btn, body.v2 .st-lang select { min-height: 30px; height: 30px; padding-top: 0; padding-bottom: 0; font-size: var(--st-fs-sm); }
body.v2 #st-theme span { display: none; }   /* 테마 단추는 아이콘만 */
.v2-bar { padding: 4px 10px; }
.v2-bar .st-btn, .v2-bar .ch-tfs button { min-height: 32px; }
.v2-bar .ch-pick { min-height: 34px; padding: 2px 10px 2px 4px; }
.v2-bar .ch-pick .mk-badge { width: 24px; height: 24px; }
.v2-bar .ch-heart { width: 34px; height: 34px; }
.ch-ask-main { display: inline-flex; align-items: center; gap: 6px; }
/* 휴대폰: 범례는 한 줄(O·H·L·C 만, 종목·시각은 위 고르기 단추에 있다) · 도구줄 두 줄 · AI 단추는 아이콘만 */
@media (max-width: 900px) {
  .v2-legend .lg-meta { display: none; }
  .v2-legend .lg-ohlc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .v2-legend .lg-ind { white-space: nowrap; }
  body.v2 .st-top { height: auto; padding-top: 4px; }
  body.v2 .st-nav { height: 36px; margin-top: 2px; }
  .v2-bar { gap: 6px; }
  .v2-bar .ch-pick { order: 1; flex: 1 1 0; min-width: 0; }
  .v2-bar .ch-pick-t b { max-width: 110px; }
  .v2-bar .ch-heart { order: 2; }
  .v2-bar > .ch-pop-wrap:has(#ch-ind-btn) { order: 3; }
  .v2-bar .ch-ask-main { order: 4; margin-left: 0; min-width: 36px; padding: 0 9px; }
  .v2-ask-t { display: none; }
  .v2-bar .ch-tfs { order: 5; }
  .v2-bar .ch-tfs button { min-width: 0; padding: 0 7px; }
  .v2-bar > .ch-pop-wrap:has(#v2-type-btn) { order: 6; }
  .v2-bar .ch-more { order: 7; }
  .v2-bar .ch-x { order: 8; }
  .v2-bar .v2-sep, .v2-bar .v2-grow { display: none; }
}

/* ---- 휴대폰 위쪽 다시 (10-23 사용자 화면: 첫 줄에 로고만, 종목 단추가 「E.」로 찌그러짐, 그리기 줄이 한 줄 차지) ----
   머리말 한 줄(로고 · 메뉴(옆으로 넘김) · 언어·테마·계정) / 도구줄 두 줄 고정 / 그리기 도구는 단추로 펼친다 */
.v2-drawbtn { display: none; }
@media (max-width: 900px) {
  body.v2 .st-top { flex-wrap: nowrap; height: 44px; padding-top: 0; gap: 6px; }
  body.v2 .st-logo { flex: none; }
  body.v2 .st-nav { order: 0; flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0; border-top: 0; }
  body.v2 .st-nav a { padding: 0 8px; font-size: var(--st-fs-sm); }
  body.v2 .st-nav .st-dev { display: none; }
  body.v2 .st-top-r { flex: none; margin-left: 0; gap: 4px; }
  body.v2 .st-lang select { width: 68px; padding: 0 4px; }
  body.v2 .st-top-r .st-btn { padding: 0 8px; }
  /* 도구줄: 1줄 = 종목(넓게) · 관심 · 지표 · AI / 2줄 = 봉 · 종류 · 그리기 · 더보기 (+ 펼친 것) */
  .v2-bar .ch-pick { order: 1; flex: 1 1 auto; min-width: 128px; }
  .v2-bar .ch-heart { order: 2; }
  .v2-bar > .ch-pop-wrap:has(#ch-ind-btn) { order: 3; }
  .v2-bar .ch-ask-main { order: 4; }
  .v2-bar .v2-grow { display: block; order: 5; flex: 0 0 100%; height: 0; }
  .v2-bar .ch-tfs { order: 6; }
  .v2-bar > .ch-pop-wrap:has(#v2-type-btn) { order: 7; }
  .v2-drawbtn { display: inline-flex; order: 8; }
  .v2-bar .ch-more { order: 9; }
  .v2-bar .ch-x { order: 10; }
  body.v2-draw-off .ch-dbar.v2-dbar { display: none; }
}
@media (max-width: 480px) { body.v2 #st-theme { display: none; } }   /* 아주 좁으면 테마는 설정에서 — 메뉴 자리가 먼저 */
/* 아주 좁은 폭 (≤480px, 보통 휴대폰 세로) — 도구줄을 두 줄에, 머리말 메뉴가 잘리지 않게 */
@media (max-width: 480px) {
  .v2-bar { gap: 4px; padding: 4px 8px; }
  .v2-bar .ch-pick { flex: 1 1 0; min-width: 120px; }   /* 내용 폭이 아니라 남은 자리를 — 앞 단추들 때문에 줄이 넘어가지 않게 */
  .v2-bar .ch-pick-t b { max-width: none; }
  .v2-bar .st-btn { padding: 0 8px; }
  .v2-bar .ch-tfs button { padding: 0 5px; font-size: var(--st-fs-sm); }
  .v2-bar .ch-more { font-size: 0; min-width: 34px; padding: 0 !important; }
  .v2-bar .ch-more::after, .v2-bar .ch-more[aria-expanded="true"]::after { content: "⋯"; font-size: 18px; line-height: 1; }
  body.v2 .st-lang select { width: 64px; }
  body.v2 #st-user .st-btn-accent { display: none; }   /* 가입은 로그인 화면에서 — 메뉴 자리가 먼저 */
  body.v2 .st-nav a { padding: 0 7px; }
}

/* 청산맵 (10-28 chart-liq.js) — 색은 상승·하락 색(세 방식 모두)과 겹치지 않게: 숏 청산 = 자홍 · 롱 청산 = 청록 */
:root { --liq-short: #B5179E; --liq-long: #0E8A8C; --liq-on: #FFFFFF; }
[data-theme="dark"] { --liq-short: #E26FD0; --liq-long: #3CC3C4; --liq-on: #0E1117; }
@media (prefers-color-scheme: dark) { [data-theme="auto"] { --liq-short: #E26FD0; --liq-long: #3CC3C4; --liq-on: #0E1117; } }
.ch-liq-cv { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ch-liq-cv[hidden] { display: none; }
.ch-liq-tip { position: absolute; z-index: 6; display: grid; gap: 2px; min-width: 150px; padding: 8px 10px; border: 1px solid var(--st-border); border-radius: var(--st-r-sm);
  background: var(--st-surface); box-shadow: var(--st-shadow-pop); font-size: var(--st-fs-sm); pointer-events: none; }
.ch-liq-tip .lq-k { display: flex; justify-content: space-between; gap: 12px; }
.ch-liq-tip .lq-k::before { content: ""; width: 8px; height: 8px; border-radius: 2px; align-self: center; margin-right: -6px; }
.lq-k.lq-s::before, .lq-sw.lq-s, .lq-near.lq-s .lq-dot { background: var(--liq-short); }
.lq-k.lq-l::before, .lq-sw.lq-l, .lq-near.lq-l .lq-dot { background: var(--liq-long); }
.ch-liq-btn[aria-pressed="true"] { color: var(--st-accent); border-color: var(--st-accent); background: var(--st-accent-soft); }

.v2-spane[data-spane="liq"] { padding: 10px 12px 16px; }
.lq { display: grid; gap: 10px; }
.lq-head { display: flex; align-items: center; gap: 8px; }
.lq-head h2 { margin: 0; font-size: var(--st-fs-md); font-weight: 600; }
.lq-coin { padding: 1px 6px; border-radius: var(--st-r-xs); background: var(--st-chip); font: 600 var(--st-fs-xs)/1.5 var(--st-mono); }
.lq-show { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: var(--st-fs-sm); color: var(--st-text-muted); cursor: pointer; }
.lq-seg { display: flex; padding: 2px; border-radius: var(--st-r-sm); background: var(--st-chip); }
.lq-seg button { flex: 1; height: 28px; border: 0; border-radius: calc(var(--st-r-sm) - 2px); background: none; color: var(--st-text-muted); font: 500 var(--st-fs-sm)/1 var(--st-font); cursor: pointer; }
.lq-seg button:hover { color: var(--st-text); }
.lq-seg button[aria-pressed="true"] { background: var(--st-surface); color: var(--st-text); box-shadow: var(--st-shadow-sm); }
.lq-wins button { height: 24px; font-family: var(--st-mono); }
.lq-sub { margin: 0; font-size: var(--st-fs-sm); line-height: 1.5; color: var(--st-text-muted); }
.lq-tag { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: var(--st-r-full); font-size: var(--st-fs-xs); font-weight: 600; line-height: 18px; }
.lq-tag-hl { background: var(--st-ok-soft); color: var(--st-ok); }
.lq-tag-bn { background: var(--st-warn-soft); color: var(--st-warn); }
.lq-card { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--st-border); border-radius: var(--st-r-md); background: var(--st-surface); }
.lq-card h3 { margin: 0; font-size: var(--st-fs-sm); font-weight: 600; }
.lq-card p { margin: 0; font-size: var(--st-fs-sm); line-height: 1.55; }
.lq-now { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--st-border); font-size: var(--st-fs-sm); }
.lq-now b { font-size: var(--st-fs-lg); }
.lq-near { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; }
.lq-dot { width: 10px; height: 28px; border-radius: 3px; }
.lq-near > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.lq-near-k { width: 100%; font-size: var(--st-fs-xs); color: var(--st-text-muted); }
.lq-near-v { font-size: var(--st-fs-md); }
.lq-cum-h { display: flex; justify-content: space-between; font-size: var(--st-fs-xs); color: var(--st-text-muted); }
.lq-cum { display: grid; gap: 5px; }
.lq-cum-r { display: grid; grid-template-columns: 52px 1fr 40px 1fr 52px; align-items: center; gap: 6px; font-size: var(--st-fs-xs); }
.lq-cum-r .lq-cum-v:first-child { text-align: right; }
.lq-cum-p { text-align: center; color: var(--st-text-muted); }
.lq-cum-b { display: flex; height: 10px; border-radius: 2px; background: var(--st-chip); overflow: hidden; }
.lq-cum-l { justify-content: flex-end; }
.lq-cum-b i { display: block; height: 100%; }
.lq-cum-l i { background: var(--liq-long); }
.lq-cum-s i { background: var(--liq-short); }
.lq-legend { display: flex; align-items: center; gap: 6px; font-size: var(--st-fs-sm); }
.lq-sw { width: 10px; height: 10px; border-radius: 2px; }
.lq-sw + .lq-sw, .lq-legend .lq-sw:nth-of-type(2) { margin-left: 10px; }
.lq-how summary { cursor: pointer; font-size: var(--st-fs-sm); color: var(--st-accent); }
.lq-how p { margin-top: 6px; }
.lq-none { text-align: center; }
.lq-coins { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lq-coins a { padding: 3px 8px; border: 1px solid var(--st-border); border-radius: var(--st-r-full); font: 500 var(--st-fs-xs)/1.4 var(--st-mono); color: var(--st-text); text-decoration: none; }
.lq-coins a:hover { border-color: var(--st-accent); color: var(--st-accent); }

/* 실시간 봉 상태 (10-29 chart-live.js) — 거래소 웹소켓에 붙어 있는지 */
.ch-rt { display: inline-flex; align-items: center; gap: 5px; }
.ch-rt i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-text-muted); }
.ch-rt[data-state="on"] { color: var(--st-ok); }
.ch-rt[data-state="on"] i { background: var(--st-ok); animation: ch-rt-pulse 2s var(--st-ease) infinite; }
.ch-rt[data-state="off"] { color: var(--st-warn); }
.ch-rt[data-state="off"] i { background: var(--st-warn); }
@keyframes ch-rt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ch-rt[data-state="on"] i { animation: none; } }
