.session-actions,.session-identity { display:flex; align-items:center; gap:8px; min-width:0; }
.session-actions { flex-wrap:wrap; }
.session-identity #who { min-width:0; overflow-wrap:anywhere; }
#accountButton { flex-shrink:0; }
#accountButton { display:inline-flex; align-items:center; min-height:40px; padding:10px 14px; font:700 14px/1.25 Arial,sans-serif; }
#adminLink { margin:0; }
#logout { background:var(--o); color:#25170e; }
#logout:hover { background:#ed6200; }

.account-dialog { width:min(710px,94vw); padding:24px; }
.account-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.account-heading h2 { color:var(--p); font-size:24px; }
.account-dialog .account-feedback { margin:10px 0; padding:8px 10px; color:var(--p); background:#f4edf7; border-radius:8px; }
.account-feedback:empty { display:none; }
.account-dialog .account-feedback.error { color:#982938; background:#fff0f3; }
.account-identity { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0; }
.account-identity div { background:#f8f4fa; padding:10px; border-radius:8px; }
.account-identity dt { margin-bottom:4px; color:#65536f; font-size:13px; }
.account-identity dd { margin:0; font-weight:bold; overflow-wrap:anywhere; }
.account-permissions { margin-bottom:14px; border:1px solid var(--line); border-radius:8px; }
.account-permissions summary { color:var(--p); cursor:pointer; font-weight:bold; padding:10px; }
.account-access { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0 10px 10px; }
.account-access h4 { color:var(--p); margin:8px 0 2px; }
.account-access ul { list-style:none; margin:0; padding:0; }
.account-access li { display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:5px 0; font-size:13px; border-bottom:1px solid var(--line); }
.account-access small { text-align:right; }
.account-form fieldset { margin:0; padding:0; min-inline-size:0; border:0; }
.account-form legend { color:var(--p); font-size:17px; font-weight:bold; padding:0; margin-bottom:10px; }
.account-fields { display:grid; grid-template-columns:minmax(120px,152px) minmax(0,1fr); gap:16px; }
.account-photo h3 { font-size:14px; margin:0 0 5px; }
.account-photo .account-portrait { display:grid; place-items:center; width:min(100%,135px); aspect-ratio:3/4; margin-bottom:8px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#f8f4fa; color:#65536f; font-size:13px; }
.account-portrait img { display:block; width:100%; height:100%; object-fit:cover; }
.account-portrait img[hidden] { display:none; }
.account-photo button { display:block; font-size:12px; margin-bottom:5px; padding:7px 9px; }
.account-photo button[hidden] { display:none; }
.account-photo p { padding:0; font-size:12px; line-height:1.4; }
.account-contact { display:grid; gap:10px; align-content:start; }
.account-form .actions { margin-top:12px; }
.account-form :disabled { opacity:.62; cursor:default; }
@media(max-width:560px) {
  .account-dialog { padding:16px; }
  .account-identity { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-identity > :nth-child(2) { grid-column:1/-1; grid-row:2; }
  .account-access { grid-template-columns:1fr; }
  .account-fields { grid-template-columns:minmax(100px,1fr) minmax(0,1.65fr); gap:10px; }
}
