.team-page{max-width:1160px;margin:0 auto;padding:12px 0 64px}.team-narrow{max-width:760px}.team-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:8px 0 28px}.team-heading h1{font-size:30px;line-height:36px;margin:4px 0 8px;color:#252633;font-weight:700}.team-heading p{margin:0;color:#6b7081;font-size:14px;line-height:20px}.team-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.team-stats>div,.team-panel{background:#fff;border:1px solid #e6e9f0;border-radius:16px;box-shadow:0 8px 28px #152a4708}.team-stats>div{padding:20px 24px;display:grid;gap:8px}.team-stats span{color:#697386;font-size:14px}.team-stats strong{font-size:30px;line-height:36px;color:#17233a}.team-panel{padding:24px;margin:0 0 20px}.team-panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.team-panel h2{font-size:20px;line-height:28px;font-weight:700;margin:0 0 16px;color:#17233a}.team-panel-heading h2{margin:0}.team-panel-heading>span{color:#68758b;background:#f1f4f8;border-radius:8px;padding:4px 10px;font-size:14px}.team-person,.team-task{display:flex;align-items:center;gap:16px;padding:16px 4px;border-top:1px solid #edf0f4;color:#1f2b42;min-width:0}.team-person:hover,.team-task:hover{background:#f8faff}.team-person:focus-visible,.team-task:focus-visible,.team-back:focus-visible{outline:2px solid #2759bc;outline-offset:2px}.team-person-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:12px;background:#e9efff;color:#2454aa;font-weight:700;font-size:18px}.team-person-info,.team-task>span:first-child{display:grid;gap:4px;flex:1;min-width:0}.team-person-info strong,.team-task strong{font-size:16px;line-height:24px}.team-person-info small,.team-task small{font-size:14px;line-height:20px;color:#6b7081;overflow-wrap:anywhere}.team-person-status{border-radius:999px;padding:5px 10px;background:#f4f5f7;color:#6b7081;font-size:12px;white-space:nowrap}.team-person-status.active{background:#e8f8ee;color:#207a48}.team-empty,.team-hint{color:#6b7081;font-size:14px;line-height:20px}.team-back{display:inline-block;margin-bottom:18px;color:#315db7;font-size:14px}.team-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.team-form form,.team-form-grid{display:grid;gap:18px}.team-form-grid{grid-template-columns:1fr 1fr}.team-full{grid-column:1/-1}.team-form label{display:grid;gap:7px;font-size:14px;font-weight:600;color:#26344a}.team-form input:not([type=checkbox]),.team-form select{width:100%;min-height:42px;padding:9px 12px;border:1px solid #d7deea;border-radius:8px;font:inherit;background:#fff;color:#17233a}.team-form input:focus,.team-form select:focus{outline:2px solid #315db7;outline-offset:2px}.team-form small{font-size:12px;line-height:16px;color:#6b7081;font-weight:400}.team-spaces{display:flex;flex-wrap:wrap;gap:10px;border:0;padding:0;margin:2px 0}.team-spaces legend{font-size:14px;font-weight:600;margin-bottom:10px}.team-spaces label{display:flex;align-items:center;gap:8px;border:1px solid #dfe4ed;border-radius:8px;padding:9px 12px;font-weight:500;cursor:pointer}.team-spaces input{accent-color:#315db7}.team-actions{display:flex;justify-content:flex-end;gap:10px}.team-danger{border-top:1px solid #edf0f4;padding-top:20px;margin-top:24px}.team-log{border-top:1px solid #edf0f4;padding:12px 0;display:flex;justify-content:space-between;gap:16px;font-size:14px}.team-log small{color:#7a8495}@media(max-width:760px){.team-heading{align-items:flex-start;flex-direction:column}.team-stats{grid-template-columns:1fr}.team-detail-grid,.team-form-grid{grid-template-columns:1fr}.team-person-status{display:none}}

/* Account creation stays in the team context. */
body.staff-drawer-open{overflow:hidden}
.team-drawer{position:fixed;inset:0;z-index:130;display:block}
.team-drawer[hidden]{display:none}
.team-drawer-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:#15172780;opacity:0;cursor:default;transition:opacity .5s cubic-bezier(.22,1,.36,1)}
.team-drawer-panel{position:absolute;inset:0 0 0 auto;display:flex;flex-direction:column;width:min(100%,520px);height:100dvh;background:#fff;box-shadow:-24px 0 64px #13172722;transform:translateX(100%);transition:transform .5s cubic-bezier(.22,1,.36,1)}
.team-drawer.is-open .team-drawer-backdrop{opacity:1}
.team-drawer.is-open .team-drawer-panel{transform:translateX(0)}
.team-drawer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:32px 32px 24px}
.team-drawer-heading span{color:#5776b1;font-size:12px;line-height:16px;font-weight:700}
.team-drawer-heading h2{margin:8px 0 8px;color:#252633;font-size:24px;line-height:32px;font-weight:700;text-wrap:balance}
.team-drawer-heading p{margin:0;color:#707587;font-size:14px;line-height:20px;text-wrap:pretty}
.team-drawer-close{display:grid;place-items:center;flex:none;width:40px;height:40px;border:0;border-radius:12px;background:#f3f4f8;color:#3a3d4b;font-size:24px;line-height:1;cursor:pointer;transition:background-color .3s cubic-bezier(.22,1,.36,1),transform .3s cubic-bezier(.22,1,.36,1)}
.team-drawer-close:hover{background:#e6ebf3}
.team-drawer-close:active{transform:scale(.98)}
.team-drawer-close:focus-visible,.team-drawer-actions button:focus-visible{outline:2px solid #5776b1;outline-offset:2px}
.team-drawer-form{display:flex;flex-direction:column;min-height:0;flex:1}
.team-drawer-fields{display:grid;align-content:start;flex:1;gap:24px;min-height:0;overflow-y:auto;padding:8px 32px 32px}
.team-drawer-fields label{display:grid;gap:8px}
.team-drawer-fields .custom-select{width:100%}
.team-drawer-fields .team-spaces{margin:0}
.team-drawer-fields .team-spaces label{display:flex;flex-direction:row}
.team-drawer-error{margin:0;padding:12px 16px;border-radius:12px;background:#fff1f0;color:#aa302f;font-size:14px;line-height:20px}
.team-drawer-error[hidden]{display:none}
.team-drawer-actions{display:flex;justify-content:flex-end;gap:12px;padding:16px 32px 24px;background:#fff;box-shadow:0 -12px 24px #17233a08}
.team-drawer-actions .button{font-size:14px;line-height:20px;font-weight:600;padding:8px 12px}
.team-drawer-actions .button:active{transform:scale(.98)}
@media(max-width:600px){.team-drawer-panel{width:100%}.team-drawer-heading{padding:24px 16px 16px}.team-drawer-fields{padding:8px 16px 24px;gap:16px}.team-drawer-actions{padding:16px;flex-wrap:wrap}.team-drawer-actions .button{flex:1}}
@media(prefers-reduced-motion:reduce){.team-drawer-backdrop,.team-drawer-panel{transition:opacity .3s cubic-bezier(.22,1,.36,1)}.team-drawer-panel{transform:none;opacity:0}.team-drawer.is-open .team-drawer-panel{opacity:1}}
