.account-panel { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; border: 1px solid #353942; border-radius: .5rem; padding: .4rem .55rem; margin: .5rem 0; background: #20232a; font: inherit; line-height: 1.2; }
.account-panel > p { margin: 0; overflow-wrap: anywhere; font-size: .8rem; color: #d0d4dd; }
.account-panel h2 { color: #c6a3ef; font-size: .85rem; line-height: 1.15; font-weight: inherit; margin: 0; }
.account-panel button { min-height: 1.5rem; border: 1px solid #70518d; border-radius: .3rem; background: #493260; color: #f0e6ff; padding: .15rem .4rem; font: inherit; font-size: .8rem; line-height: 1.2; cursor: pointer; }
.account-panel button:disabled { opacity: .5; cursor: default; }
.account-form { display: flex; flex: 1 1 25rem; flex-wrap: wrap; align-items: end; gap: .3rem .5rem; }
.account-form label { display: grid; gap: .1rem; flex: 1 1 10rem; margin: 0; color: #86baff; font-size: .75rem; }
.account-form input { min-width: 0; width: 100%; padding: .25rem .4rem; margin: 0; border: 1px solid #535966; border-radius: .3rem; background: #20232a; color: #f5f5f5; font: inherit; font-size: .875rem; line-height: 1.2; }
.account-form [role=status] { width: 100%; margin: 0; color: #f1bb75; font-size: .8rem; }
.account-form [role=status]:empty { display: none; }
.account-panel :focus-visible { outline: 2px solid #86baff; outline-offset: 2px; }
.practice-branding { display: flex; align-items: center; gap: .4rem; min-width: 0; max-width: 100%; color: #d0d4dd; font-size: .875rem; line-height: 1.2; }
.practice-branding-logo { display: block; flex: 0 0 auto; width: auto; height: 2.25rem; max-width: 8rem; object-fit: contain; background: #fff; }
.practice-branding-name { min-width: 0; overflow-wrap: anywhere; }
.practice-branding-logo-only .practice-branding-name { display: none; }
.practice-picker { display: flex; align-items: end; flex: 1 1 12rem; gap: .5rem; min-width: 0; }
.practice-picker > label { flex: 1 1 12rem; min-width: 0; margin: 0; }
.practice-picker > .practice-branding { flex: 0 0 auto; margin: 0; }
.eye-toolbar .practice-branding { justify-content: center; }
.practice-branding[hidden] { display: none !important; }
.practice-logo-window { display: block; position: relative; overflow: hidden; flex: 0 0 auto; width: min(var(--logo-width,8rem),calc(var(--logo-height,2.25rem) * var(--logo-ratio))); height: min(var(--logo-height,2.25rem),calc(var(--logo-width,8rem) / var(--logo-ratio))); background: transparent; }

.practice-users { margin-top: 1.25rem; }
.practice-users h2 { font: inherit; font-size: 1.1rem; margin: 0 0 .5rem; }
.practice-user-add { display: flex; gap: .5rem; align-items: end; flex-wrap: wrap; margin-bottom: .5rem; }
.practice-user-add label { flex: 1 1 12rem; margin: 0; }
.practice-user-add > select { width: 7rem; }
.practice-users-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.practice-users-table th, .practice-users-table td { text-align: left; padding: .35rem .45rem; border-bottom: 1px solid #353942; }
.practice-users-table th { font-weight: inherit; color: #86baff; }
.practice-users-table input { min-width: 8rem; margin: 0; }
.practice-user-actions { white-space: nowrap; }
.practice-user-actions button + button { margin-left: .35rem; }
.practice-users [role=status]:empty { display: none; }
.practice-users [data-error=true] { color: #f1bb75; }

.practice-users-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.practice-users-heading h2 { margin: 0; }

.user-practice-access { flex: 1 0 100%; border: 1px solid #535966; border-radius: .4rem; padding: .6rem; display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.user-practice-access label, .user-access-row { display: flex; align-items: center; gap: .4rem; margin: 0; }
.user-practice-access label { flex: 0 1 auto; }
.user-practice-access input[type=checkbox], .user-access-row input[type=checkbox] { width: auto; min-width: 0; margin: 0; }
.practice-user-actions { white-space: normal; min-width: 15rem; }
.practice-user-actions button { margin: .15rem; }
.practice-users-table td:nth-child(2) { min-width: 12rem; }
.practice-users-table select { min-width: 6rem; }
.user-email-status { display: block; min-width: 9rem; margin-top: .3rem; color: #c6cbd5; }
.user-access-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: 85vh; overflow: auto; padding: 1.25rem; border: 1px solid #70518d; border-radius: .6rem; background: #20232a; color: #f5f5f5; }
.user-access-dialog::backdrop { background: #0009; }
.user-access-dialog > div { display: grid; grid-template-columns: minmax(0, 1fr) 6rem; gap: .75rem; align-items: center; }
.user-access-dialog > button { margin: .3rem .5rem .3rem 0; }
