/* Setup step 5: invitations, the invitation form and the readiness list beneath them. */
#akashic-health-records-patient-portal-root .first-clinician {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#akashic-health-records-patient-portal-root .first-clinician__muted,
#akashic-health-records-patient-portal-root .first-clinician__hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .first-clinician__hint {
  font-size: 12px;
}

#akashic-health-records-patient-portal-root .first-clinician__failed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
}

#akashic-health-records-patient-portal-root .first-clinician__detail {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .first-clinician__actions,
#akashic-health-records-patient-portal-root .first-clinician__form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

#akashic-health-records-patient-portal-root .first-clinician__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The intro sits 14px above the first field in the frame. */
#akashic-health-records-patient-portal-root .first-clinician__form > .first-clinician__muted:first-child {
  margin-bottom: 2px;
}

#akashic-health-records-patient-portal-root .first-clinician__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

#akashic-health-records-patient-portal-root .first-clinician__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* "An invitation does not assign a seat." - the sentence the step turns on. */
#akashic-health-records-patient-portal-root .first-clinician__seat-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--sunken);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  /* 16px from its neighbours, as the frame draws it; the form's own gap supplies 12. */
  margin-block: 4px;
}

/* Flex gaps do not collapse the way the frame's margins do: 16px below the intro, and none at the top. */
#akashic-health-records-patient-portal-root .first-clinician__muted:first-child + .first-clinician__seat-note {
  margin-top: 2px;
}
#akashic-health-records-patient-portal-root .first-clinician__seat-note:first-child {
  margin-top: 0;
}

#akashic-health-records-patient-portal-root .first-clinician__seat-note span {
  font-size: 12px;
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .first-clinician__field > label {
  font-size: 13px;
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .first-clinician__field > input,
#akashic-health-records-patient-portal-root .first-clinician__field > select {
  height: 42px;
  padding: 8px 11px;
  font-size: 13px;
}

/* Room for the native chevron. */
#akashic-health-records-patient-portal-root .first-clinician__field > select {
  padding-right: 2.5rem;
}

#akashic-health-records-patient-portal-root .first-clinician__switch {
  margin: 0;
}

/* Sheet mode switches are links in the approved frame. */
#akashic-health-records-patient-portal-root .first-clinician__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .first-clinician__link:hover:not(:disabled) {
  text-decoration: underline;
}

#akashic-health-records-patient-portal-root .first-clinician__readiness {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 639px) {
  #akashic-health-records-patient-portal-root .first-clinician__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

#akashic-health-records-patient-portal-root .first-clinician__seat-option {
  padding: 13px 14px;
  border: 1px dashed var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
}

#akashic-health-records-patient-portal-root .first-clinician__form [data-slot="select-trigger"] {
  width: 100%;
  height: 42px;
  padding: 8px 11px;
  font-size: 13px;
}

/* The shared select keeps the panel field rhythm: its label reads like the other field labels. */
#akashic-health-records-patient-portal-root .first-clinician__form [data-slot="select-control-label"] {
  font-size: 13px;
  color: var(--ink-strong);
}

/* The approved footer puts Back as a plain link at its left edge. */
#akashic-health-records-patient-portal-root .first-clinician__back {
  margin-right: auto;
}
#akashic-health-records-patient-portal-root .first-clinician__days {
  display: flex;
  gap: 6px;
}
#akashic-health-records-patient-portal-root .first-clinician__day {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}
#akashic-health-records-patient-portal-root .first-clinician__day[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
#akashic-health-records-patient-portal-root .first-clinician__day:disabled {
  opacity: 0.5;
}
