/* Progress (Profile section, results line) and Train view. Owner: brooktype-dc. */

/* ---------- Progress ---------- */

.pg-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.pg-tile { padding: 12px 14px; border-radius: 16px; background: var(--mist); display: grid; gap: 2px; align-content: start; }
.pg-tile b { font-size: 1.5rem; font-weight: 600; color: var(--sky); font-variant-numeric: tabular-nums; line-height: 1.1; }
.pg-tile span { font-size: 0.8rem; color: var(--ink-soft); }
.pg-tile small { font-size: 0.76rem; color: var(--ink-soft); margin-top: 4px; }
.pg-tile.up small { color: var(--leaf); font-weight: 500; }

/* One column a day; the height is that day's usual speed. */
.pg-days { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 120px; }
.pg-days li { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-width: 0; }
.pg-days li i { align-self: end; display: block; border-radius: 6px 6px 2px 2px; background: var(--sky); min-height: 0; }
.pg-days li.empty i { height: 2px !important; background: var(--ink-faint); opacity: 0.5; border-radius: 2px; }
.pg-days li.today i { background: var(--sky-light); }
.pg-days li span { font-size: 0.72rem; color: var(--ink-soft); text-align: center; }
.pg-days li.today span { color: var(--ink); font-weight: 600; }

.pg-line { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--mist); font-size: 0.95rem; }
.pg-line.ahead { border-left: 3px solid var(--leaf); }

@media (max-width: 900px) { .pg-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pg-tiles { grid-template-columns: repeat(2, 1fr); } .pg-days { gap: 3px; } }

/* ---------- Train ---------- */

.tr-head h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 600; }
.tr-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tr-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--pane-edge); background: var(--field); }
.tr-card.done { background: var(--mist); }
.tr-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky); color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr-card.done .tr-num { background: var(--leaf); }
.tr-what h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.tr-what p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; max-width: 62ch; }
.tr-what .tr-meta { margin-top: 6px; font-size: 0.8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tr-foot { margin-top: 18px; }

.tr-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 16px; background: var(--mist); }
.tr-next p { margin: 0; font-size: 0.95rem; }

@media (max-width: 560px) {
  .tr-card { grid-template-columns: auto 1fr; }
  .tr-card button { grid-column: 1 / -1; justify-self: start; }
}
