@media (min-width: 700px) {
  body.coach-hub .hub-wrap {
    max-width: 1500px;
  }
}
body.hub-logged-in header.hero { display: none; }
/* ---------- Client notes on the coach summary (all screen sizes) ---------- */
.coach-notes-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #8a8073;
  margin: 1.2rem 0 0.5rem;
}
.coach-note-card {
  background: #faf7f2;
  border: 1px solid #eee6da;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem;
}
.coach-note-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.coach-note-card-name {
  font-weight: 700;
  color: #3f3550;
  font-size: 0.95rem;
}
.coach-note-set-label {
  font-size: 0.8rem;
  color: #8a8073;
  margin-top: 0.5rem;
}
.coach-note-set-text {
  font-size: 0.9rem;
  color: #4b3f5c;
  line-height: 1.4;
}

/* Pin button and the floating tray are hidden on phones */
.coach-note-pin-btn { display: none; }
#note-bubble-container { display: none; }

/* PR badges: desktop only. Delete this one line to show them on phones too. */
body.coach-hub #summary-pr-badges { display: none; }

/* ---------- Desktop (wide screens) ---------- */
@media (min-width: 900px) {
  body.coach-hub #summary-pr-badges { display: block; }

  #summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  #summary-notes-col .coach-notes-heading { margin-top: 0.2rem; }

  .coach-note-pin-btn {
    display: inline-block;
    background: #c6b7e2;
    color: #3d2f52;
    border: none;
    border-radius: 14px;
    padding: 3px 12px;
    font-size: 0.78rem;
    cursor: pointer;
  }

  #note-bubble-container {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 260px;
    z-index: 900;
  }
  .note-tray {
    background: #faf7f2;
    border: 1px solid #c6b7e2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(60, 45, 80, 0.18);
  }
  .note-tray-head {
    background: #ddd2eb;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #3f3550;
    font-size: 0.8rem;
  }
  .note-tray-head button {
    background: none;
    border: none;
    cursor: pointer;
    color: #4b3f5c;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 5px;
  }
  .note-tray-body { max-height: 50vh; overflow-y: auto; }
  .note-tray-entry {
    position: relative;
    padding: 8px 26px 8px 10px;
    border-bottom: 1px solid #eee6da;
  }
  .note-tray-entry:last-child { border-bottom: none; }
  .note-tray-entry-name { font-weight: 700; color: #3f3550; font-size: 0.8rem; }
  .note-tray-entry-line { font-size: 0.8rem; color: #4b3f5c; line-height: 1.4; }
  .note-tray-entry-remove {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #8a8073;
    font-size: 1rem;
    line-height: 1;
  }
}
@media (min-width: 900px) {
  body.coach-hub #workout-summary-view {
    max-width: none;
    width: 100%;
    padding: 1.75rem 2rem;
  }

  body.coach-hub #summary-layout {
    grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
    gap: 2rem;
  }
}