.card-price { position: relative; padding-bottom: 26px; }
.chart-resize-handle {
  position: absolute;
  right: 5px;
  bottom: 2px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 32px;
  height: 30px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 11px;
  background: #2b2c32;
  color: #d1d1d8;
  font: inherit;
  font-size: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.18);
  cursor: nwse-resize;
  touch-action: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.chart-resize-label { font-size: 9px; }
.chart-resize-handle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chart-resize-handle:hover,
.chart-resize-handle:focus-visible,
.chart-layout-resizing .chart-resize-handle { color: #fff; background: #3b3c44; border-color: rgba(255,255,255,0.3); }
.chart-resize-handle:focus-visible { outline: 1px solid #96969f; outline-offset: 2px; }
.chart-layout-resizing { cursor: nwse-resize; user-select: none; }
.chart-layout-resizing .charts-column canvas:not(.chart-interaction-layer) { width: 100% !important; }
.chart-layout-resizing .chart-interaction-layer { visibility: hidden; }
.card-price .drawing-status { right: 95px; }
#main-panel[data-chart-layout] #price-chart { height: var(--price-chart-height) !important; min-height: var(--price-chart-height); max-height: var(--price-chart-height); }
#main-panel[data-chart-layout] #rsi-chart { height: var(--rsi-chart-height) !important; min-height: var(--rsi-chart-height); max-height: var(--rsi-chart-height); }
#main-panel[data-chart-layout] #ema-chart { height: var(--ema-chart-height) !important; min-height: var(--ema-chart-height); max-height: var(--ema-chart-height); }
#main-panel[data-chart-layout] #macd-chart { height: var(--macd-chart-height) !important; min-height: var(--macd-chart-height); max-height: var(--macd-chart-height); }
@media (min-width: 901px) {
  #main-panel[data-chart-layout] { width: var(--chart-panel-width); max-width: none; flex-shrink: 0; grid-template-columns: var(--chart-columns); }
  #main-panel[data-chart-layout] .side-column { zoom: var(--side-scale); min-width: 0; }
  #main-panel[data-chart-layout] .side-column :is(.reasons-list, .premium-text, .premium-list) { overflow-wrap: break-word; }
}
@media (pointer: coarse) { .chart-resize-handle { min-width: 38px; height: 34px; } }
@media (max-width: 900px) {
  .charts-column > .card { padding: 8px 4px 10px; }
  .charts-column > .card-price { padding-bottom: 52px; }
  .card-price .card-header { margin-bottom: 6px; }
  .card-price > .chart-resize-handle { min-width: 72px; height: 44px; bottom: 4px; right: 8px; cursor: ns-resize; }
  .chart-resize-label { font-size: 11px; }
  .chart-layout-resizing .card-price > .chart-resize-handle { transform: scale(1.04); }
  .card-price > .chart-resize-handle { transition: transform 150ms ease, background-color 150ms ease; }
  .chart-side-resize-handle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chart-resize-handle { transition: none; } }

.bottom-side-card { position: relative; }
.chart-side-resize-handle {
  left: -9px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  min-width: 18px;
  width: 18px;
  height: 36px;
  padding: 2px;
}
.chart-side-resize-handle svg { width: 12px; height: 24px; }
@media (pointer: coarse) {
  .chart-side-resize-handle { left: -12px; min-width: 24px; width: 24px; height: 44px; }
}
