/* MASTER VORTEX — chart-type selector (chart-types.js).
   Chart-style menu: an icon+label button in
   the chart header (left of the timeframe group) and a dark
   dropdown with grouped entries, a check mark on the active
   type, and small numeric settings for Renko / Point & figure. */

.ct-root { position: relative; flex: none; }

.ct-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 11px;
  background: #0a1322; color: #e3ecf7;
  border: 1px solid #1d2c42; border-radius: 10px;
  font: 600 12.5px "Segoe UI", Arial, sans-serif;
  cursor: pointer; white-space: nowrap;
}
.ct-btn:hover { border-color: #2e4a73; background: #0d1830; }
.ct-btn .ct-btn-label { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }

.ct-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  width: 238px; max-height: min(70vh, 560px); overflow-y: auto;
  background: rgba(10, 19, 34, 0.98);
  border: 1px solid #1d2c42; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  padding: 6px; z-index: 80;
  scrollbar-width: thin; scrollbar-color: #22364f transparent;
}

.ct-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  background: transparent; border: none; border-radius: 8px;
  color: #cfe0f2; font: 500 13px "Segoe UI", Arial, sans-serif;
  cursor: pointer; text-align: left;
}
.ct-item:hover { background: #12233f; }
.ct-item.active { color: #ffffff; background: rgba(30, 227, 8, 0.08); }
.ct-item-name { flex: 1 1 auto; }
.ct-item-note { color: #63768f; font-size: 10.5px; font-weight:400; }
.ct-check { width: 16px; flex: none; text-align: center; color: #1ee308; font-weight:400; }

.ct-sep { height: 1px; margin: 5px 8px; background: #1d2c42; }

.ct-settings {
  border-top: 1px solid #1d2c42; margin-top: 5px; padding: 9px 10px 5px;
}
.ct-set-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 7px;
  color: #8fa8c4; font: 600 11.5px "Segoe UI", Arial, sans-serif;
}
.ct-set-row input {
  width: 96px; height: 28px; padding: 0 8px;
  background: #060d18; color: #e3ecf7;
  border: 1px solid #1d2c42; border-radius: 7px;
  font: 600 12px "Segoe UI", Arial, sans-serif;
}
.ct-set-row input:focus { outline: none; border-color: #2e4a73; }
.ct-set-note { color: #63768f; font: 600 11.5px "Segoe UI", Arial, sans-serif; padding-bottom: 4px; }

@media (max-width: 720px) {
  .ct-btn .ct-btn-label { display: none; }
  .ct-menu { width: 218px; }
}
