/* Dashboard (ENG-28, ENG-29): the journey log, newest day first. */

.section-title {
  margin: 28px 0 12px;
  font-size: 1.5rem;
}

.journey-days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 40rem;
}

.journey-day {
  padding: 14px 16px;
  background: var(--panel);
  border: var(--line) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.journey-date {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.journey-items {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.journey-items li[data-kind='story']::marker { color: var(--tone-stories); }
.journey-items li[data-kind='cards']::marker { color: var(--tone-cards); }
.journey-items li[data-kind='quiz']::marker { color: var(--tone-quiz); }

/* Progress summary and charts (ENG-29). */

.progress-overview {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat {
  display: grid;
  gap: 2px;
  padding: 12px;
  background: var(--panel);
  border: var(--line) solid var(--edge);
  border-radius: var(--radius);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}

.stat-label {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.bank-progress {
  display: grid;
  gap: 6px;
}

.bank-progress progress {
  width: 100%;
  height: 14px;
  appearance: none;
  border: 2px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  overflow: hidden;
}

.bank-progress progress::-webkit-progress-bar { background: var(--panel); }
.bank-progress progress::-webkit-progress-value { background: var(--tone-cards); border-radius: 999px; }
.bank-progress progress::-moz-progress-bar { background: var(--tone-cards); border-radius: 999px; }

.chart-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .chart-grid { grid-template-columns: 1fr 1fr; }
}

.chart {
  margin: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: var(--line) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.chart-title {
  margin: 0;
  font-size: 1.3rem;
}

.chart-summary {
  margin: 4px 0 10px;
  color: var(--ink-muted);
}

.chart-box {
  position: relative;
  height: 220px;
}

.chart-box[data-horizontal='true'] { height: 190px; }

.chart-table { margin-top: 10px; }

.chart-table summary {
  cursor: pointer;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  font-weight: 700;
}

.chart-table table {
  border-collapse: collapse;
  min-width: 12rem;
}

.chart-table th,
.chart-table td {
  padding: 4px 12px 4px 0;
  text-align: left;
}

.word-chips {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.word-chips li {
  padding: 4px 12px;
  border: 2px solid var(--edge);
  border-radius: 999px;
  font-weight: 700;
}
