/* Goal pills, count row and coach cards, shared by the homepage and the
   client desk's browse lists. */
  .home-chips, .home-tools, .home-grid { --text-muted: #5B6475; --border: #E5E7EF; }
  .home-chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
  .home-chip { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
  .home-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
  .home-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 14px; }
  .home-count { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
  .home-count:empty { display: none; }
  .home-verified { min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
  .home-verified[aria-pressed="true"] { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
  .home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .home-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 18px; }
  .home-card__photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #E9E7FB; color: var(--primary-900); font-size: 34px; font-weight: 800; text-decoration: none; }
  .home-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
  .home-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0; }
  .home-card__name { display: block; font-size: 18px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
  .home-card__badge { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: 11px; font-weight: 700; vertical-align: middle; }
  .home-card__meta { font-size: 13.5px; color: var(--text-muted); }
  .home-card__hourly { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
  .home-card__hourly b { color: var(--text); }
  .home-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .home-card__tags span { padding: 5px 10px; border-radius: 999px; background: var(--primary-50); color: var(--primary-900); font-size: 12.5px; font-weight: 600; }
  .home-card__result { padding-top: 10px; border-top: 1px solid var(--border); font-size: 13.5px; }
  .home-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; }
  .home-card__price { font-size: 17px; font-weight: 800; min-width: 0; }
  .home-card__amount { white-space: nowrap; }
  .home-card__price small { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); }
  .home-card__labels { display: flex; flex-wrap: wrap; gap: 6px; }
  .home-card__label { padding: 3px 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; }
  .home-card__label--soft { background: var(--primary-50); color: var(--primary-900); }
  .home-card__label--status { background: #ECFDF5; color: #166534; }
  .home-card__label--limit { background: #FEF3C7; color: #92400E; }
  .home-card__note { font-size: 13px; color: var(--text-muted); }
  .home-card__view { border: 0; font-family: inherit; cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
  .home-card__view:hover { background: var(--primary-900); text-decoration: none; }
  .home-state { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: var(--text-muted); background: #fff; border: 1px solid var(--border); border-radius: 18px; }
  .home-more { display: block; margin: 22px auto 0; padding: 13px 26px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; }
  .home-more[hidden] { display: none; }
  /* The client desk underlines links; a card's name is not styled as one. */
  .home-card__name, .home-card__name:hover, .home-card__photo:hover { text-decoration: none; }

  @media (max-width: 900px) {
    .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  /* Loading placeholders. */
  .home-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, #ECEDF4 25%, #F5F6FB 45%, #ECEDF4 65%); background-size: 300% 100%; animation: home-skel 1.4s ease-in-out infinite; }
  .home-card__photo.home-skel { border-radius: 0; }
  .home-skel--name { width: 55%; height: 20px; }
  .home-skel--meta { width: 40%; height: 14px; }
  .home-skel--tag { width: 70%; height: 26px; border-radius: 999px; }
  .home-skel--price { width: 45%; height: 34px; }
  .home-skel--button { width: 76px; height: 44px; border-radius: 12px; }
  .home-card--skel .home-card__foot { padding-top: 26px; }
  @keyframes home-skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @media (prefers-reduced-motion: reduce) { .home-skel { animation: none; } }
  .home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Live session cards: the coach card, led by the time. */
  .session-grid .home-card__title { font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
  .session-grid .home-card__meta svg { width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }
  .session-grid .home-card__foot { padding-top: 4px; }
  /* One line of the coach's description, opening in place. */
  .session-grid .session-about { margin: 0; padding: 0; border-radius: 0; background: transparent; }
  .session-grid .session-about summary { padding-top: 6px; line-height: 1.5; }
  .session-grid .session-about summary { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; list-style: none; cursor: pointer; font-size: 13.5px; }
  .session-grid .session-about summary::-webkit-details-marker { display: none; }
  .session-grid .session-about summary::after { content: 'More'; flex: 0 0 auto; margin-left: auto; font-weight: 700; color: var(--primary); }
  .session-grid .session-about[open] summary::after { content: 'Less'; }
  .session-grid .session-about-label { display: none; }
  .session-grid .session-about-preview { display: block; flex: 1; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-muted); }
  /* Open, the same line grows into the full text, with Less beside it. */
  .session-grid .session-about[open] .session-about-preview { display: block; white-space: pre-wrap; overflow: visible; overflow-wrap: anywhere; }
  .session-grid .session-about-body { display: none; }
  /* Nothing more to show: the text already fits. */
  .session-grid .session-about.is-short summary { cursor: default; pointer-events: none; }
  .session-grid .session-about.is-short summary::after { content: none; }
  @media (min-width: 621px) {
    .session-ui-page .session-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  }
  /* The signed-in Browse tab sits beside the sidebar, so it fits cards to its
     own width, not the window's. */
  @media (min-width: 621px) {
    #tab-browse .home-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  }
  /* Phones: slim rows, so several coaches fit on one screen. */
  @media (max-width: 620px) {
    .home-grid { grid-template-columns: 1fr; gap: 12px; }
    .home-card { flex-direction: row; }
    /* A square thumbnail shows the whole profile photo; a tall strip cut faces off. */
    .home-card__photo { width: 96px; height: 96px; flex: 0 0 96px; aspect-ratio: 1; margin: 12px 0 0 12px; border-radius: 14px; font-size: 24px; }
    .home-card__body { padding: 12px; gap: 7px; }
    .home-card__name { font-size: 16px; }
    .home-card__result { display: none; }
    .home-card__tags span:nth-child(n+3) { display: none; }
    .home-card__price { font-size: 15px; }
    .home-card__view { height: 40px; padding: 0 14px; }
    .home-card__photo.home-skel { border-radius: 14px; }
    .home-card--skel .home-card__foot { padding-top: 4px; }
    .home-skel--button { height: 40px; width: 64px; }
  }
