/* Chart Toolbar — quick toolbar, drag handle, toolbar buttons, width menu, timezone items, expand button */

.chart-wrapper-quick-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 6;
  display: none;
  pointer-events: auto;
}

.chart-wrapper-quick-toolbar.visible {
  display: block;
}

.chart-wrapper-quick-toolbar-shell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 27, 34, 0.96);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.chart-wrapper-quick-drag-handle {
  width: 28px;
  height: 38px;
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-auto-rows: 4px;
  place-content: center;
  gap: 4px 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: grab;
  padding: 0;
}

.chart-wrapper-quick-drag-handle:active {
  cursor: grabbing;
}

.chart-wrapper-quick-drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.chart-wrapper-quick-drag-handle:hover span {
  background: rgba(255, 255, 255, 0.62);
}

.chart-wrapper-quick-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2f7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.chart-wrapper-quick-btn.active {
  border-color: rgba(231, 180, 77, 0.52);
  background: rgba(231, 180, 77, 0.14);
  color: #ffe3a1;
}

.chart-wrapper-quick-btn.danger {
  color: #ffd4de;
}

.chart-wrapper-quick-width-shell {
  position: relative;
}

.chart-wrapper-quick-width-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  gap: 8px;
  min-width: 128px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 19, 26, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}

.chart-wrapper-quick-width-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2f7;
  cursor: pointer;
}

.chart-wrapper-quick-width-btn.active {
  border-color: rgba(78, 140, 255, 0.55);
  background: rgba(78, 140, 255, 0.14);
}

.chart-wrapper-quick-width-btn span {
  display: block;
  width: 34px;
  height: max(2px, var(--quick-line-width, 1px));
  border-radius: 999px;
  background: #eef2f7;
}

.chart-wrapper-quick-width-btn strong {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 700;
}

.chart-timezone-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #eef2f7;
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.chart-timezone-item span:last-child {
  color: var(--muted);
  font-size: 11px;
}

.chart-timezone-item:hover,

.chart-timezone-item.active {
  background: rgba(255, 255, 255, 0.07);
}

.chart-expand-btn {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2f7;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.chart-expand-btn:hover,

.chart-expand-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.chart-expand-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
