/* Two Tone Running v12.1 — Athlete Record weekly plan calendar */
.coach-week-calendar-wrap{margin-top:14px}
.coach-week-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.coach-week-cal-day{min-width:0;border:1px solid #dfe7ef;border-radius:14px;background:#fff;overflow:hidden}
.coach-week-cal-day.today{border-color:#1674d1;box-shadow:0 0 0 2px rgba(22,116,209,.08)}
.coach-week-cal-day.is-unavailable{background:#fafbfc}
.coach-week-cal-date{padding:8px 9px;border-bottom:1px solid #edf1f5;display:flex;align-items:baseline;gap:5px;min-height:42px}
.coach-week-cal-date small{font-size:9px;font-weight:900;text-transform:uppercase;color:#76869a;letter-spacing:.04em}
.coach-week-cal-date strong{font-size:18px;color:#18324d}
.coach-week-cal-date em{margin-left:auto;font-style:normal;font-size:8px;font-weight:900;color:#1268dd;background:#eaf3ff;border-radius:999px;padding:3px 5px}
.coach-week-cal-events{padding:7px;display:grid;gap:6px;min-height:88px;align-content:start}
.coach-week-cal-event{appearance:none;width:100%;min-width:0;border:1px solid #dfe7ef;border-radius:9px;background:#f8fafc;padding:7px;text-align:left;color:#243b54;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:5px;row-gap:2px;cursor:default;font:inherit}
button.coach-week-cal-event{cursor:pointer}
.coach-week-cal-event span{grid-row:1/3;font-size:11px;line-height:1.2}
.coach-week-cal-event b{min-width:0;font-size:9px;line-height:1.2;overflow-wrap:anywhere}
.coach-week-cal-event small{font-size:8px;line-height:1.2;color:#687b90;overflow-wrap:anywhere}
.coach-week-cal-event.planned{border-left:3px solid #2377ce;background:#f4f9ff}
.coach-week-cal-event.completed{border-left:3px solid #28925a;background:#f3fbf6}
.coach-week-cal-event.changed{border-left:3px solid #c88916;background:#fff9ec}
.coach-week-cal-event.unavailable{border-left:3px solid #8996a5;background:#f2f4f6}
.coach-week-cal-event.goal{border-left:3px solid #6c59b5;background:#f7f5ff}
.coach-week-cal-rest{display:block;padding:8px 4px;color:#98a4b1;font-size:9px;text-align:center}
.coach-week-calendar-legend{display:flex;flex-wrap:wrap;gap:8px 13px;margin-top:9px;color:#687b90;font-size:9px;font-weight:800}
.coach-week-calendar-legend span{display:inline-flex;align-items:center;gap:5px}
.coach-week-calendar-legend i{width:8px;height:8px;border-radius:50%;background:#2377ce}
.coach-week-calendar-legend i.completed{background:#28925a}.coach-week-calendar-legend i.changed{background:#c88916}.coach-week-calendar-legend i.unavailable{background:#8996a5}.coach-week-calendar-legend i.goal{background:#6c59b5}
.coach-week-plan-list{margin-top:16px}.coach-week-plan-list>.eyebrow{margin-bottom:7px}
button.coach-planned-session-row{width:100%;font:inherit;color:inherit;text-align:left;background:#fff;cursor:pointer}


/* v12.2 — Keep the Athlete Record weekly plan calendar visually consistent
   between mobile and desktop. Desktop now uses the same two-column week layout
   rather than squeezing all seven days into one long row. */

.coach-athlete-week-head{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:14px !important;
}

.coach-athlete-week-head > div:first-child{
  width:100%;
}

.coach-athlete-week-tabs{
  width:100% !important;
  max-width:650px !important;
  align-self:flex-start !important;
}

.coach-week-calendar-wrap{
  width:100%;
}

.coach-week-calendar{
  width:100%;
  max-width:650px;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:7px !important;
}

.coach-week-cal-events{
  min-height:64px;
}

.coach-week-cal-day:last-child{
  grid-column:1 / -1;
}

.coach-week-cal-event{
  min-height:44px;
}

.coach-week-plan-list{
  width:100%;
  max-width:650px;
}

.coach-athlete-week-card{
  overflow:hidden;
}

/* Keep it fluid on smaller phones exactly as before. */
@media(max-width:640px){
  .coach-athlete-week-tabs,
  .coach-week-calendar,
  .coach-week-plan-list{
    max-width:none !important;
  }
}
