/* Shared people overview for organisation members and session jurors. */
.people-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 22px}
.people-stats>div{display:flex;align-items:center;gap:16px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(120deg,#061d40,#04182f);padding:20px;min-width:0}
.people-stats strong,.people-stats span:not(.people-stat-icon){display:block}.people-stats strong{font-size:1.5rem;line-height:1.2}.people-stats span:not(.people-stat-icon){color:var(--muted);font-size:.85rem;margin-top:4px}
.people-stat-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:10px;background:#2586c71c;color:#58d9d0;font-size:1.6rem}
.people-panel,.people-add,.people-jury-admission,.people-jury-codes{margin-bottom:20px;border-radius:14px;background:linear-gradient(130deg,#051c3a,#04172e);padding:24px;min-width:0}
.people-heading{display:flex;justify-content:space-between;gap:16px;align-items:start;flex-wrap:wrap;margin-bottom:18px}.people-heading h2,.people-add h2,.people-jury-admission h2{font:600 1.25rem/1.4 "Segoe UI",Arial,sans-serif;margin:0 0 5px;text-transform:none}.people-heading p,.people-add>p{color:var(--muted);font-size:.9rem;margin:0}.people-heading .button{flex-shrink:0}
.people-filters{display:flex;gap:14px;flex-wrap:wrap;align-items:end;margin:20px 0}.people-filters label{flex:1 1 180px;min-width:0;margin:0;font-size:.75rem;color:var(--muted)}.people-filters input,.people-filters select{display:block;width:100%;margin-top:7px;min-width:0}.people-filters button{margin:0;flex-shrink:0}.people-filters input[type=search]{appearance:none}.people-jury-filter{max-width:600px}
.people-page-count{color:var(--muted);font-size:.8rem}.people-table-wrap{max-width:100%;min-width:0}.people-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.85rem}.people-table th{text-align:left;font-size:.65rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:500;background:#102d505c;padding:13px 12px}.people-table td{vertical-align:middle;padding:15px 12px;border-bottom:1px solid #183354;overflow-wrap:anywhere}.people-table tbody tr:nth-child(even){background:#051b35}.people-table th:first-child{width:21%;border-radius:8px 0 0 8px}.people-table th:nth-child(2){width:21%}.people-table th:nth-child(3){width:20%}.people-table th:last-child{width:65px;border-radius:0 8px 8px 0}.people-table .people-actions-cell{text-align:right}.people-table th:nth-last-child(2){width:16%}
.people-person{display:flex;align-items:center;gap:10px;min-width:0}.people-person h3{font:600 .9rem/1.4 "Segoe UI",Arial,sans-serif;margin:0;text-transform:none;overflow-wrap:anywhere}.people-avatar{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:linear-gradient(140deg,#b5dcff,#6da3ef);color:#032044;font-weight:700}.people-muted{color:var(--muted)}.people-badges{display:flex;flex-wrap:wrap;gap:5px}.people-role,.people-status{display:inline-block;padding:5px 9px;border-radius:999px;font-size:.7rem;line-height:1.3;background:#0870a32b;color:#8cd9ff}.people-role.is-admin{background:#ba9b0f24;color:#ffdb59}.people-status.is-active{background:#00a8981a;color:#5ee9d2}.people-status.is-waiting{background:#e7b42b1c;color:#edce79}.people-status.is-revoked,.people-role.is-revoked{background:#99999918;color:#a6b4c5}
.people-actions{position:relative;display:inline-block;text-align:left}.people-actions>summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:32px;height:32px;font-size:1.5rem;border-radius:6px;color:var(--muted)}.people-actions>summary::-webkit-details-marker{display:none}.people-actions>summary:hover,.people-actions[open]>summary{background:#183b60;color:white}.people-actions[open]{z-index:5}.people-action-panel{position:absolute;right:0;top:100%;width:310px;max-width:calc(100vw - 64px);padding:18px;background:#08203f;border:1px solid #315073;border-radius:10px;box-shadow:0 12px 36px #0009}.people-action-panel h4{margin:0 0 14px}.people-action-panel form{margin-top:12px}.people-action-panel button{width:100%}.people-action-panel .access-list{margin:12px 0;padding:0}.people-action-panel .access-list li{display:block}.people-action-panel .access-list p{font-size:.8rem}.people-action-panel .entity-editor,.people-action-panel .danger-action{margin:12px 0}.people-action-panel label{font-size:.8rem}
.people-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}.people-create-grid>.editor-panel{margin:0}.people-create-grid summary{cursor:pointer}.people-create-grid form{padding-top:16px}.people-jury-admission .people-heading{margin:0}.people-jury-admission .field-help{margin:14px 0 0}.people-jury-codes>summary{cursor:pointer;font-weight:600}.people-code-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.people-code-card{border:1px solid var(--border);border-radius:10px;padding:18px;min-width:0}.people-code-card h3{font:600 1rem/1.4 "Segoe UI",Arial,sans-serif;margin:0}.people-code-card .jury-private-code{font:600 1.1rem/1.4 Consolas,monospace;letter-spacing:.08em}.people-code-card>form{margin-top:15px}.people-code-card [data-copy-status]{font-size:.8rem;color:var(--emerald)}
@media(max-width:1100px){.people-table{font-size:.8rem}.people-table th,.people-table td{padding:12px 8px}.people-person{gap:7px}.people-stats>div{padding:16px;gap:10px}}
@media(max-width:760px){.people-stats{grid-template-columns:1fr;gap:9px}.people-stats>div{padding:13px 16px}.people-stats strong{font-size:1.2rem}.people-panel,.people-add,.people-jury-admission,.people-jury-codes{padding:18px}.people-create-grid{grid-template-columns:1fr}.people-table,.people-table tbody,.people-table tr,.people-table td{display:block;width:100%}.people-table thead{display:none}.people-table tbody tr{padding:16px 0;border-bottom:1px solid var(--border);background:transparent}.people-table td{padding:5px 0;border:0}.people-table td[data-label]:not(:first-child){display:grid;grid-template-columns:95px minmax(0,1fr);gap:10px}.people-table td[data-label]:not(:first-child)::before{content:attr(data-label);color:var(--muted);font-size:.75rem}.people-table .people-actions-cell{padding:0}.people-person{margin-bottom:6px}.people-actions{margin-top:-2px}.people-filters label{flex-basis:100%}.people-filters button{width:100%}.people-heading .button{max-width:100%}}

/* Keep compact forms and headings within these overviews. */
.workspace-page .people-filters{padding:0;border:0;background:none;max-width:none;margin:18px 0;gap:12px}
.workspace-page .people-filters input,.workspace-page .people-filters select{min-height:40px;border-radius:8px;margin:7px 0 0;padding:9px 12px;font-size:.8rem}
.workspace-page .people-filters button,.workspace-page .people-heading .button{min-height:40px;border-radius:9px;padding:9px 16px}
.workspace-page .people-heading form,.workspace-page .people-code-card>form,.workspace-page .people-action-panel form{padding:0;border:0;background:none;max-width:none}
.workspace-page .people-heading form{margin:0}.workspace-page .people-panel{padding:22px;border-radius:12px}.people-jury-filter{max-width:600px!important}
.workspace-page:where(:has(#member-directory)) .admin-heading h1,.workspace-page:where(:has(#jury-members)) .admin-heading h1{text-transform:none;font-weight:600;font-size:1.75rem;margin:4px 0 8px}
.workspace-page:where(:has(#member-directory)) .admin-heading,.workspace-page:where(:has(#jury-members)) .admin-heading{margin:0 0 24px;align-items:center;gap:14px}
.workspace-page:where(:has(#jury-members)) .admin-heading p{margin:6px 0;font-size:.9rem}
.people-stat-icon svg{width:24px;height:24px}.people-stats .people-stat-icon{font-size:0}
@media(max-width:760px){.people-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.people-stats>div{display:block;padding:12px 10px}.people-stats .people-stat-icon{display:none}.people-stats span:not(.people-stat-icon){font-size:.7rem;line-height:1.35}.workspace-page .people-panel{padding:16px}.workspace-page:where(:has(#jury-members)) .admin-heading{gap:8px}.workspace-page:where(:has(#jury-members)) .admin-heading h1{font-size:1.5rem}}

.people-actions>summary:focus-visible{outline:2px solid var(--emerald);outline-offset:2px}

.workspace-page .people-page-count{padding:0;border:0;background:none;color:var(--muted);font-size:.8rem;margin:0 0 16px}

.people-stats>div>div{min-width:0}.people-stats span:not(.people-stat-icon){overflow-wrap:anywhere;hyphens:auto}
