/* Users admin — staff / doctor lists and the user form (work-area picker). */

/* ── Heading ─────────────────────────────────────────────── */

.users-heading {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.users-heading__meta {
  margin: 0;
  color: var(--ah-ink-3);
  font-size: var(--ah-text-sm);
  font-variant-numeric: tabular-nums;
}

/* Totals by role, each keyed to its avatar hue. */
.users-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.users-stats__item {
  --c: var(--ah-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.75rem;
  padding: 0 0.625rem 0 0.5rem;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-surface);
  box-shadow: 0 0 0 1px var(--ah-border), var(--ah-shadow-xs), var(--ah-inner-highlight);
  color: var(--ah-ink-3);
  font-size: var(--ah-text-sm);
  white-space: nowrap;
}

.users-stats__item::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}

.users-stats__item--field_user { --c: var(--ah-stage-segmentation); }
.users-stats__item--doctor { --c: var(--ah-stage-doctor_review); }

.users-stats__num {
  color: var(--ah-ink);
  font-family: var(--ah-mono);
  font-weight: var(--ah-weight-medium);
  font-variant-numeric: tabular-nums;
}

.users-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Staff / Doctors segmented tabs ──────────────────────── */

.users-tabs {
  --pad: 4px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 19rem;
  padding: var(--pad);
  border-radius: 12px;
  background: var(--ah-surface-3);
  box-shadow: inset 0 1px 2px rgba(10, 26, 28, 0.07), inset 0 0 0 1px rgba(10, 26, 28, 0.04);
  box-sizing: border-box;
}

/* Thumb and luminous underline slide under the active tab as users.js moves .is-active. */
.users-tabs::before,
.users-tabs::after {
  content: "";
  position: absolute;
  top: var(--pad);
  bottom: var(--pad);
  left: var(--pad);
  width: calc(50% - var(--pad));
  pointer-events: none;
  transition: transform var(--ah-dur-4) var(--ah-ease-spring);
}

.users-tabs::before {
  z-index: -1;
  border-radius: calc(12px - var(--pad));
  background: var(--ah-surface);
  box-shadow:
    0 0 0 1px rgba(13, 122, 112, 0.16),
    0 1px 2px rgba(10, 26, 28, 0.08),
    0 8px 20px -8px rgba(20, 162, 145, 0.5),
    var(--ah-inner-highlight);
}

.users-tabs::after {
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--ah-accent-bright), transparent) center bottom / 2.5rem 2px no-repeat;
  filter: drop-shadow(0 0 4px var(--ah-accent-glow));
}

.users-tabs:has(.users-tabs__tab:nth-child(2).is-active)::before,
.users-tabs:has(.users-tabs__tab:nth-child(2).is-active)::after {
  transform: translateX(100%);
}

.users-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 0;
  border-radius: calc(12px - var(--pad));
  background: transparent;
  color: var(--ah-ink-3);
  font-size: var(--ah-text-base);
  font-weight: var(--ah-weight-medium);
  cursor: pointer;
  transition: color var(--ah-dur-2), transform var(--ah-dur-2) var(--ah-ease-spring);
  -webkit-user-select: none;
  user-select: none;
}

.users-tabs__tab:hover {
  color: var(--ah-ink);
}

.users-tabs__tab:active {
  transform: scale(0.97);
}

.users-tabs__tab.is-active {
  color: var(--ah-ink);
}

.users-tabs__tab:focus-visible {
  outline: none;
  box-shadow: var(--ah-focus-ring);
}

.users-tabs__tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.users-tabs__count {
  min-width: 1.375rem;
  padding: 0 0.375rem;
  border-radius: var(--ah-radius-pill);
  background: rgba(10, 26, 28, 0.06);
  color: var(--ah-ink-3);
  font-family: var(--ah-mono);
  font-size: var(--ah-text-2xs);
  line-height: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  box-sizing: border-box;
  transition: background var(--ah-dur-2), color var(--ah-dur-2);
}

.users-tabs__tab.is-active .users-tabs__count {
  background: var(--ah-accent-soft);
  color: var(--ah-accent-ink);
}

