.dashboard-panel {
  min-width: 0;
}

.dashboard-title {
  padding: 2px 16px 14px;
}

.dashboard-title h1 {
  margin: 0;
  color: #62666d;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 370px) minmax(180px, 370px) 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.chart-card {
  min-height: 245px;
  padding: 16px;
}

.large-card {
  min-height: 548px;
}

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

.chart-actions {
  color: #69707a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

/* ── Line chart ─────────────────────────────────────── */

.line-chart {
  position: relative;
  height: 420px;
  margin: 24px 6px 0;
  padding-left: 100px;
  background:
    linear-gradient(#dfe5ee 1px, transparent 1px) left 100px top 28px / calc(100% - 124px) 69px repeat-y;
}

.line-chart::after {
  content: "";
  position: absolute;
  left: 100px;
  right: 18px;
  bottom: 45px;
  border-bottom: 1px solid #87909c;
}

.price {
  position: absolute;
  left: 16px;
  color: #6e7480;
  font-size: 0.95rem;
}

.p5 { top: 20px; }
.p4 { top: 90px; }
.p3 { top: 160px; }
.p2 { top: 230px; }
.p1 { top: 300px; }
.p0 { top: 370px; }

.chart-dot {
  position: absolute;
  top: 35px;
  left: 58%;
  width: 6px;
  height: 6px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #ffffff;
}

.chart-date {
  position: absolute;
  left: 56%;
  bottom: 23px;
  color: #6e7480;
}

/* ── Bar chart ──────────────────────────────────────── */

.bar-chart {
  display: grid;
  gap: 30px;
  padding: 70px 42px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  color: #6e7480;
}

.bar-track {
  min-height: 96px;
  border-left: 1px solid #8d96a2;
  background: repeating-linear-gradient(90deg, #dfe5ee 0 1px, transparent 1px 20%);
}

.bar-fill {
  display: block;
  height: 96px;
  background: var(--blue);
}

.bar-fill.wide  { width: 84%; }
.bar-fill.short { width: 14%; }

.bar-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-left: 86px;
  color: #6e7480;
  font-size: 0.9rem;
}

/* ── Table ──────────────────────────────────────────── */

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  color: #676d75;
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555b64;
}

.brand-chip {
  width: 28px;
  height: 16px;
  border-radius: 4px;
  background: #cc3630;
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 1120px) {
  .dashboard-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .large-card {
    min-height: 460px;
  }
}

@media (max-width: 820px) {
  .line-chart {
    padding-left: 82px;
  }

  .line-chart::after {
    left: 82px;
  }

  .price {
    left: 0;
    font-size: 0.78rem;
  }

  .bar-chart {
    padding: 32px 4px 0;
  }

  .bar-row {
    grid-template-columns: 70px 1fr;
  }

  .bar-scale {
    padding-left: 70px;
    font-size: 0.72rem;
  }
}
