.live-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7faf8;
}

.live-price > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-price span {
  color: var(--muted);
  font-size: 9px;
}

.live-price small {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.live-price strong {
  font-size: 16px;
  letter-spacing: -.025em;
}

.chart-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chart-head span,
.chart-head small,
.chart-note {
  color: var(--muted);
  font-size: 9px;
}

.chart-head strong {
  font-size: 13px;
}

.chart-stage {
  position: relative;
  min-height: 230px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: #f7faf8;
}

#price-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
}

#chart-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

#chart-loading[hidden] {
  display: none;
}

.chart-grid {
  stroke: #dfe8e4;
  stroke-width: 1;
}

.chart-axis,
.chart-date {
  fill: var(--muted);
  font-size: 9px;
}

.chart-area {
  fill: rgba(21, 133, 101, .08);
}

.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-candle-wick {
  stroke-width: .8;
}

.chart-candle-wick-up {
  stroke: var(--green);
}

.chart-candle-wick-down {
  stroke: var(--red);
}

.chart-candle-body-up {
  fill: var(--green);
}

.chart-candle-body-down {
  fill: var(--red);
}

.chart-marker {
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.chart-marker-buy,
.chart-connector-buy {
  stroke: #c9882e;
}

.chart-marker-sell,
.chart-connector-sell {
  stroke: var(--green-dark);
}

.chart-dot-buy,
.chart-flag-buy {
  fill: #f0a54c;
}

.chart-dot-sell,
.chart-flag-sell {
  fill: var(--green-dark);
}

.chart-connector {
  stroke-width: 1.2;
}

.chart-flag-text {
  fill: #fff;
  font-size: 8px;
  font-weight: 800;
}

.chart-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.chart-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.chart-metric-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.chart-metric div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.chart-metric small {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.chart-metric strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.chart-status-badge {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.chart-net-result {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.chart-net-result small {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.chart-net-result strong {
  font-size: 11px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 2px;
}

@media (max-width: 370px) {
  .chart-card {
    padding: 14px;
  }
}