.users-tabs__panel[hidden] {
  display: none;
}

.users-tabs__panel.is-active {
  animation: ah-fade var(--ah-dur-3) var(--ah-ease-out) both;
}

/* ── Shared list frame: the double-bezel tray ────────────── */

.user-list,
.doctor-list {
  display: grid;
  column-gap: var(--ah-space-4);
  margin: 6px;
  border: 0;
  border-radius: var(--ah-radius-lg);
  background: var(--ah-surface);
  overflow: hidden;
  box-shadow:
    0 0 0 5px var(--ah-shell-bg),
    0 0 0 6px rgba(10, 26, 28, 0.06),
    var(--ah-shadow-card);
}

.user-list {
  grid-template-columns:
    minmax(15rem, 1.3fr)
    minmax(7rem, 0.45fr)
    minmax(14rem, 1.6fr)
    max-content;
}

.doctor-list {
  grid-template-columns:
    minmax(12rem, 1.05fr)
    minmax(8.5rem, 0.95fr)
    minmax(11rem, 1.1fr)
    minmax(5.5rem, 0.65fr)
    minmax(7.5rem, 0.75fr)
    max-content;
}

.user-list__head,
.user-list__row,
.doctor-list__head,
.doctor-list__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 0 1.25rem;
}

.user-list__head,
.doctor-list__head {
  min-height: 2.5rem;
  border-bottom: 1px solid var(--ah-border);
  background: linear-gradient(180deg, #fafbfb, var(--ah-surface-2));
  color: var(--ah-ink-3);
  font-size: var(--ah-text-xs);
  font-weight: var(--ah-weight-medium);
}

.user-list__row,
.doctor-list__row {
  position: relative;
  min-height: 4rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--ah-border);
  color: var(--ah-ink);
  font-size: var(--ah-text-base);
  transition: background var(--ah-dur-2) var(--ah-ease-out), box-shadow var(--ah-dur-2) var(--ah-ease-out);
  animation: ah-rise 460ms var(--ah-ease-spring) both;
  animation-delay: 120ms;
}

.user-list__row:nth-child(3), .doctor-list__row:nth-child(3) { animation-delay: 150ms; }
.user-list__row:nth-child(4), .doctor-list__row:nth-child(4) { animation-delay: 180ms; }
.user-list__row:nth-child(5), .doctor-list__row:nth-child(5) { animation-delay: 210ms; }
.user-list__row:nth-child(6), .doctor-list__row:nth-child(6) { animation-delay: 240ms; }
.user-list__row:nth-child(n+7), .doctor-list__row:nth-child(n+7) { animation-delay: 270ms; }

.user-list__row > *,
.doctor-list__row > * {
  min-width: 0;
}

.user-list__row:last-child,
.doctor-list__row:last-child {
  border-bottom: 0;
}

/* The luminous edge, as on the case lists. */
.user-list__row:hover,
.doctor-list__row:hover {
  background: linear-gradient(90deg, rgba(20, 162, 145, 0.06), rgba(20, 162, 145, 0.015) 40%, transparent);
  box-shadow: inset 3px 0 0 var(--ah-accent);
}

.user-list__actions,
.doctor-list__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
}

.user-list__actions form,
.doctor-list__actions form {
  display: inline-flex;
  margin: 0;
}

/* ── Identity cell ───────────────────────────────────────── */

