/* P20 mesocycle panel. Same restrained glass surface as the other workout
 * panels: one accent (amber), one warning tone (rose) for the deload week, no
 * new palette and no decorative gradients. */
.meso-card {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid rgba(190, 231, 235, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  color: #f3f7f8;
}

.meso-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

.meso-head p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #9fb2b8;
}

.meso-weeks {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.meso-week {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(190, 231, 235, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  font-size: 12px;
}

.meso-week.is-current {
  border-color: rgba(255, 138, 0, .45);
  background: rgba(255, 138, 0, .08);
}

.meso-week.is-deload {
  border-color: rgba(251, 113, 133, .28);
}

.meso-week.is-deload .meso-week-role {
  color: #ffb4c1;
}

.meso-week-number {
  flex: 0 0 auto;
  font-weight: 800;
  color: #f3f7f8;
}

.meso-week-role {
  flex: 1 1 auto;
  min-width: 0;
  color: #9fb2b8;
}

.meso-week-days {
  flex: 0 0 auto;
  color: #6f848b;
  font-variant-numeric: tabular-nums;
}

.meso-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.meso-action {
  flex: 1 1 160px;
  min-height: 46px;
}

.meso-action[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.meso-hint {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #7d9299;
}

.meso-note {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  min-height: 18px;
  color: #ffad32;
}

.meso-note[data-tone="busy"] { color: #9fb2b8; }
.meso-note[data-tone="error"] { color: #ffb4c1; }

/* The status line stays in the markup so actions can report progress, but it
 * must not reserve height while it is empty: an empty note used to leave a
 * dead band under the card's last line. */
.meso-note:empty {
  min-height: 0;
  margin: 0;
}

/* Empty state. Before a program exists the panel is one centred invitation:
 * badge, title, body, one obvious action, one quiet hint. Children are centred
 * on the card's own centre line, so the block stays balanced on a narrow phone
 * instead of collapsing into a left-aligned column. */
.meso-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 0 0;
  text-align: center;
}

.meso-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 138, 0, .28);
  border-radius: 14px;
  background: rgba(255, 138, 0, .1);
  color: #ffad32;
  font-size: 17px;
  line-height: 1;
}

.meso-empty .meso-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meso-empty .meso-head h3 {
  font-size: 17px;
  line-height: 1.25;
}

.meso-empty .meso-head p {
  margin: 8px 0 0;
  max-width: 32ch;
}

.meso-empty .meso-action {
  flex: 0 0 auto;
  width: min(224px, 100%);
  margin: 18px 0 0;
}

.meso-empty .meso-hint {
  margin: 12px 0 0;
  max-width: 34ch;
}

.meso-empty .meso-note {
  text-align: center;
}

@media (max-width: 420px) {
  .meso-card { padding: 14px; border-radius: 16px; }
  .meso-action { flex: 1 1 100%; }
  .meso-empty .meso-action { width: 100%; }
}
