@layer components {
  .week-label { padding: 0 8px; font-size: 15px; font-weight: 600; white-space: nowrap; }

  .avail__scroll { overflow-x: auto; }
  .avail__grid {
    min-width: 680px;
    display: grid;
    grid-template-columns: 56px repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
  .avail__day { padding-bottom: 6px; text-align: center; font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
  .avail__hour { padding-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
  .avail__form { display: contents; }

  .avail__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--soft);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  button.avail__cell { cursor: pointer; }
  button.avail__cell:hover { border-color: var(--muted); }
  .avail__cell--open { background: #D5EFEA; border-color: #9BD3C8; color: var(--action-dark); }
  .avail__cell--booked { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .avail__cell--past { opacity: 0.45; }

  .avail__legend { padding-top: 16px; font-size: 13px; color: var(--body); }
  .avail__legend > span { display: inline-flex; align-items: center; gap: 8px; }
  .avail__swatch { display: inline-block; width: 14px; height: 14px; min-height: 0; padding: 0; border-radius: 4px; }

  /* Mentee agenda: day and time pickers */
  .day-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 68px;
    min-height: 72px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-option);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
  }
  .day-pick:hover { border-color: var(--ink); color: var(--ink); }
  .day-pick[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .day-pick__dow { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
  .day-pick__num { font-size: 20px; font-weight: 700; line-height: 1.2; }
  .day-pick__mon { font-size: 11px; }

  .session-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line-faint); }
  .session-row__number { width: 22px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
  .session-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .session-row__title { font-size: 15px; font-weight: 600; }
  .session-row__when { font-size: 13px; color: var(--muted); }
}

@layer components {
  /* A list that starts right at the top of its card has no line above the first row. */
  .card--flush > .session-row:first-child { border-top: 0; }
}