.users-avatar {
  --a: var(--ah-accent);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, color-mix(in srgb, var(--a) 50%, #fff) 0%, var(--a) 55%, color-mix(in srgb, var(--a) 70%, #000) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 12px -4px color-mix(in srgb, var(--a) 60%, transparent);
  color: #fff;
  font-size: var(--ah-text-xs);
  font-weight: var(--ah-weight-semibold);
  letter-spacing: 0.02em;
}

.users-avatar--admin {
  --a: #14a291;
}

.users-avatar--field_user {
  --a: var(--ah-stage-segmentation);
}

.users-avatar--doctor {
  --a: var(--ah-stage-doctor_review);
}

.user-list__user,
.doctor-list__name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-list__email,
.doctor-list__name-text {
  min-width: 0;
  overflow: hidden;
  color: var(--ah-ink);
  font-weight: var(--ah-weight-medium);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.users-you {
  flex-shrink: 0;
  padding: 0 0.4375rem;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 112, 0.18);
  color: var(--ah-accent-ink);
  font-size: var(--ah-text-2xs);
  font-weight: var(--ah-weight-medium);
  line-height: 1.25rem;
}

.doctor-list__role {
  min-width: 0;
}

.doctor-role-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ah-border);
  background: var(--ah-surface-2);
  color: var(--ah-ink-2);
  font-size: var(--ah-text-xs);
  font-weight: var(--ah-weight-medium);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doctor-role-chip--clinic_doctor {
  border-color: color-mix(in srgb, var(--ah-accent) 28%, var(--ah-border));
  background: var(--ah-accent-soft);
  color: var(--ah-accent-ink);
}

.doctor-role-chip--in_house_lab {
  border-color: color-mix(in srgb, #2f7cff 28%, var(--ah-border));
  background: #eef3ff;
  color: #1d4f9c;
}

.doctor-role-chip--aligner_lab {
  border-color: color-mix(in srgb, #7c3aed 28%, var(--ah-border));
  background: #f3eefe;
  color: #5b21b6;
}

.doctor-list__email {
  overflow: hidden;
  color: var(--ah-ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.doctor-list__city {
  color: var(--ah-ink-2);
}

.doctor-list__phone {
  color: var(--ah-ink-2);
  font-family: var(--ah-mono);
  font-size: var(--ah-text-sm);
  font-variant-numeric: tabular-nums;
}

/* ── Role and work areas ─────────────────────────────────── */

.users-role {
  --c: var(--ah-stage-segmentation);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.5rem;
  padding: 0 0.5625rem 0 0.5rem;
  border-radius: var(--ah-radius-pill);
  background: color-mix(in srgb, var(--c) 8%, var(--ah-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 70%, var(--ah-ink));
  font-size: var(--ah-text-xs);
  font-weight: var(--ah-weight-medium);
  white-space: nowrap;
}

.users-role--admin {
  --c: var(--ah-accent);
}

.users-role__dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 20%, transparent);
}

.users-role--admin .users-role__dot {
  background: var(--ah-accent-bright);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.25), 0 0 6px var(--ah-accent-glow);
}

.user-list__areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3125rem;
  padding-block: 0.125rem;
}

.user-list__areas .work-area-chip {
  background: var(--ah-surface);
  box-shadow: inset 0 0 0 1px var(--ah-border);
}

.user-list__all-areas {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.375rem;
  padding: 0 0.5625rem;
  border-radius: var(--ah-radius-pill);
  background:
    linear-gradient(90deg, rgba(45, 212, 191, 0.14), rgba(45, 212, 191, 0.04)),
    var(--ah-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 112, 0.16);
  color: var(--ah-accent-ink);
  font-size: var(--ah-text-xs);
  font-weight: var(--ah-weight-medium);
  white-space: nowrap;
}

.user-list__more {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.4375rem;
  border-radius: var(--ah-radius-pill);
  background: var(--ah-surface-2);
  box-shadow: inset 0 0 0 1px var(--ah-border);
  color: var(--ah-ink-3);
  font-family: var(--ah-mono);
  font-size: var(--ah-text-2xs);
  font-weight: var(--ah-weight-medium);
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.user-list__no-areas {
  color: var(--ah-ink-4);
  font-size: var(--ah-text-sm);
}

.users-empty {
  padding-block: 3.5rem;
}

/* ── User form ───────────────────────────────────────────── */

.users-form-page .case-page__header {
  margin-bottom: var(--ah-space-6);
}

.users-form-page .page-crumbs__current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-form {
  gap: 1.25rem;
}

.user-form .user-form__section {
  margin: 6px;
  padding: 1.5rem 1.75rem 1.75rem;
  border: 0;
  border-radius: var(--ah-radius-lg);
  background:
    radial-gradient(28rem 10rem at 0% 0%, rgba(45, 212, 191, 0.06), transparent 70%),
    var(--ah-surface);
  box-shadow:
    0 0 0 5px var(--ah-shell-bg),
    0 0 0 6px rgba(10, 26, 28, 0.06),
    var(--ah-shadow-card);
}

.user-form .case-form__section + .case-form__section {
  margin-top: 6px;
}

.user-form__section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.user-form__section-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, var(--ah-accent-soft));
  box-shadow: 0 0 0 1px rgba(13, 122, 112, 0.14), 0 8px 18px -10px rgba(13, 122, 112, 0.5), var(--ah-inner-highlight);
  color: var(--ah-accent);
}

