/* ---------- User manual slide-out (unfolds from the left) ---------- */
/* Same pattern as CryptoPro Charts/Trader's Help-button manual — kept
   class-name-compatible so a future shared stylesheet is a drop-in. */
.manual-overlay {
  position: fixed; top: 0; bottom: 0; left: -560px; width: 540px; max-width: 92vw;
  background: #111624; border-right: 1px solid #1e2637; z-index: 1200; transition: left .2s;
  display: flex; flex-direction: column; box-shadow: 8px 0 24px rgba(0,0,0,.4);
}
.manual-overlay.open { left: 0; }
.manual-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #1e2637; flex: none; }
.manual-head > span { font-weight: 600; font-size: 14px; color: #e6e9f0; }
.manual-head > div { display: flex; gap: 8px; align-items: center; }
.manual-search {
  width: 170px; background: #0b0e14; border: 1px solid #1e2637; border-radius: 6px;
  color: #e6e9f0; padding: 6px 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12.5px;
}
.manual-search:focus { outline: none; border-color: #4cc9a4; }
.manual-close-btn {
  background: #0b0e14; border: 1px solid #1e2637; border-radius: 6px; color: #e6e9f0;
  width: 30px; height: 30px; cursor: pointer; font-size: 14px;
}
.manual-close-btn:hover { border-color: #4cc9a4; }
.manual-body { flex: 1; display: flex; min-height: 0; }
.manual-toc { width: 170px; min-width: 170px; border-right: 1px solid #1e2637; overflow-y: auto; padding: 8px; scrollbar-width: thin; }
.manual-toc-item {
  display: block; width: 100%; text-align: left; padding: 8px 9px; border-radius: 6px;
  font-size: 12.5px; color: #a7b0c2; margin-bottom: 2px; background: none; border: none;
  cursor: pointer; font-family: 'IBM Plex Sans', sans-serif;
}
.manual-toc-item:hover { background: #1a2233; color: #e6e9f0; }
.manual-toc-item.active { background: #4cc9a4; color: #0b0e14; }
.manual-empty { padding: 8px; font-size: 12px; color: #a7b0c2; }
.manual-content { flex: 1; overflow-y: auto; padding: 16px 20px; font-size: 13.5px; line-height: 1.6; color: #e6e9f0; }
.manual-content h3 { margin: 0 0 12px; font-size: 17px; }
.manual-content p { margin: 0 0 12px; color: #a7b0c2; }
.manual-content ul, .manual-content ol { margin: 0 0 12px 18px; color: #a7b0c2; }
.manual-content li { margin-bottom: 5px; }
.manual-content a { color: #4cc9a4; }
.manual-content a:hover { color: #6fe0bd; }
.manual-content code {
  background: #0b0e14; border: 1px solid #1e2637; border-radius: 4px; padding: 1px 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #e0b45c;
}
.manual-content b { color: #e6e9f0; }

@media (max-width: 620px) {
  .manual-overlay { width: 100%; max-width: 100%; left: -100%; }
  .manual-body { flex-direction: column; }
  .manual-toc { width: 100%; min-width: 0; max-height: 120px; border-right: none; border-bottom: 1px solid #1e2637; display: flex; flex-wrap: wrap; gap: 4px; }
  .manual-toc-item { width: auto; }
}
