/* Панель индикаторов и стратегий (chart-studies.js) */
.cs-root { --y: #FFCB2E; --v: #9B87FF; --bg: #0D121F; --line: rgba(255,255,255,.1); --mut: rgba(255,255,255,.55);
  position: fixed; inset: 0; z-index: 80; display: none; font-family: Manrope, system-ui, sans-serif; color: #f2f2f4; }
.cs-root.show { display: block; }
.cs-root * { box-sizing: border-box; }
.cs-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.34); opacity: 0; transition: opacity .2s ease; }
.cs-root.in .cs-backdrop { opacity: 1; }
.cs-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 640px; max-width: calc(100vw - 24px); background: var(--bg);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(28px); opacity: 0; transition: transform .2s ease, opacity .2s ease; outline: none; }
.cs-root.in .cs-panel { transform: none; opacity: 1; }
.cs-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.cs-head h2 { margin: 0; font: 800 17px Unbounded, Manrope, sans-serif; letter-spacing: .01em; }
.cs-tabs { display: flex; gap: 6px; margin: 10px 20px 4px; padding: 4px; background: rgba(255,255,255,.05); border-radius: 999px; }
.cs-tab { flex: 1; border: 0; background: transparent; color: var(--mut); font: 700 13px Manrope, sans-serif; padding: 9px 12px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.cs-tab:hover { color: #fff; }
.cs-tab.on { background: var(--y); color: #14110a; }
.cs-body { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; padding: 10px 20px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.cs-ic { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--mut); border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.cs-ic:hover { background: rgba(255,255,255,.08); color: #fff; }
.cs-ic svg, .cs-btn svg, .cs-search svg, .cs-state svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cs-actions { display: grid; gap: 8px; margin-bottom: 14px; }
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: #fff; font: 700 13px Manrope, sans-serif; padding: 9px 14px; border-radius: 12px; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.cs-btn:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.cs-btn:active:not(:disabled) { transform: scale(.98); }
.cs-btn:disabled { opacity: .4; cursor: default; }
.cs-btn.wide { justify-content: flex-start; width: 100%; padding: 11px 14px; }
.cs-btn.wide em { margin-left: auto; font: 700 11px 'JetBrains Mono', monospace; font-style: normal; background: var(--y); color: #14110a; padding: 2px 7px; border-radius: 999px; }
.cs-btn.y { background: var(--y); border-color: var(--y); color: #14110a; }
.cs-btn.y:hover:not(:disabled) { background: #ffd856; }
.cs-savebox { display: flex; gap: 8px; }
.cs-savebox .cs-input { flex: 1; }
.cs-input { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #fff; font: 600 13px Manrope, sans-serif; padding: 9px 12px; border-radius: 11px; outline: none; min-width: 0; transition: border-color .15s; }
.cs-input:focus { border-color: var(--y); }
.cs-input.num { width: 96px; font-family: 'JetBrains Mono', monospace; text-align: right; }
select.cs-input { padding-right: 8px; }
.cs-h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font: 800 11px Manrope, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.cs-h3 em, .cs-cat-h em { font: 700 11px 'JetBrains Mono', monospace; font-style: normal; color: var(--v); }
.cs-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--mut); font-size: 12.5px; line-height: 1.5; }
.cs-active { display: grid; gap: 6px; }
.cs-row { display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; }
.cs-row.off .cs-rname, .cs-row.off .cs-dot { opacity: .4; }
.cs-dot { width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; flex: none; }
.cs-rname { flex: 1; font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-tag { font: 600 10px Manrope, sans-serif; color: var(--mut); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 999px; white-space: nowrap; margin-right: 4px; }
.cs-search { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; padding-left: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; color: var(--mut); }
.cs-search:focus-within { border-color: var(--y); }
.cs-search .cs-input { flex: 1; border: 0; background: transparent; padding-left: 0; }
.cs-cat { margin-top: 6px; }
.cs-cat-h { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; font: 800 12px Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 12px 2px 8px; cursor: pointer; }
.cs-cat-h em { margin-left: auto; }
.cs-chev { display: grid; transition: transform .2s; transform: rotate(-90deg); color: var(--mut); }
.cs-chev svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cs-cat.open .cs-chev { transform: none; }
.cs-grid { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.cs-cat.open .cs-grid { display: grid; }
.cs-item { position: relative; display: grid; grid-template-columns: minmax(0, max-content) auto 1fr auto 16px; grid-template-areas: 'n i . t s'; align-items: center; gap: 0 6px; text-align: left; padding: 8px 6px 8px 10px; border: 1px solid transparent; background: transparent; color: #fff; border-radius: 12px; cursor: pointer; font: 700 13px Manrope, sans-serif; transition: background .15s, border-color .15s, transform .1s; min-width: 0; }
.cs-item:hover { background: rgba(255,255,255,.05); }
.cs-item:active { transform: scale(.985); }
.cs-iname { grid-area: n; min-width: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-item .cs-tag { font-size: 9.5px; padding: 2px 6px; }
.cs-i { grid-area: i; width: 15px; height: 15px; display: inline-grid; place-items: center; font: italic 700 10px Georgia, serif; color: var(--mut); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; cursor: help; }
.cs-i:hover { color: var(--y); border-color: var(--y); }
.cs-item .cs-tag { grid-area: t; justify-self: end; margin: 0; }
.cs-state .cs-add { display: inline-flex; opacity: 0; transition: opacity .12s; }
.cs-item:hover .cs-state .cs-add, .cs-item:focus-visible .cs-state .cs-add { opacity: 1; }
@media (hover: none) { .cs-state .cs-add { opacity: .55; } }
.cs-state { grid-area: s; justify-self: end; display: inline-flex; align-items: center; gap: 4px; color: var(--mut); }
.cs-state b { font: 700 10px Manrope, sans-serif; }
.cs-item.added { background: rgba(255,203,46,.08); border-color: rgba(255,203,46,.22); }
.cs-item.added .cs-state { color: var(--y); }
.cs-state .cs-off { display: none; }
/* уже добавлен: «✓ ×N · + ещё» — нажатие добавляет копию */
.cs-more { grid-area: t; justify-self: end; display: inline-flex; align-items: center; gap: 3px; font: 700 11px Manrope, sans-serif; color: #3DB88A; white-space: nowrap; }
.cs-more svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-more span { color: var(--mut); font-weight: 600; transition: color .15s; }
.cs-item.added:hover .cs-more span { color: var(--y); }
.cs-tip { position: fixed; z-index: 120; width: max-content; max-width: 280px; padding: 9px 12px; background: #161D30; border: 1px solid var(--line); border-radius: 10px; font: 500 12px/1.45 Manrope, sans-serif; color: #e9e9ee; box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s; }
.cs-tip.on { opacity: 1; transform: none; }
/* стратегии */
.cs-presets { display: grid; gap: 10px; }
.cs-card { --c: var(--y); padding: 14px 16px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 14px; }
.cs-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cs-card h4 { margin: 0; font: 800 14px Manrope, sans-serif; }
.cs-tf { font: 700 11px 'JetBrains Mono', monospace; color: var(--c); white-space: nowrap; }
.cs-card p { margin: 6px 0 8px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.75); }
.cs-card ul { margin: 0 0 10px; padding-left: 16px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.62); }
.cs-card li { margin-bottom: 3px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cs-chips span { font: 600 10.5px Manrope, sans-serif; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.cs-card footer, .cs-set { display: flex; align-items: center; gap: 8px; }
.cs-ask { font-size: 12px; font-weight: 700; color: var(--y); margin-right: auto; }
.cs-sets { display: grid; gap: 6px; }
.cs-set { padding: 10px 10px 10px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; }
.cs-set > div:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cs-set b { font-size: 13px; }
.cs-set span { font-size: 11.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* окно настроек / уведомлений */
.cs-sheet { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; visibility: hidden; }
.cs-root.sheet-on .cs-sheet { transform: none; visibility: visible; }
.cs-sheet-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cs-sheet-h h3 { margin: 0; font: 800 15px Unbounded, Manrope, sans-serif; flex: 1; min-width: 0; }
.cs-sheet-b { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.cs-sheet-f { display: flex; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--line); }
.cs-desc { font-size: 12.5px; line-height: 1.5; color: var(--mut); margin: 8px 0 10px; }
.cs-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.cs-colors { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.cs-sw { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.cs-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg) inset; }
.cs-colorin { width: 26px; height: 22px; padding: 0; border: 1px solid var(--line); background: none; border-radius: 6px; cursor: pointer; }
.cs-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; }
.cs-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.cs-switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .15s; }
.cs-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cs-switch input:checked + i { background: var(--y); }
.cs-switch input:checked + i::after { transform: translateX(18px); background: #14110a; }
.cs-arule { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.cs-arule > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cs-arule b { font-size: 13px; }
.cs-arule span { font-size: 11.5px; color: var(--mut); }
.cs-newrule { padding: 4px 12px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.cs-newrule .cs-btn { margin-top: 10px; }
.cs-log { display: grid; gap: 4px; margin-bottom: 10px; }
.cs-log div { display: flex; gap: 10px; font-size: 12px; padding: 7px 10px; background: rgba(255,255,255,.04); border-radius: 9px; }
.cs-log time { font: 500 11px 'JetBrains Mono', monospace; color: var(--v); flex: none; }
/* уведомления на странице */
.cs-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 130; display: grid; gap: 8px; pointer-events: none; }
.cs-toast { max-width: 340px; padding: 11px 14px; background: #141B2D; border: 1px solid var(--line, rgba(255,255,255,.1)); border-left: 3px solid #9B87FF; border-radius: 12px; color: #fff; font: 600 13px/1.4 Manrope, sans-serif; box-shadow: 0 12px 36px rgba(0,0,0,.55); opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s; }
.cs-toast.alert { border-left-color: #FFCB2E; }
.cs-toast.in { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .cs-panel { top: 0; right: 0; bottom: 0; left: 0; width: 100%; max-width: none; border-radius: 0; border: 0; transform: translateY(24px); }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-body, .cs-sheet-b { padding-left: 16px; padding-right: 16px; }
  .cs-head { padding-top: calc(16px + env(safe-area-inset-top)); }
  .cs-input.num { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .cs-panel, .cs-backdrop, .cs-sheet { transition: none; } }

@media (max-width: 899px) {
  .cs-ic { min-width: 40px; min-height: 40px; }
  .cs-tab, .cs-q, .cs-cat-h, .cs-btn { min-height: 40px; box-sizing: border-box; }
  #cs-q { min-height: 40px; }
}
.cs-rname .cs-note { display: block; font-weight: 600; font-size: 11px; color: #E9B949; white-space: normal; margin-top: 2px; }
/* У панели свои подсказки (#cs-tip). Общая подсказка терминала [data-tip]::after —
   невидимая строка во всю длину описания — вылезала вправо, и панель листалась вбок. */
.cs-root [data-tip]::after { content: none !important; display: none !important; }

/* Компьютер: панель — выпадающее окно под кнопкой «Индикаторы», а не лист во всю высоту.
   График не затемняем, клик мимо окна закрывает его (подложка прозрачная). */
@media (min-width: 900px) {
  /* без подложки: график под окном живой и доступен мыши */
  .cs-root { pointer-events: none; }
  .cs-backdrop { display: none; }
  .cs-panel { pointer-events: auto; top: 58px; right: 16px; bottom: auto; max-height: 78vh; width: min(600px, calc(100vw - 40px)); border-radius: 16px;
    background: linear-gradient(rgba(18, 24, 41,.97), rgba(12, 16, 29,.97)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transform: translateY(-8px); box-shadow: 0 30px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.04); }
  .cs-root.in .cs-panel { transform: none; }
  .cs-head { position: absolute; top: 9px; right: 10px; padding: 0; z-index: 2; }
  .cs-head h2 { display: none; }
  .cs-tabs { margin: 12px 52px 2px 14px; }
  .cs-tab { padding: 7px 12px; font-size: 12.5px; }
  .cs-body { padding: 8px 14px 16px; }
  .cs-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .cs-btn.wide { width: auto; flex: 1 1 auto; padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }
  .cs-h3 { margin: 10px 0 6px; }
  .cs-row { padding: 3px 4px 3px 10px; border-radius: 10px; }
  .cs-search { margin: 10px 0 4px; }
  .cs-search .cs-input { padding-top: 7px; padding-bottom: 7px; }
  .cs-item { font-weight: 600; padding: 7px 6px 7px 8px; }
  .cs-cat-h { padding: 10px 2px 6px; }
}

/* ---------- окно настроек индикатора (рядом с шестерёнкой / карандашом) ---------- */
.cs-popbg { position: fixed; inset: 0; z-index: 209; display: none; }
.cs-popbg.on { display: block; }
.cs-pop { --y: #FFCB2E; --line: rgba(255,255,255,.1); --mut: rgba(255,255,255,.55); --in: #090C16; --c2: #141A2C;
  position: fixed; z-index: 210; display: none; flex-direction: column; min-width: 210px; width: max-content; max-width: min(92vw, 290px);
  padding: 9px 11px 11px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(#151C2F, #0E1321);
  box-shadow: 0 18px 44px rgba(0,0,0,.6); color: #f2f2f4; font-family: Manrope, system-ui, sans-serif; outline: none; box-sizing: border-box; }
.cs-pop.on { display: flex; animation: csPopIn .14s ease-out; }
@keyframes csPopIn { from { opacity: 0; transform: translateY(-4px); } }
.cs-pop * { box-sizing: border-box; }
.cs-pop-h { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.cs-pop-sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.cs-pop-h b { flex: 1; min-width: 0; font: 700 13px Manrope, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-pop-x { display: grid; place-items: center; width: 24px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--mut); cursor: pointer; }
.cs-pop-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cs-pop-x:hover { color: #ff6b6b; background: rgba(255,94,94,.12); }
.cs-pop-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.cs-pop-tabs button { flex: 1; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--c2); color: var(--mut); font: 700 12px Manrope, sans-serif; cursor: pointer; transition: color .15s, background .15s; }
.cs-pop-tabs button:hover { color: #fff; }
.cs-pop-tabs button.on { background: var(--y); border-color: var(--y); color: #14110a; }
.cs-pop-b { display: flex; flex-direction: column; gap: 8px; max-height: min(48vh, 340px); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.cs-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--mut); min-height: 28px; }
.cs-prow > span { white-space: nowrap; }
.cs-pchk { justify-content: flex-start; gap: 8px; cursor: pointer; color: #e6e6ea; }
.cs-step { display: flex; align-items: center; width: 100px; height: 28px; flex: none; border: 1px solid var(--line); border-radius: 7px; background: var(--in); padding: 0; overflow: hidden; }
.cs-step button { width: 26px; height: 26px; flex: none; border: 0; background: #161D30; color: #e6e6ea; font: 600 14px Manrope, sans-serif; cursor: pointer; padding: 0; transition: background .12s, color .12s; }
.cs-step button:hover { background: var(--y); color: #14110a; }
.cs-step input { flex: 1; min-width: 0; width: 46px; height: 26px; border: 0; background: transparent; color: #fff; text-align: center; font: 500 12px 'JetBrains Mono', monospace; outline: none; padding: 0; }
.cs-psel { height: 28px; border: 1px solid var(--line); border-radius: 7px; background: var(--in); color: #e6e6ea; font: 500 12px 'JetBrains Mono', monospace; padding: 0 4px; outline: none; cursor: pointer; flex: none; }
.cs-psel:disabled { opacity: .4; cursor: default; }
.cs-psel:focus, .cs-step:focus-within, .cs-lvin:focus { border-color: var(--y); }
.cs-pop input[type=checkbox] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--y); cursor: pointer; }
.cs-vrow { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.cs-vname { flex: 1; min-width: 64px; font-size: 12px; color: #e6e6ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-pop input[type=color] { width: 36px; height: 28px; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--in); cursor: pointer; }
.cs-pop input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cs-pop input[type=color]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.cs-pop input[type=color]::-moz-color-swatch { border: 0; border-radius: 4px; }
.cs-lvin { flex: 1; min-width: 0; width: 64px; height: 28px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--in); color: #fff; font: 500 12px 'JetBrains Mono', monospace; outline: none; }
.cs-pnote { font-size: 12px; line-height: 1.45; color: var(--mut); padding: 2px 0; max-width: 240px; }
.cs-pop-f { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.cs-pop-f button { height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--c2); color: #e6e6ea; font: 700 12px Manrope, sans-serif; cursor: pointer; padding: 0 6px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.cs-pop-f button:hover { border-color: var(--y); }
.cs-pop-f .del { color: #ff6b6b; border-color: rgba(255,94,94,.75); background: transparent; }
.cs-pop-f .del:hover { background: #D9606B; border-color: #D9606B; color: #fff; }
.cs-pop-f .y { background: var(--y); border-color: var(--y); color: #14110a; }
.cs-pop-f .y:hover { background: #ffd856; }
@media (max-width: 620px) {
  .cs-pop { max-width: min(92vw, 320px); }
  .cs-pop-f button, .cs-pop-tabs button { height: 36px; }
  .cs-step { height: 32px; } .cs-step button { height: 30px; width: 30px; }
}
@media (prefers-reduced-motion: reduce) { .cs-pop.on { animation: none; } }

/* ---------- плашки панелей осцилляторов ---------- */
.cs-chips-l { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 4; pointer-events: none; }
.cs-chip { position: absolute; left: 6px; display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 1px 3px 1px 4px; border-radius: 6px;
  background: rgba(11, 14, 25,.8); border: 1px solid rgba(255,255,255,.1); color: #ececf0; white-space: nowrap; pointer-events: none; font-family: 'JetBrains Mono', monospace; }
.cs-chip > i { width: 8px; height: 8px; border-radius: 2px; flex: none; margin: 0 2px; }
.cs-chip-n { font: 600 11px 'JetBrains Mono', monospace; letter-spacing: .2px; display: inline-flex; align-items: baseline; gap: 4px; }
.cs-chip-n em { font-style: normal; font-weight: 500; color: rgba(255,255,255,.58); }
.cs-chip-v { display: inline-flex; gap: 6px; font: 600 11px 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.cs-chip-v:empty { display: none; }
.cs-chip-v b { font-weight: 600; }
.cs-grip { position: absolute; width: 28px; height: 3px; margin: -1px 0 0 -14px; border-radius: 3px; background: rgba(255,255,255,.22); pointer-events: none; }
body[data-chart-light="1"] .cs-grip { background: rgba(0,0,0,.2); }
.cs-chip-n small { font: 600 10.5px Manrope, sans-serif; color: #E9B949; margin-left: 4px; }
.cs-chip button { pointer-events: auto; width: 19px; height: 19px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: rgba(255,255,255,.5); font: 12px/1 Manrope, system-ui, sans-serif; cursor: pointer; transition: background .12s, color .12s; }
.cs-chip button:hover { color: #FFCB2E; background: rgba(255,203,46,.14); }
.cs-chip button[data-cact=del]:hover { color: #ff6b6b; background: rgba(255,94,94,.16); }
@media (hover: none) { .cs-chip { height: 27px; } .cs-chip button { width: 23px; height: 23px; } }
body[data-chart-light="1"] .cs-chip { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.12); color: #161D30; }
body[data-chart-light="1"] .cs-chip-n em { color: rgba(0,0,0,.55); }
body[data-chart-light="1"] .cs-chip button { color: rgba(0,0,0,.5); }
/* телефон: строка активного индикатора помещается в ширину (метку прячем, имя сжимается) */
@media (max-width: 899px) {
  .cs-row { min-width: 0; }
  .cs-row .cs-tag { display: none; }
  .cs-rname { min-width: 0; }
}