.user-form .user-form__section .case-form__title {
  margin: 0.0625rem 0 0;
  padding: 0;
  border: 0;
  font-size: var(--ah-text-md);
}

.user-form__desc,
.user-form__hint {
  max-width: 36rem;
  margin: 0.1875rem 0 0;
  color: var(--ah-ink-3);
  font-size: var(--ah-text-sm);
  line-height: 1.5;
}

.user-form .case-form__field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.user-form .case-form__field select {
  min-height: 2.75rem;
}

.user-form__areas[hidden] {
  display: none;
}

.user-form__areas:not([hidden]) {
  animation: ah-rise var(--ah-dur-4) var(--ah-ease-spring) both;
}

/* Work-area picker: stage-tinted selectable pills; the real checkbox covers each one. */
.user-form__area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.625rem;
}

.user-form__area {
  --c: var(--ah-accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0 0.75rem 0 0.875rem;
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  background: var(--ah-surface);
  box-shadow: var(--ah-shadow-xs), var(--ah-inner-highlight);
  color: var(--ah-ink-2);
  font-size: var(--ah-text-base);
  cursor: pointer;
  box-sizing: border-box;
  transition:
    border-color var(--ah-dur-2),
    background var(--ah-dur-2),
    color var(--ah-dur-2),
    box-shadow var(--ah-dur-3) var(--ah-ease-out),
    transform var(--ah-dur-3) var(--ah-ease-spring);
  -webkit-user-select: none;
  user-select: none;
}

.user-form__area:has(.work-area-dot--fresh) { --c: var(--ah-stage-fresh); }
.user-form__area:has(.work-area-dot--segmentation) { --c: var(--ah-stage-segmentation); }
.user-form__area:has(.work-area-dot--planning) { --c: var(--ah-stage-planning); }
.user-form__area:has(.work-area-dot--quality_review) { --c: var(--ah-stage-quality_review); }
.user-form__area:has(.work-area-dot--ortho_review) { --c: var(--ah-stage-ortho_review); }
.user-form__area:has(.work-area-dot--doctor_review) { --c: var(--ah-stage-doctor_review); }
.user-form__area:has(.work-area-dot--modification) { --c: var(--ah-stage-modification); }
.user-form__area:has(.work-area-dot--approved) { --c: var(--ah-stage-approved); }

.user-form__area input[type="checkbox"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.user-form__area .work-area-dot {
  position: relative;
  width: 0.5625rem;
  height: 0.5625rem;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 14%, transparent);
  transition: transform var(--ah-dur-3) var(--ah-ease-spring), box-shadow var(--ah-dur-3) var(--ah-ease-out);
}

.user-form__area-label {
  flex: 1 1 auto;
  min-width: 0;
}

.user-form__check {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--ah-border-strong);
  border-radius: 50%;
  background: var(--ah-surface);
  box-sizing: border-box;
  transition: background var(--ah-dur-2), border-color var(--ah-dur-2), box-shadow var(--ah-dur-2);
}

.user-form__check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--ah-dur-1), transform var(--ah-dur-3) var(--ah-ease-spring);
}

.user-form__area:hover {
  border-color: var(--ah-border-strong);
  color: var(--ah-ink);
  box-shadow: 0 6px 16px -10px rgba(10, 26, 28, 0.3), var(--ah-inner-highlight);
}

.user-form__area:active {
  transform: scale(0.97);
}

