/* Replay, скрінер, порівняння, сітка графіків, гарячі клавіші */
#chartTools { flex-wrap: wrap; }
.compare-wrap { display: flex; align-items: center; gap: 2px; }
#compareSym { width: 9.5rem; }
#compareSym.active { outline: 1px solid var(--accent); }
.replay-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 4px 8px; border-top: 1px solid var(--border); background: var(--panel2);
  font-family: var(--mono); font-size: 12px;
}
.replay-bar[hidden] { display: none !important; }
.replay-bar input[type=date] { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
.replay-status, .replay-stats { margin-left: 4px; }
.screener-dlg { width: min(960px, 96vw); max-height: 90vh; }
.screener-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0; }
.screener-filters label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.screener-filters input { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px; width: 8rem; }
.screener-table-wrap { max-height: 60vh; }
.screener-table tr { cursor: pointer; }
.screener-table tr:hover { background: var(--hover); }
.layout-menu { min-width: 220px; }
.layout-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.layout-menu button[data-grid], .layout-item button:first-child {
  display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  padding: 6px 8px; cursor: pointer;
}
.layout-menu button:hover { background: var(--hover); }
#histInfo .src { color: var(--muted); margin-left: 8px; }
kbd { font-family: var(--mono); background: var(--hover); border: 1px solid var(--border); border-radius: 3px; padding: 0 5px; font-size: 11px; }

#chartWrap.replay-on #chart { inset: 0 0 59px; }
.replay-bar { position: absolute; left: 0; right: 0; bottom: 23px; z-index: 6; }
