.decision-chart-snapshots {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.compact-title-row h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.compact-summary {
  margin-top: 6px;
  font-size: 13px;
}

.decision-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.home-chart-card {
  padding: clamp(7px, 1vw, 10px);
  gap: 8px;
}

.home-chart-head {
  align-items: start;
}

.home-chart-head p {
  font-size: 12px;
}

.home-chart-head h3 {
  font-size: 20px;
}

.home-chart-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.home-mini-chart {
  position: relative;
  min-height: 220px;
}

.home-mini-chart.home-live-chart-ready {
  overflow: hidden;
  background: #0d1217;
}

.home-live-chart-host {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

.home-live-canvas-host {
  contain: strict;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.home-live-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.home-live-chart-host > div,
.home-live-chart-host canvas {
  max-width: 100%;
}

.home-live-chart-ready .tv-lightweight-charts {
  width: 100% !important;
  height: 100% !important;
}

.fallback-chart-frame {
  --axis-rail-width: clamp(70px, 10vw, 96px);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--axis-rail-width);
  overflow: hidden;
  background: #0d1217;
}

.fallback-candle-chart {
  position: relative;
  grid-column: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fallback-axis-rail {
  position: relative;
  grid-column: 2;
  min-width: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.fallback-axis-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.fallback-price-label,
.fallback-level-label {
  position: absolute;
  top: var(--label-y, 50%);
  transform: translateY(-50%);
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.fallback-price-label {
  left: 2px;
  right: 2px;
  color: rgba(170, 179, 189, 0.78);
  font-size: clamp(10px, 1.8vw, 14px);
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.fallback-level-label {
  left: 0;
  right: 1px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 3px 0 2px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  background: #f2b94c;
  color: #061016;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: clamp(11px, 2.1vw, 16px);
  font-weight: 900;
  line-height: 1;
  text-align: left;
}

.home-review-button {
  width: 100%;
  min-height: 38px;
}

.decision-chart-empty {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

@media (min-width: 720px) {
  .home-mini-chart {
    min-height: 300px;
  }
}

@media (min-width: 920px) {
  .home-mini-chart {
    min-height: min(58vh, 760px);
  }
}

@media (max-width: 420px) {
  .fallback-chart-frame {
    --axis-rail-width: clamp(66px, 18vw, 82px);
  }

  .fallback-level-label {
    min-height: 26px;
    padding: 0 2px;
    font-size: 11px;
  }

  .fallback-price-label {
    left: 2px;
    right: 2px;
    font-size: 10px;
  }
}

@media (orientation: landscape) {
  .home-mini-chart {
    min-height: max(280px, calc(100svh - 190px));
  }

  .fallback-chart-frame {
    --axis-rail-width: clamp(72px, 7vw, 98px);
  }
}