.user-form__area:has(input:focus-visible) {
  border-color: var(--ah-accent);
  box-shadow: var(--ah-focus-ring);
}

.user-form__area:has(input:checked) {
  border-color: color-mix(in srgb, var(--c) 55%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c) 11%, transparent), color-mix(in srgb, var(--c) 3%, transparent)),
    var(--ah-surface);
  color: var(--ah-ink);
  font-weight: var(--ah-weight-medium);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--c) 12%, transparent),
    0 10px 22px -14px color-mix(in srgb, var(--c) 70%, transparent),
    var(--ah-inner-highlight);
  animation: users-pill-pop var(--ah-dur-4) var(--ah-ease-spring);
}

.user-form__area:has(input:checked) .work-area-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent), 0 0 8px color-mix(in srgb, var(--c) 60%, transparent);
}

.user-form__area:has(input:checked) .user-form__check {
  border-color: transparent;
  background: var(--c);
  box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--c) 70%, transparent);
}

.user-form__area:has(input:checked) .user-form__check::after {
  opacity: 1;
  transform: scale(1);
}

.user-form__area:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes users-pill-pop {
  35% { transform: scale(1.035); }
}

/* Sticky frosted action bar. */
.user-form__actions {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  margin: 0.5rem 6px 0;
  padding: 0.625rem 0.625rem 0.625rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow:
    0 0 0 1px rgba(10, 26, 28, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 40px -16px rgba(10, 26, 28, 0.3);
}

.user-form__actions-note {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ah-ink-3);
  font-size: var(--ah-text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-form__actions-note strong {
  color: var(--ah-ink-2);
  font-weight: var(--ah-weight-medium);
}

.user-form__actions .case-btn {
  height: 2.625rem;
  padding-inline: 1.25rem;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .users-tabs {
    max-width: none;
  }

  .users-tabs__tab {
    min-height: 2.75rem;
  }

  .user-list,
  .doctor-list {
    display: block;
  }

  .user-list__head,
  .doctor-list__head {
    display: none;
  }

  .user-list__row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "user user actions"
      "role areas areas";
    gap: 0.625rem 0.5rem;
    padding: 0.875rem 1rem;
  }

  .user-list__user { grid-area: user; }
  .user-list__role { grid-area: role; align-self: start; margin-left: 3rem; }
  .user-list__areas { grid-area: areas; padding: 0; }
  .user-list__actions { grid-area: actions; }

  .doctor-list__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas:
      "name name actions"
      "role role role"
      "email email email"
      "city phone phone";
    gap: 0.5rem 1rem;
    padding: 0.875rem 1rem;
  }

  .doctor-list__name { grid-area: name; }
  .doctor-list__role { grid-area: role; padding-left: 3rem; }
  .doctor-list__email { grid-area: email; }
  .doctor-list__city { grid-area: city; }
  .doctor-list__phone { grid-area: phone; }
  .doctor-list__actions { grid-area: actions; }

  .doctor-list__email,
  .doctor-list__city,
  .doctor-list__phone {
    font-size: var(--ah-text-sm);
  }

  .doctor-list__email,
  .doctor-list__city {
    padding-left: 3rem;
  }

  .doctor-list__city::before,
  .doctor-list__phone::before {
    display: block;
    margin-bottom: 0.125rem;
    color: var(--ah-ink-3);
    font-family: var(--ah-font);
    font-size: var(--ah-text-xs);
  }

  .doctor-list__city::before { content: "City"; }
  .doctor-list__phone::before { content: "Phone"; }

  .user-list__actions .case-action,
  .doctor-list__actions .case-action {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 640px) {
  .user-form .user-form__section {
    padding: 1.25rem 1rem;
  }

  .user-form__section-header {
    margin-bottom: 1.25rem;
  }

  .user-form__area-grid {
    grid-template-columns: 1fr;
  }

  .user-form__actions {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding: 0.5rem;
  }

  .user-form__actions-note {
    display: none;
  }

  .user-form__actions > .case-btn {
    flex: 1 1 0;
    height: 2.75rem;
  }
}
