/* Settings: each section is a small uppercase label, a lede, then its rows in one card. The shared
   .ak-page-body stack spaces the blocks 12px apart; a second section keeps its 32px break. */
#akashic-health-records-patient-portal-root .patient-settings__section + .patient-settings__section {
  margin-top: 20px;
}

#akashic-health-records-patient-portal-root .patient-settings__lede {
  margin: 0;
}

#akashic-health-records-patient-portal-root .patient-settings__prefs {
  max-width: 640px;
  margin: 0;
  list-style: none;
}

#akashic-health-records-patient-portal-root .patient-settings__pref {
  padding: 12px 0;
}

#akashic-health-records-patient-portal-root .patient-settings__pref + .patient-settings__pref {
  border-top: 1px solid var(--line);
}

#akashic-health-records-patient-portal-root .patient-settings__row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

#akashic-health-records-patient-portal-root .patient-settings__row > [data-slot="checkbox"] {
  flex: none;
  margin-top: 2px;
}

#akashic-health-records-patient-portal-root .patient-settings__ban {
  flex: none;
  margin-top: 2px;
  color: var(--danger);
}

#akashic-health-records-patient-portal-root .patient-settings__text {
  flex: 1;
  min-width: 0;
}

#akashic-health-records-patient-portal-root .patient-settings__toggle {
  display: block;
  cursor: pointer;
}

#akashic-health-records-patient-portal-root .patient-settings__name {
  display: block;
}

#akashic-health-records-patient-portal-root .patient-settings__soon {
  margin-left: 2px;
  font-size: 11px;
  font-weight: var(--ak-body-weight);
  color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .patient-settings__desc {
  display: block;
  margin: 2px 0 0;
}

#akashic-health-records-patient-portal-root .patient-settings__blocked {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--amber-ink);
}

/* Where a channel's messages go: under a hairline, no wider than the drawing's 330px column. */
#akashic-health-records-patient-portal-root .patient-settings__sub {
  max-width: 330px;
  margin: 12px 0 2px 28px;
  padding: 12px 0 0 2px;
  border-top: 1px solid var(--line-soft);
}

#akashic-health-records-patient-portal-root .patient-settings__sub .patient-settings__subh {
  display: block;
  font-size: 14px;
  color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .patient-settings__hint {
  margin: 2px 0 0;
}

#akashic-health-records-patient-portal-root .patient-settings__ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

#akashic-health-records-patient-portal-root .patient-settings__ctl .patient-settings__select {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* The drawing colours this --success; at 11.5px that fails AA, so the deeper sage carries it. */
#akashic-health-records-patient-portal-root .patient-settings__stat {
  margin: 8px 0 0;
}

/* The consent gate reads flush left, as drawn; only the close button's side keeps its clearance. */
#akashic-health-records-patient-portal-root [data-slot="dialog-content"].patient-settings-consent [data-slot="dialog-header"] [data-slot="dialog-title"] {
  padding-left: 0;
}

#akashic-health-records-patient-portal-root .patient-settings-consent__text {
  margin: 0;
  font-size: 13px;
  font-weight: var(--ak-body-weight);
  line-height: 1.55;
  color: var(--ink-strong);
}
