.user-card { font-size:12px; color:var(--ink); }
.user-card .reference-journal-heading { margin-bottom:28px; }
.user-card .user-secondary { color:var(--muted); font-weight:400; }
.user-return { border:0; background:transparent; font:inherit; font-size:24px; padding:0; cursor:pointer; color:inherit; }
.user-card-footer { display:flex; justify-content:flex-end; margin-top:20px; }
.user-actions,.user-security-actions { display:flex; gap:16px; align-items:center; }
.user-card .btn { height:32px; min-height:32px; padding:0 12px; font-size:12px; font-weight:400; }
.user-name-editor { display:grid; gap:12px; max-width:420px; margin-bottom:16px; }
.user-name-editor h3 { margin:0; }
.user-name-editor label { display:grid; gap:4px; }
.user-name-editor input { width:100%; min-width:0; }
:is([data-user-phone-host],[data-user-birthday-host]) form[hidden] { display:none; }
:is([data-user-phone-host],[data-user-birthday-host]) fieldset { display:grid; gap:8px; min-width:0; }
.user-card-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-bottom:20px; }
.user-panel { padding:16px; border:1px solid var(--line); border-radius:12px; min-width:0; background:white; }
.user-panel>h2 { margin:0 0 16px; font-size:14px; line-height:20px; font-weight:600; }
.user-card>.user-panel { margin-bottom:20px; }
.user-access-levels { align-self:start; }
.user-card-row { display:flex; align-items:flex-start; gap:32px; margin-bottom:12px; min-height:24px; }
.user-card-row:last-child { margin-bottom:0; }
.user-label { flex:0 0 144px; line-height:14px; margin-top:6px; overflow-wrap:anywhere; }
.user-value { display:inline-block; max-width:100%; border:1px solid #d4d9d7; background:#f1f3f1; border-radius:20px; padding:3px 12px; line-height:18px; font-size:12px; font-weight:400; overflow-wrap:anywhere; }
.user-personal-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; }
.user-security-actions { flex-wrap:wrap; margin-top:16px; }
.user-card-switch { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.user-read-switch { position:relative; flex:0 0 40px; width:40px; height:20px; padding:0; border:0; border-radius:12px; background:#d8dfdb; opacity:.65; }
.user-read-switch[aria-checked=true] { background:var(--primary); }
.user-read-switch>span { position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:white; }
.user-read-switch[aria-checked=true]>span { transform:translateX(20px); }
.user-restriction-help { position:relative; display:inline-grid; place-items:center; margin-left:8px; width:16px; height:16px; border:1px solid var(--primary); border-radius:50%; color:var(--primary); cursor:help; }
.user-restriction-help>[role=tooltip] { display:none; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%); width:280px; padding:8px 12px; background:white; color:var(--ink); border:1px solid var(--line); border-radius:5px; box-shadow:0 3px 12px #233b4020; font-size:12px; line-height:18px; z-index:40; }
.user-restriction-help:hover>[role=tooltip],.user-restriction-help:focus>[role=tooltip] { display:block; }

/* Same readonly fields, with room for values on tablet/phone screens. */
@media screen and (max-width:1000px) {
  .user-card-pair,.user-personal-columns { grid-template-columns:minmax(0,1fr); gap:16px; }
  .user-actions { flex-wrap:wrap; }
  .user-value { min-width:0; box-sizing:border-box; }
}
@media screen and (max-width:600px) {
  .user-card-row { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; }
  .user-label { flex-basis:auto; margin-top:0; }
  .user-value { justify-self:start; }
}
[data-user-doctor-category-host] > [hidden] {
  display: none;
}
