.symbol-nav {
  position: fixed;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: calc(100vw - 24px);
}

.chart-symbol-nav-spacer {
  height: 56px;
}

.symbol-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.symbol-nav__toggle-icon {
  width: 14px;
  height: 14px;
}

.symbol-nav__items {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: min(760px, calc(100vw - 100px));
  opacity: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}

.symbol-nav__items::-webkit-scrollbar {
  display: none;
}

.symbol-nav--collapsed .symbol-nav__items {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
}

.symbol-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.symbol-tab__code {
  font-size: 12px;
  font-weight: 700;
}

.symbol-tab__label {
  font-size: 10px;
  color: #9ca3af;
}

.symbol-tab--active {
  background: #8b7dbe;
  border-color: #8b7dbe;
  color: #ffffff;
}

.symbol-tab--active .symbol-tab__label {
  color: #ece5f7;
}

.chart-price-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.chart-price-header__price {
  font-size: 28px;
  font-weight: 700;
}

.chart-price-header__change {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.chart-price-header__change--up {
  color: #16a34a;
}

.chart-price-header__change--down {
  color: #dc2626;
}

.chart-price-header__icon {
  width: 16px;
  height: 16px;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.timeframe-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}

.chart-zoom-controls {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.chart-zoom-button {
  width: 30px;
  height: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.chart-zoom-button:hover {
  background: #f3f4f6;
}

.timeframe-button {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.timeframe-button--active {
  background: #f3f0fa;
  border-color: #8b7dbe;
  color: #8b7dbe;
}

.chart-canvas {
  margin-bottom: 24px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.candlestick-chart-row {
  display: flex;
  align-items: stretch;
}

.candlestick-chart-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.candlestick-chart {
  display: block;
  max-width: none;
}

.candlestick-chart-axis {
  flex-shrink: 0;
  display: block;
}

.chart-position-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.chart-position-row--selected {
  border-color: #8b7dbe;
  box-shadow: 0 0 0 1px #8b7dbe inset;
}

.chart-positions__title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 20px 0 4px;
}

.chart-positions__title:first-of-type {
  margin-top: 0;
}

.chart-positions__hint {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 10px;
}

.chart-positions__empty {
  color: #9ca3af;
  font-size: 14px;
}
