/* Teamilo members-v1. Inherits all selected Teamilo design/appearance tokens. */
#teamilo-org-root [hidden]{display:none!important}
#teamilo-org-root .org-member-tools{display:flex;align-items:end;gap:18px;flex-wrap:wrap}
#teamilo-org-root .org-member-tools>label:first-child{flex:1 1 240px}
#teamilo-org-root .org-member-status:empty{display:none}
#teamilo-org-root .org-member-item{padding:16px 0;border-bottom:1px solid var(--ap-line,#d9e3e0)}
#teamilo-org-root .org-member-row{display:flex;align-items:center;gap:12px;min-width:0}
#teamilo-org-root .org-member-description{flex:1;min-width:0;overflow-wrap:anywhere}
#teamilo-org-root .org-member-description>b{display:block;font-size:1rem}
#teamilo-org-root .org-member-description small{display:block;margin-top:5px;color:var(--ap-muted,#60736c);font-size:.87rem}
#teamilo-org-root .org-member-row>.teamilo-avatar{flex-shrink:0}
#teamilo-org-root .org-member-row>button{flex-shrink:0}
#teamilo-org-root .org-member-more{margin-top:10px}
#teamilo-org-root .org-member-more>summary{font-size:.85rem;color:var(--ap-muted,#60736c);cursor:pointer;width:fit-content;min-height:36px;padding:8px 0}
#teamilo-org-root .org-member-more .org-admin-fields{flex-direction:row;flex-wrap:wrap}
#teamilo-org-root .org-member-pending{margin-top:12px;padding:12px;border:1px solid var(--ap-line,#d9e3e0);border-inline-start:4px solid var(--ap-primary,#145547);border-radius:10px;background:var(--ap-soft,#f2f7f5);color:var(--ap-text,#143a32)}
#teamilo-org-root .org-member-pending summary{cursor:pointer;min-height:36px}
#teamilo-org-root .org-member-pending>small{display:block;margin-bottom:8px}
#teamilo-org-root .org-member-secondary{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
#teamilo-org-root .org-member-list button,#teamilo-org-root .org-member-secondary button{min-height:44px}
#teamilo-org-root .org-member-dialog{position:fixed;inset:0;width:min(700px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 36px);margin:auto;padding:22px;border:1px solid var(--ap-line,#d9e3e0);border-radius:18px;background:var(--ap-surface,#fff);color:var(--ap-text,#143a32);box-shadow:0 16px 60px #0006;overflow:auto;overscroll-behavior:contain}
#teamilo-org-root .org-member-dialog::backdrop{background:#0009}
#teamilo-org-root .org-member-dialog h2{font-size:1.25rem;margin:0;overflow-wrap:anywhere}
#teamilo-org-root .org-member-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
#teamilo-org-root .org-member-dialog button{min-height:44px}
#teamilo-org-root .org-member-dialog select,#teamilo-org-root .org-member-dialog input[type=search]{min-height:44px;font-size:16px}
#teamilo-org-root .org-member-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#teamilo-org-root .org-member-dialog fieldset{min-width:0;margin:12px 0;padding:12px;border:1px solid var(--ap-line,#d9e3e0);border-radius:12px}
#teamilo-org-root .org-member-dialog legend{font-weight:700;padding:0 5px}
#teamilo-org-root .org-member-player-choice{padding:8px 0;border-bottom:1px solid var(--ap-line,#d9e3e0)}
#teamilo-org-root .org-member-player-choice:last-child{border-bottom:0}
#teamilo-org-root .org-member-player-choice>.org-check{min-height:44px;margin:0;overflow-wrap:anywhere}
#teamilo-org-root .org-member-player-choice input[type=checkbox]{flex:0 0 21px;width:21px;height:21px}
#teamilo-org-root .org-member-player-choice [data-relation-label]{margin-inline-start:30px;font-size:.83rem}
#teamilo-org-root .org-member-dialog footer{position:sticky;bottom:-22px;margin:12px -2px -22px;padding:12px 2px 20px;background:var(--ap-surface,#fff);border-top:1px solid var(--ap-line,#d9e3e0)}
#teamilo-org-root .org-member-dialog .org-error{white-space:normal;overflow-wrap:anywhere}
#teamilo-org-root .org-member-dialog input:disabled,#teamilo-org-root .org-member-dialog select:disabled{opacity:.7}
@media(max-width:600px){
 #teamilo-org-root .org-member-row{flex-wrap:wrap}
 #teamilo-org-root .org-member-row>.org-member-description{flex-basis:calc(100% - 65px)}
 #teamilo-org-root .org-member-row>button{margin-inline-start:52px}
 #teamilo-org-root .org-member-fields{grid-template-columns:1fr;gap:0}
 #teamilo-org-root .org-member-dialog{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:18px}
 #teamilo-org-root .org-member-dialog footer{bottom:-18px;margin-bottom:-18px}
 #teamilo-org-root .org-member-secondary>button{flex:1 1 160px}
}

/* Keep the 01.11.2026 members layout inside the HIG test. */
html[data-teamilo-hig] body #teamilo-org-root .org-member-tools{display:flex!important;align-items:end!important;gap:18px!important;flex-wrap:wrap!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-row{display:flex!important;align-items:center!important;gap:12px!important;padding-block:0!important;flex-wrap:nowrap!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-description{flex:1!important;min-width:0!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-description small{display:block!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-dialog{width:min(700px,calc(100vw - 28px))!important;max-width:none!important;max-height:calc(100dvh - 36px)!important;height:auto!important;inset:0!important;margin:auto!important;padding:22px!important;border-radius:18px!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-dialog h2{margin:0!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-dialog footer{background:var(--hig-surface)!important;color:var(--hig-text)!important;position:static!important;margin:12px 0 0!important;padding:12px 0 0!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
html[data-teamilo-hig] body #teamilo-org-root .org-member-player-choice [data-relation-label]:not([hidden]){display:flex!important;flex-direction:column!important;align-items:stretch!important}
@media(max-width:600px){
 html[data-teamilo-hig] body #teamilo-org-root .org-member-row{flex-wrap:wrap!important}
 html[data-teamilo-hig] body #teamilo-org-root .org-member-row>.org-member-description{flex-basis:calc(100% - 65px)!important}
 html[data-teamilo-hig] body #teamilo-org-root .org-member-fields{grid-template-columns:1fr!important;gap:0!important}
 html[data-teamilo-hig] body #teamilo-org-root .org-member-dialog{width:100%!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:18px!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
}
