/* Individual team access, with readable forms on small screens. */
.team-page{max-width:1060px;min-width:0}
.team-preview-note{font-size:13px;line-height:1.8;margin-bottom:22px}
.team-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 22px}
.team-summary>div{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:16px;padding:20px;background:var(--panel);min-width:0}
.team-summary strong{font-size:29px;font-weight:550;line-height:1.2;color:var(--accent);font-variant-numeric:tabular-nums}
.team-summary span{font-size:12px;line-height:1.6;color:var(--muted)}
.team-toolbar,.team-actions,.team-user-actions,.team-section-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.team-toolbar{justify-content:space-between;margin-bottom:22px}.team-toolbar button{font-size:14px}
.team-permissions{padding:20px 24px;margin-bottom:24px}.team-permissions summary{cursor:pointer;font-size:14px;font-weight:550}
.team-permissions>div{padding-top:20px}.team-permissions h3{font-size:14px;margin-bottom:6px}.team-permissions p{font-size:13px;line-height:1.85;color:var(--muted);max-width:760px}
.team-permissions p:last-child{margin-bottom:0}
.team-editor{padding:28px;border-color:var(--accent-line);scroll-margin-top:24px}
.team-editor .eyebrow,.team-credential .eyebrow,.team-user .eyebrow{font-size:12px;letter-spacing:.08em}
.team-editor h2,.team-credential h2{font-size:23px;margin-bottom:20px}
.team-editor .field,.team-tools .field{margin-bottom:18px;min-width:0}.team-editor .field>label,.team-tools .field>label{font-size:13px;color:var(--muted);margin-bottom:8px}
.team-editor .field>small{display:block;font-size:12px;line-height:1.7;margin-top:7px}
.team-form-grid,.team-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.team-editor input,.team-editor select,.team-tools input,.team-tools select{font-size:16px;min-height:48px}
.team-permission-note{padding:16px 18px;background:var(--soft);border:1px solid var(--accent-line);border-radius:12px;margin:5px 0 20px}
.team-permission-note strong{font-size:14px;color:var(--accent);font-weight:550}.team-permission-note p{font-size:13px;line-height:1.8;color:var(--muted);margin:7px 0 0}
.team-check{display:flex;align-items:flex-start;gap:11px;font-size:14px;line-height:1.8;margin:20px 0}
.team-check input{flex-shrink:0;width:21px;min-height:21px;margin-top:3px}
.team-help{display:block;font-size:12px;line-height:1.85;color:var(--muted);margin-top:10px}
.team-actions{margin-top:22px}.team-actions button{font-size:13px;min-height:46px}
.team-reset-person{font-size:17px;font-weight:600;margin-bottom:12px}.team-reset-person span{display:block;font-size:13px;font-weight:400;color:var(--muted);margin-top:5px}
.team-credential{padding:28px;background:linear-gradient(135deg,var(--soft),var(--panel) 65%);border-color:var(--accent-line);scroll-margin-top:24px}
.team-credential>p{font-size:14px;line-height:1.8}.team-credential dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}
.team-credential dl>div{min-width:0;padding-bottom:12px;border-bottom:1px solid var(--accent-line)}
.team-credential dt{font-size:12px;color:var(--muted);margin-bottom:5px}.team-credential dd{font-size:16px;font-weight:500;margin:0;overflow-wrap:anywhere}
.team-pin-box{display:flex;flex-direction:column;align-items:flex-start;gap:13px;padding:22px;border:1px solid var(--accent-line);border-radius:14px;background:var(--bg)}
.team-pin-box>span:first-child{font-size:12px;color:var(--muted)}
.team-pin-value,.team-pin-hidden{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:34px;letter-spacing:4px;line-height:1.4;font-weight:600;color:var(--text);max-width:100%;overflow-wrap:anywhere}
.team-pin-box button{font-size:13px;min-height:44px;padding:9px 14px}
.team-credential .team-credential-help{font-size:13px;line-height:1.85;color:var(--muted);margin:18px 0 0}
.team-section-top{justify-content:space-between;margin:26px 0 16px}.team-section-top h2{font-size:22px;margin:0}.team-section-top>span{font-size:12px;color:var(--muted)}
.team-tools{padding:22px}.team-tools .field:last-child{margin-bottom:0}.team-filter-grid{margin-top:6px}
.team-filter-status{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0 0}
.team-users{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.team-user{padding:23px;margin:0;min-width:0}.team-user-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.team-user-heading>div{min-width:0;flex:1}.team-user .eyebrow{margin-bottom:9px}.team-user h3{font-size:19px;line-height:1.35;margin:0 0 7px;overflow-wrap:anywhere}
.team-user .pill{font-size:12px;flex-shrink:0;max-width:50%;text-align:center}
.team-username{font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:0;overflow-wrap:anywhere}
.team-user-sector{font-size:14px;font-weight:500;margin:22px 0 7px}.team-user-description{font-size:13px;line-height:1.85;color:var(--muted);margin-bottom:14px}
.team-example{display:inline-block;font-size:12px;line-height:1.5;color:var(--muted);margin-bottom:10px}
.team-user-actions{margin-top:17px;gap:10px}.team-user-actions button{font-size:12px;min-height:44px}.team-user-actions .text-btn{padding:9px 0}
.team-user>.team-help{margin-bottom:0}
.team-empty{font-size:14px;line-height:1.8;color:var(--muted);padding:25px}
.team-error p{font-size:13px;line-height:1.85;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}.team-error p:last-child{margin-bottom:0}.team-error button{font-size:13px}
.team-footnote{font-size:12px;line-height:1.9;color:var(--muted);margin:26px 0}
@media(max-width:900px){.team-users{grid-template-columns:1fr}}
@media(max-width:700px){
 .team-summary{gap:8px;margin:18px 0 20px}.team-summary>div{padding:15px 10px;border-radius:13px;gap:7px}.team-summary strong{font-size:25px}.team-summary span{font-size:12px}
 .team-toolbar{gap:9px;align-items:stretch}.team-toolbar>.primary{flex:1}.team-toolbar>.secondary{min-width:110px}.team-toolbar button{font-size:13px}
 .team-permissions{padding:19px}.team-editor,.team-credential,.team-tools{padding:21px 18px}
 .team-editor h2,.team-credential h2{font-size:22px}.team-form-grid,.team-filter-grid{grid-template-columns:1fr;gap:0}
 .team-permission-note{padding:15px}.team-check{font-size:13px}
 .team-actions{flex-direction:column;align-items:stretch;gap:9px}.team-actions button{width:100%;font-size:13px}
 .team-user{padding:21px 18px}.team-user h3{font-size:18px}.team-user-heading{gap:10px}.team-user .pill{padding:5px 8px;max-width:47%}
 .team-user-actions{gap:9px}.team-user-actions>.secondary{flex:1}.team-user-actions>.text-btn{font-size:12px}
 .team-credential dl{grid-template-columns:1fr;gap:11px}.team-pin-box{padding:18px}.team-pin-value,.team-pin-hidden{font-size:31px;letter-spacing:3px}
 .team-section-top{align-items:flex-start;gap:7px}.team-section-top h2{font-size:21px}
}
@media(max-width:370px){.team-user-heading{flex-direction:column;gap:12px}.team-user .pill{max-width:none}.team-summary span{font-size:12px}.team-toolbar>.primary,.team-toolbar>.secondary{width:100%;flex:auto}.team-user-actions{align-items:stretch;flex-direction:column}.team-user-actions>.secondary,.team-user-actions>.text-btn{width:100%}}
.team-owner{border-color:var(--accent-line);background:linear-gradient(135deg,var(--soft),var(--panel) 75%)}.team-owner .eyebrow{color:var(--accent)}.team-audit{margin:24px 0;padding:24px;min-width:0}.team-audit>.team-section-top{margin:0 0 12px}.team-audit .team-section-top h2{font-size:20px}.team-audit>.team-help{max-width:800px;margin:0 0 18px}.team-audit-events{display:grid;gap:0}.team-audit-event{padding:18px 0;border-top:1px solid var(--line);min-width:0}.team-audit-event>div>strong,.team-audit-event>div>span,.team-audit-event>div>small{display:block;overflow-wrap:anywhere}.team-audit-event>div>strong{font-size:14px}.team-audit-event>div>span,.team-audit-event>div>small{font-size:12px;color:var(--muted);line-height:1.8}.team-audit-event dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}.team-audit-event dl>div{min-width:0}.team-audit-event dt{font-size:11px;color:var(--muted)}.team-audit-event dd{font-size:12px;line-height:1.8;margin:3px 0 0;overflow-wrap:anywhere}.team-audit-event button,.team-audit .team-section-top button{font-size:12px;min-height:44px}.team-audit-event:last-child{padding-bottom:0}.team-audit .error{font-size:13px;overflow-wrap:anywhere}
@media(max-width:700px){.team-audit{padding:20px 18px}.team-audit-event dl{grid-template-columns:1fr;gap:8px}.team-audit>.team-section-top{align-items:stretch;flex-direction:column;gap:10px}.team-audit-event button{width:100%}}

/* Accounts waiting for a manager to approve the PIN their owner created. */
.team-approval-note{border-left:3px solid var(--accent)}
.team-approval{margin-top:8px}

