.dashboard-page {
  margin-top: 1rem;
}
.dashboard-copy {
  max-width: 46rem;
  color: #4b5563;
}
.dashboard-note {
  margin-top: 1.5rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.7;
}
.dashboard-note p {
  margin: 0;
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.hero-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15,23,42,0.05);
}
.hero-card--primary {
  background: linear-gradient(135deg, #ecfeff, #ccfbf1);
  color: #134e4a;
  border-color: #99f6e4;
}
.hero-card--primary p {
  color: #0f766e;
}
.hero-card--primary .hero-card__comparison {
  color: #115e59;
}
.hero-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.hero-card strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: 0.28rem;
}
.hero-card p {
  margin: 0.16rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}
.hero-card__comparison {
  font-size: 0.82rem;
  font-weight: 600;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}
.metric-card {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.metric-card--accent {
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
  border-color: #99f6e4;
}
.metric-card--accent strong {
  color: #0f766e;
}
.metric-title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #475569;
}
.metric-card strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.metric-card p {
  margin: 0.14rem 0 0;
  color: #64748b;
}
.metric-card__comparison {
  font-size: 0.8rem;
  font-weight: 600;
}
.comparison-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  margin-top: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
}
.comparison-pill__arrow {
  font-size: 0.86em;
  line-height: 1;
}
.comparison-pill--up {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}
.comparison-pill--down {
  background: #ecfdf5;
  border-color: #86efac;
  color: #15803d;
}
.comparison-pill--flat,
.comparison-pill--neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}
.chart-card {
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15,23,42,0.04);
}
.chart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.chart-heading h2 {
  margin: 0;
  font-size: 1.1rem;
}
.chart-heading span {
  color: #64748b;
  font-size: 0.9rem;
}
.chart-card canvas {
  width: 100%;
  height: 240px !important;
}
.daily-section {
  margin-bottom: 1.5rem;
}
.daily-section__heading {
  align-items: center;
}
.daily-section__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.daily-section__status {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.2;
}
.daily-section__pager {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: rgba(248,250,252,0.96);
  box-shadow: 0 10px 24px rgba(15,23,42,0.05);
}
.daily-section__nav {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: transparent;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.daily-section__nav:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}
.daily-section__nav:disabled {
  color: #94a3b8;
  cursor: default;
}
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}
.day-card {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}
.day-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.day-card__header h3 {
  margin: 0;
  font-size: 1.05rem;
}
.day-card__header span {
  color: #0f766e;
  font-weight: 600;
}
.day-card__stats {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem;
}
.day-card__stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: #475569;
}
.day-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.day-card__tags span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.85rem;
}
.dashboard-empty {
  padding: 1.25rem;
  border-radius: 18px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}
@media (max-width: 720px) {
  .dashboard-page {
    margin-top: 1.5rem;
  }
  .chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .daily-section__heading {
    align-items: flex-start;
  }
  .daily-section__meta {
    width: 100%;
    justify-content: space-between;
  }
  .daily-section__pager {
    width: 100%;
    justify-content: space-between;
  }
  .daily-section__nav {
    flex: 1;
  }
  .chart-card canvas {
    height: 220px !important;
  }
}
