.admin-sections {display:flex;gap:8px;border-bottom:1px solid #d2ddeb;margin:7px 0 22px}
.admin-sections button {padding:10px 16px 13px;border-bottom:3px solid transparent;color:#526780;font-size:15px;font-weight:600}
.admin-sections button[aria-current] {color:#2363a5;border-color:#2363a5}
.admin-sections button:hover {background:#eaf1fa}
#admin-accounts {container:accounts / inline-size}
.accounts-layout {display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,1fr);align-items:start;gap:18px}
.account-card {padding:clamp(16px,2.1vw,28px);min-width:0;container:account-card / inline-size}
.account-card h2 {font-size:clamp(18px,1.5vw,23px);line-height:1.3;color:#233d59;margin:0;display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.account-card-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.account-count {display:inline-block;padding:3px 9px;border-radius:20px;background:#e6f0fd;color:#245c96;font-size:13px;font-variant-numeric:tabular-nums}
.accounts-directory {grid-column:1/-1}
.account-card .text-button {font-size:13px}
.accounts-status {margin:0;color:#324e70;font-size:14px;overflow-wrap:anywhere}
.accounts-status:not(:empty) {padding:0 0 14px}
.accounts-empty {color:#61738a;font-size:14px;margin:24px 0 6px}
.account-form>fieldset, .account-role-field, .request-row, .signup-role {border:0;padding:0;margin:0;min-width:0}
.account-card .account-form {margin-top:20px}
.account-form>fieldset, #account-edit-fields {display:grid;gap:15px}
.account-form label, .request-selects label, .directory-search, .request-filters label, .password-code-body label {display:grid;gap:6px;font-size:14px;font-weight:600;color:#344e69}
.account-form :is(input:not([type=radio]),select), .request-row select, .directory-search input, .request-filters :is(input,select), #password-code-value {
  font:400 14px/1.4 var(--font);color:#233d59;background:#fff;border:1px solid #cbd8e9;border-radius:7px;width:100%;min-width:0;min-height:40px;padding:8px 10px
}
.account-form select,.request-row select {text-overflow:ellipsis}
.account-hint,.account-form-error {margin:0;font-size:13px;line-height:1.45;color:#5d7289}
.account-card .account-hint {margin-top:-9px}
.account-form-error {background:#fff3ee;border-left:3px solid #b45b38;padding:9px 11px;color:#853d28}
.account-form legend,.signup-role legend {font-family:inherit;font-size:14px;font-weight:600;color:#344e69;padding:0;margin:0 0 7px}
.role-options {display:flex;border:1px solid #b7cbe0;border-radius:7px;overflow:hidden}
.role-options label {position:relative;display:inline-flex;align-items:center;justify-content:center;text-align:center;flex:1;padding:9px 5px;color:#415b77;font-size:14px;font-weight:600;cursor:pointer}
.role-options label + label {border-left:1px solid #b7cbe0}
.role-options input {position:absolute;opacity:0;width:1px;height:1px}
.role-options label:has(input:checked) {background:#2663a5;color:white}
.role-options label:has(input:focus-visible) {outline:3px solid #173d67;outline-offset:-3px;box-shadow:inset 0 0 0 5px white}
.signup-role legend {font:700 clamp(15px,1.35vw,19px) system-ui;color:var(--ink)}
.signup-role .role-options {border:1.5px solid var(--ink);border-radius:0;margin:2px 0 7px}
.signup-role label {padding:11px 8px;color:var(--ink)}
.signup-role label + label {border-color:var(--ink)}
.signup-role label:has(input:checked) {background:var(--ink);color:var(--paper)}
.auth-confirmation {margin:0;background:#e8edf8;border-inline-start:3px solid var(--ink);padding:10px 12px;font:500 14px/1.45 system-ui}
.account-identity {display:flex;align-items:center;gap:9px;min-width:0}
.account-avatar {display:grid;place-items:center;width:34px;height:34px;border-radius:50%;flex:none;background:#e3eefc;color:#245f9d;font-size:15px;font-weight:650}
.request-form:nth-child(even) .account-avatar, .account-directory-row:nth-child(even) .account-avatar {background:#ececfb;color:#555a98}
.account-name {min-width:0;display:grid;gap:3px;font-size:15px;overflow-wrap:anywhere}
.account-name small,.account-team {font-size:13px;line-height:1.4;color:#5f7289}
.request-filters {display:grid;grid-template-columns:minmax(0,1.5fr) minmax(8.5rem,1fr);gap:12px;margin-top:18px}
.request-type-tag {justify-self:start;border-radius:5px;padding:2px 6px;background:#e7f0fb;color:#264f80;font-size:12px;font-weight:600;line-height:1.4}
.request-form[data-type=password] .request-type-tag {background:#eeebfa;color:#594482}
.request-form[data-type=password] .request-row {grid-template-columns:minmax(0,1fr) auto}
#requests-empty:empty,#password-code-feedback:empty {margin:0}
#password-code-dialog {max-width:420px}
#password-code-title {font-size:20px;margin:0}
.password-code-body {display:grid;gap:12px}
.password-code-body p {margin:0;color:#405872;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.password-code-body .dialog-actions {margin:4px 0 0}
#password-code-value {font:600 16px/1.5 ui-monospace,monospace;color:#204c79;background:#f1f6fc}
#password-code-feedback {color:#255b8c}
.request-form {margin-top:12px;border-top:1px solid #e2eaf3}
.request-row {display:grid;grid-template-columns:minmax(85px,1fr) minmax(160px,1.7fr) auto;align-items:center;gap:10px;padding-top:15px}
.request-selects,.request-actions {display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.request-selects label {font-size:12px;min-width:80px;flex:1}
.request-row select {min-height:35px;padding:6px;font-size:13px}
.account-directory-row {display:grid;grid-template-columns:minmax(100px,1fr) minmax(84px,.5fr) minmax(90px,.7fr) auto;align-items:center;gap:12px;border-top:1px solid #e2eaf3;padding:11px 0}
#account-directory {margin-top:16px}
.account-role {font-size:13px;font-weight:600;color:#3d5e7f}
.account-directory-row .button,.request-actions .button,.directory-pages .button {min-height:34px;padding:7px 12px;font-size:13px}
.directory-search {font-size:12px;min-width:0}
.directory-pages {display:flex;gap:12px;align-items:center;justify-content:flex-end;font-size:13px;color:#526780}
#account-dialog .dialog-actions {margin:0}
#account-dialog .account-hint:empty {display:none}
@container accounts (max-width:730px) {.accounts-layout {grid-template-columns:minmax(0,1fr)}}
@container account-card (max-width:560px) {
  .request-row {grid-template-columns:minmax(0,1fr) auto}
  .request-selects {grid-column:1/-1;grid-row:2}
  .request-actions {justify-content:flex-end}
}
@container account-card (max-width:380px) {
  .request-row {grid-template-columns:minmax(0,1fr)}
  .request-actions {grid-row:3;justify-content:start}
  .request-form[data-type=password] .request-row {grid-template-columns:minmax(0,1fr)}
  .request-form[data-type=password] .request-actions {grid-row:auto}
  .account-directory-row {grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}
  .account-directory-row .account-role,.account-directory-row .account-team {grid-column:1;padding-left:43px}
  .account-directory-row .button {grid-column:2;grid-row:1/4}
}
@container account-card (max-width:300px) {.request-filters {grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px) {.account-form :is(input:not([type=radio]),select),.request-row select,.directory-search input,.request-filters :is(input,select) {font-size:16px}}

.teams-card .account-card-heading {flex-wrap:nowrap}
.team-error {margin:0;padding:10px 12px;border-inline-start:3px solid #bf2538;border-radius:4px;background:#fff0f1;color:#95162a;font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.team-error:empty {position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%)}
#teams-error:not(:empty),#accounts-error:not(:empty),#team-save-error:not(:empty) {margin-bottom:12px}
.account-team {min-width:0;overflow-wrap:anywhere}
.teams-list {margin:16px 0 0;padding:0;list-style:none}
.teams-list:empty {margin:0}
.teams-list li {border-top:1px solid #dce6f0;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 0}
.teams-list li:last-child {padding-bottom:0}
.teams-list li>div {min-width:0}
.teams-list h3 {margin:0;color:#233d59;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.teams-list p {display:flex;gap:3px 14px;flex-wrap:wrap;margin:3px 0 0;color:#536c85;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.teams-list button {min-width:58px;flex:none}
#teams-retry {margin-top:12px}
#team-dialog {max-height:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
#team-dialog[open],#team-editor {display:flex;flex-direction:column}
#team-dialog .dialog-heading {flex:none;padding-bottom:16px;border-bottom:1px solid #dce6f0}
#team-dialog .dialog-heading h2 {margin:0;font-size:20px}
#team-editor {min-height:0}
.team-editor-body {min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 24px}
#team-fields,.team-agent-field {min-width:0;border:0;padding:0;margin:0}
#team-fields {display:grid;gap:16px}
.team-agent-field legend {display:flex;gap:8px;align-items:baseline}
#team-selection-count {font-size:13px;color:#576f88;font-weight:400}
.available-members {max-height:14rem;overflow:auto;overscroll-behavior:contain;margin-top:8px;border:1px solid #dae4f0;border-radius:7px}
.available-members label {display:flex;align-items:center;gap:10px;padding:8px 10px;min-height:44px;cursor:pointer}
.available-members label+label {border-top:1px solid #e5ecf5}
.available-members label:has(input:checked) {background:#eaf2ff}
.available-members label:focus-within {outline:2px solid #255f9b;outline-offset:-2px}
.available-members label span {display:grid;gap:1px;min-width:0;overflow-wrap:anywhere}
.available-members small {color:#526b86;font-weight:400}
.available-members input[type=checkbox] {width:18px;height:18px;min-height:0;padding:0;flex:none;accent-color:#2563a6}
.available-members p {margin:0;padding:12px;font-size:14px;color:#526b86}
#team-supervisor-help {margin-top:-8px}
#team-move-note:not(:empty),#team-members-more {margin-top:8px}
.team-editor-footer {flex:none;padding:14px 24px;border-top:1px solid #dce6f0}
#team-editor .dialog-actions {margin:0}
#team-editor .dialog-actions .button {min-height:40px;font-size:14px}
#team-editor [aria-invalid=true] {border-color:#bf2538}
@media(max-width:480px) {
  .admin-sections {gap:4px}
  .admin-sections button {padding-inline:10px}
  #team-dialog {width:calc(100% - 20px)}
  .team-editor-body,.team-editor-footer {padding:14px 16px}
  #team-dialog .dialog-heading {padding:12px 16px}
  .teams-list button,#team-editor .dialog-actions .button {min-height:44px}
}
.workspace-team-name,.game-team-name {margin:0;color:#23598d;font-weight:650;font-size:14px;overflow-wrap:anywhere}
.workspace-team-name {padding:8px 12px}
.workspace-team-report {display:flex;align-items:center;gap:10px;align-self:stretch;min-height:42px;margin:0 0 6px;padding:8px 12px;border:1px solid #c7d8ea;border-radius:8px;background:#f8fbff;color:#23598d;text-align:left;font-size:14px;font-weight:650}
.workspace-team-report span:first-child,.workspace-team-report .team-report-check {display:inline-flex;flex:none}
.workspace-team-report svg {width:18px;height:18px}
#team-report-name {min-width:0;overflow-wrap:anywhere}
.workspace-team-report:hover {background:#e5edf8}
.workspace-team-report[aria-pressed=true] {border-color:#91b3db;background:#dae8f8;color:#174f91}
.workspace-team-report .team-report-check {margin-left:auto;visibility:hidden}
.workspace-team-report[aria-pressed=true] .team-report-check {visibility:visible}
.workspace-team-report:focus-visible {outline:2px solid #285d99;outline-offset:1px}

.editor-actions .delete-trigger {margin-inline-end:auto;min-height:40px;padding:8px 5px;background:transparent;color:#a11c31;font-size:14px;font-weight:600;border:0;border-radius:6px}
.editor-actions .delete-trigger:hover {background:#fff0f1}
dialog .button.danger {border:1px solid #a42135;background:#a42135;color:white}
dialog .button.danger:hover {background:#86192b}
#delete-confirm-dialog {max-width:440px}
#delete-confirm-title {margin:0;line-height:1.4;overflow-wrap:anywhere}
#delete-confirm-description {color:#405872;font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
#delete-confirm-dialog .button {min-height:42px;font-size:14px}
#account-dialog .account-form-error {background:#fff0f1;border-color:#bf2538;color:#95162a}
#account-manage-teams {margin-top:4px}
@media(max-width:380px) {
  .editor-actions:has(.delete-trigger:not([hidden])) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .editor-actions .delete-trigger {grid-column:1/-1;justify-self:start}
}
