  /* PLUGIN: Бабло — нижняя панель */
  .bablo-tab-dot {
    display: none; margin-left: 5px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--amber); vertical-align: middle;
  }
  .bablo-tab-dot.show { display: inline-block; }

  .bablo-panel-left {
    flex: 0 0 240px; display: flex; flex-direction: column; gap: 6px;
    padding: 8px 10px; overflow-y: auto; min-width: 0;
  }
  .bablo-panel-mid {
    flex: 1.1; display: flex; flex-direction: column; min-width: 0;
    padding: 8px 10px; overflow: hidden;
  }
  .bablo-panel-right {
    flex: 1; display: flex; flex-direction: column; min-width: 0;
    padding: 8px 10px; overflow: hidden;
  }
  .bablo-vdivider { width: 1px; background: var(--border); flex-shrink: 0; }

  .bablo-power-card {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
    padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s;
  }
  .bablo-power-card:hover { border-color: var(--amber); background: var(--bg3); }
  .bablo-power-card.on {
    border-color: var(--amber); background: rgba(255, 193, 7, .08);
  }
  .bablo-power-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .bablo-power-title { font-size: 11px; font-weight: 700; color: var(--amber); }
  .bablo-power-sub { font-size: 9px; color: var(--text2); margin-top: 3px; line-height: 1.35; }

  .bablo-check {
    display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text1);
    cursor: pointer; user-select: none; padding: 0 2px;
  }
  .bablo-check input { accent-color: var(--amber); cursor: pointer; }

  .bablo-mode-block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
  .rangebot-scope-head {
    display: flex; align-items: center; gap: 6px;
  }
  .rangebot-scope-help-btn {
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; padding: 0;
    cursor: pointer; font-size: 9px; font-weight: 700; line-height: 1;
    color: var(--text2); background: var(--bg3); border: 1px solid var(--border);
    transition: all .15s;
  }
  .rangebot-scope-help-btn:hover,
  .rangebot-scope-help-btn.on {
    border-color: var(--amber); color: var(--amber); background: rgba(255, 193, 7, .1);
  }
  .rangebot-scope-help {
    font-size: 9px; line-height: 1.45; color: var(--text1);
    padding: 6px 8px; background: var(--bg2); border: 1px solid var(--border);
    border-radius: 4px;
  }
  .rangebot-scope-help.hidden { display: none; }
  .rangebot-scope-help p { margin: 0 0 5px; }
  .rangebot-scope-help p:last-child { margin-bottom: 0; }
  .rangebot-scope-help-extra { color: var(--text2); font-size: 8px; margin-top: 4px !important; }
  .bablo-lbl {
    font-size: 9px; color: var(--text2); text-transform: uppercase;
    letter-spacing: .6px; font-weight: 600;
  }
  .bablo-mode-seg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  }
  .bablo-mode-seg.seg-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .bablo-mode-btn {
    font-family: var(--font); font-size: 9px; padding: 5px 4px;
    border: 1px solid var(--border); border-radius: 4px;
    background: var(--bg2); color: var(--text2); cursor: pointer;
    transition: all .12s; text-align: center;
  }
  .bablo-mode-btn:hover { color: var(--text0); border-color: var(--border2); }
  .bablo-mode-btn.active {
    color: var(--amber); border-color: var(--amber);
    background: rgba(255, 193, 7, .1); font-weight: 700;
  }

  .bablo-mode-desc {
    font-size: 9px; color: var(--text2); line-height: 1.45; margin: 0;
    padding: 4px 6px; background: var(--bg2); border-radius: 4px;
    border-left: 2px solid rgba(255, 193, 7, .35);
  }
  .bablo-disclaimer {
    font-size: 8px; color: var(--text2); margin: 0; line-height: 1.35; opacity: .85;
  }

  .bablo-col-head {
    font-size: 9px; color: var(--text2); text-transform: uppercase;
    letter-spacing: .6px; font-weight: 600; margin-bottom: 6px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex-shrink: 0;
  }
  .bablo-symbol-tag {
    font-size: 9px; color: var(--amber); text-transform: none; letter-spacing: 0;
    font-weight: 700;
  }
  .bablo-col-count {
    background: var(--bg3); color: var(--text1); border-radius: 8px;
    padding: 0 6px; font-size: 9px; font-weight: 700;
  }

  .bablo-setup-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .bablo-setup-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .bablo-setup-side { font-size: 14px; font-weight: 800; letter-spacing: .5px; }
  .bablo-setup-pat { font-size: 11px; color: var(--text0); font-weight: 600; }
  .bablo-setup-rr {
    font-size: 9px; color: var(--amber); background: rgba(255, 193, 7, .12);
    padding: 2px 6px; border-radius: 4px; font-weight: 700;
  }
  .bablo-setup-levels {
    display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 10px; color: var(--text2);
  }
  .bablo-setup-levels b { color: var(--text0); font-weight: 600; }

  .bablo-sig-list {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  }
  .bablo-sig-row {
    display: grid; grid-template-columns: 18px 1fr auto auto; gap: 6px; align-items: center;
    font-size: 9px; padding: 4px 6px; border-radius: 3px;
    background: var(--bg2); border: 1px solid transparent;
  }
  .bablo-sig-row:hover { border-color: var(--border); }
  .bablo-sig-side { font-weight: 800; text-align: center; }
  .bablo-sig-pat { color: var(--text1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bablo-sig-price { color: var(--text0); font-weight: 600; font-variant-numeric: tabular-nums; }
  .bablo-sig-time { color: var(--text2); font-variant-numeric: tabular-nums; }

  .bablo-empty {
    font-size: 10px; color: var(--text2); text-align: center; padding: 12px 8px; line-height: 1.45;
  }
  .bablo-tf-warn {
    font-size: 9px; color: var(--amber); background: rgba(255, 193, 7, .08);
    border: 1px solid rgba(255, 193, 7, .25); border-radius: 4px;
    padding: 4px 8px; margin-bottom: 6px; line-height: 1.4;
  }

  /* RANGE BOT */
  .rangebot-tf-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  }
  .rangebot-tf-chk {
    display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--text2);
    padding: 3px 5px; border: 1px solid var(--border); border-radius: 3px;
    cursor: pointer; user-select: none;
  }
  .rangebot-tf-chk.on { color: var(--amber); border-color: rgba(255,193,7,.4); background: rgba(255,193,7,.06); }
  .rangebot-tf-chk input { accent-color: var(--amber); margin: 0; cursor: pointer; }

  .brkbot-params {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5px;
  }
  .brkbot-param {
    display: flex; flex-direction: column; gap: 3px; font-size: 8.5px;
    color: var(--text2); text-transform: uppercase; letter-spacing: .03em;
  }
  .brkbot-param input, .brkbot-param select {
    width: 100%; box-sizing: border-box; background: var(--bg2);
    border: 1px solid var(--border); border-radius: 3px; color: var(--text0);
    font-size: 10px; padding: 3px 5px; outline: none;
  }
  .brkbot-param input:focus, .brkbot-param select:focus { border-color: var(--amber); }

  .brkbot-param-title { display: inline-flex; align-items: center; gap: 4px; }
  .brkbot-q {
    display: inline-flex; align-items: center; justify-content: center;
    width: 12px; height: 12px; border-radius: 50%;
    border: 1px solid var(--border); color: var(--text2);
    font-size: 8px; font-weight: 700; line-height: 1; cursor: help;
    position: relative; text-transform: none; flex: 0 0 auto;
  }
  .brkbot-q:hover, .brkbot-q:focus { color: var(--amber); border-color: var(--amber); outline: none; }
  .brkbot-q[data-tip]:hover::after, .brkbot-q[data-tip]:focus::after {
    content: attr(data-tip);
    position: absolute; left: 0; bottom: 150%;
    width: 158px; background: var(--bg0, #0c0c0c); color: var(--text0);
    border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px;
    font-size: 9px; font-weight: 400; line-height: 1.4;
    text-transform: none; letter-spacing: 0; white-space: normal;
    z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none;
  }
  /* right-column params: anchor tooltip to the right edge so it stays inside the 240px panel */
  .brkbot-params .brkbot-param:nth-child(even) .brkbot-q[data-tip]:hover::after,
  .brkbot-params .brkbot-param:nth-child(even) .brkbot-q[data-tip]:focus::after { left: auto; right: 0; }

  .rangebot-hit-list {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px;
  }
  .rangebot-hit-row {
    display: grid;
    grid-template-columns: 52px 32px 72px 1fr 88px 64px 44px;
    gap: 6px; align-items: center; font-size: 9px; padding: 4px 6px;
    border-radius: 3px; background: var(--bg2); border: 1px solid transparent;
    cursor: pointer;
  }
  .rangebot-hit-row:hover { border-color: var(--amber); background: var(--bg3); }
  .rangebot-hit-sym { font-weight: 800; color: var(--text0); }
  .rangebot-hit-tf { color: var(--amber); font-weight: 700; text-transform: uppercase; }
  .rangebot-hit-prios { display: flex; gap: 2px; flex-wrap: wrap; }
  .rangebot-prio {
    font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 3px;
    line-height: 1.3;
  }
  .rangebot-prio.p1 { background: rgba(38,166,154,.15); color: #26a69a; }
  .rangebot-prio.p2 { background: rgba(33,150,243,.15); color: #2196f3; }
  .rangebot-prio.p3 { background: rgba(255,152,0,.18); color: #ff9800; }
  .rangebot-prio.p4 { background: rgba(255,193,7,.22); color: #ffc107; }
  .rangebot-hit-range { color: var(--text1); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rangebot-hit-meta { color: var(--text2); font-variant-numeric: tabular-nums; }
  .rangebot-hit-st { color: var(--text1); font-weight: 600; }
  .rangebot-hit-chg { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

  /* RANGE BOT — справка в левой колонке */
  .rangebot-help-wrap {
    margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 3px; flex-shrink: 0;
  }
  .rb-faq-item {
    border: 1px solid var(--border); border-radius: 4px; background: var(--bg2);
    font-size: 9px;
  }
  .rb-faq-item summary {
    cursor: pointer; padding: 4px 6px; list-style: none;
    display: flex; align-items: center; gap: 5px; color: var(--text1);
    user-select: none;
  }
  .rb-faq-item summary::-webkit-details-marker { display: none; }
  .rb-faq-item summary:hover { color: var(--text0); }
  .rb-faq-item p {
    margin: 0; padding: 0 6px 6px; line-height: 1.45; color: var(--text2); font-size: 9px;
  }
  .rangebot-more-btn {
    font-family: var(--font); font-size: 9px; padding: 5px 8px; margin-top: 2px;
    border: 1px solid var(--border); border-radius: 4px; background: var(--bg3);
    color: var(--amber); cursor: pointer; text-align: left; font-weight: 600;
  }
  .rangebot-more-btn:hover { border-color: var(--amber); background: rgba(255,193,7,.08); }
  .rangebot-more-panel {
    margin-top: 4px; border: 1px solid var(--border); border-radius: 4px;
    background: var(--bg2); overflow: hidden;
  }
  .rangebot-more-panel.hidden { display: none; }
  .rangebot-help-tabs {
    display: flex; border-bottom: 1px solid var(--border);
  }
  .rangebot-help-tab {
    flex: 1; font-family: var(--font); font-size: 8px; padding: 5px 2px;
    border: none; background: transparent; color: var(--text2); cursor: pointer;
    border-right: 1px solid var(--border);
  }
  .rangebot-help-tab:last-child { border-right: none; }
  .rangebot-help-tab:hover { color: var(--text0); background: var(--bg3); }
  .rangebot-help-tab.active {
    color: var(--amber); background: rgba(255,193,7,.08); font-weight: 700;
  }
  .rangebot-help-pane {
    display: none; padding: 6px 8px; font-size: 9px; line-height: 1.45; color: var(--text1);
  }
  .rangebot-help-pane.active { display: block; }
  .rangebot-help-pane ul, .rangebot-help-pane ol {
    margin: 0; padding-left: 14px;
  }

  /* Backtest Lab */
  .btlab-panel-left { min-width: 240px; max-width: 280px; }
  .btlab-select {
    width: 100%; font-family: var(--font); font-size: 10px;
    background: var(--bg2); color: var(--text0); border: 1px solid var(--border);
    padding: 4px 6px; border-radius: 3px;
  }
  .btlab-run-btn {
    width: 100%; margin-top: 8px; padding: 8px 12px;
    font-family: var(--font); font-size: 10px; font-weight: 700;
    background: var(--amber); color: #111; border: none; border-radius: 4px; cursor: pointer;
  }
  .btlab-run-btn:hover { filter: brightness(1.08); }
  .btlab-run-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .btlab-metrics { padding: 8px 10px; }
  .btlab-metric-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  }
  .btlab-metric {
    background: var(--bg2); border: 1px solid var(--border); border-radius: 4px;
    padding: 6px 8px; display: flex; flex-direction: column; gap: 2px;
  }
  .btlab-metric-lbl { font-size: 8px; color: var(--text2); text-transform: uppercase; }
  .btlab-metric-val { font-size: 12px; font-weight: 700; color: var(--text0); }
  .btlab-trades { padding: 0 10px 10px; max-height: 220px; overflow-y: auto; }
  .btlab-trades-head, .btlab-trade-row {
    display: grid; grid-template-columns: 110px 40px 1fr 70px 50px;
    gap: 6px; font-size: 9px; padding: 4px 0; border-bottom: 1px solid var(--border);
    align-items: center;
  }
  .btlab-trades-head { color: var(--text2); font-weight: 700; position: sticky; top: 0; background: var(--bg1); }
  .btlab-trade-reason { color: var(--text2); font-size: 8px; text-transform: uppercase; }
  .btlab-equity-chart { height: 130px; margin: 4px 10px 0; border: 1px solid var(--border); border-radius: 4px; }
  .btlab-section-title { font-size: 9px; font-weight: 700; color: var(--amber); padding: 6px 10px 2px; text-transform: uppercase; }
  .btlab-run-secondary { margin-top: 4px; background: var(--bg3); color: var(--text0); border: 1px solid var(--border); }
  .btlab-run-secondary:hover { background: var(--bg2); filter: none; }
  .btlab-wf-panel, .btlab-batch-panel { padding: 0 10px 6px; max-height: 140px; overflow-y: auto; font-size: 9px; }
  .btlab-wf-fold { padding: 4px 0; border-bottom: 1px solid var(--border); line-height: 1.4; }
  .btlab-wf-rank { padding: 2px 0; color: var(--text1); }
  .btlab-apply-btn {
    margin-top: 6px; padding: 4px 8px; font-size: 9px; font-family: var(--font);
    background: rgba(255,193,7,.15); color: var(--amber); border: 1px solid var(--amber); border-radius: 3px; cursor: pointer;
  }
  .btlab-batch-head, .btlab-batch-row {
    display: grid; grid-template-columns: 60px 40px 40px 40px 50px 50px;
    gap: 4px; font-size: 9px; padding: 3px 0; border-bottom: 1px solid var(--border);
  }
  .btlab-batch-head { color: var(--text2); font-weight: 700; }
  .btlab-batch-row { cursor: pointer; }
  .btlab-batch-row:hover { background: var(--bg3); }
  .btlab-panel-right { overflow-y: auto; max-height: 100%; }
  .rangebot-help-pane li { margin-bottom: 4px; }
  .rangebot-help-pane li:last-child { margin-bottom: 0; }
  .rangebot-help-pane code { font-size: 8px; color: var(--text2); }
