.team-workspace{width:100%;max-width:1100px;margin:auto}.team-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin:1rem 0}.team-card{min-width:0;overflow-wrap:anywhere}.team-workspace .card{padding:1.2rem;margin-bottom:1rem}.team-workspace button,.team-workspace .primary{margin:.25rem .35rem .25rem 0}.team-workspace h3{margin-top:0}.team-workspace select{max-width:100%}#team-root{margin-top:1.5rem}#modal .form{max-height:75vh;overflow-y:auto;padding:.25rem}.team-workspace .pre{white-space:pre-wrap}@media(max-width:640px){.team-header h1{font-size:1.8rem}.team-workspace .actions{display:flex;flex-wrap:wrap}.team-workspace .card{padding:1rem}}
.team-summary-controls{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.team-stat{padding:1rem;border:1px solid #d9e9e2;border-radius:14px;background:#f3f9f6}.team-stat strong{font-size:1.5rem;color:#176b53}.team-details{padding:1rem;border:1px solid #d9e9e2;border-radius:12px;margin:1rem 0}.team-details>summary{cursor:pointer;font-weight:600;min-height:32px}.team-summary input,.team-summary select{width:auto;max-width:100%}@media(max-width:640px){.team-summary-controls>*{width:100%}.team-workspace .team-grid{grid-template-columns:1fr}}

/* Keep frequent actions visible and secondary controls within reach. */
.team-member-options{margin-top:.6rem;border-top:1px solid #e0e9e4;padding-top:.4rem}
.team-member-options>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;color:#526b61;font-size:.9rem}
.team-workspace :is(button,a,summary):focus-visible{outline:3px solid #249b79;outline-offset:3px}
.team-workspace .team-grid>.card{margin:0}
.team-workspace .team-card p{line-height:1.5;margin:.45rem 0}
.team-workspace .team-details>summary{min-height:44px;align-content:center}
.team-workspace .team-details[open]>summary{margin-bottom:.75rem}
@media(max-width:640px){
 body:has(#team-root) .entry{padding:16px;margin:0 auto}
 body:has(#team-root) nav{gap:12px;font-size:.9rem;padding:10px 0}
 .team-header{gap:8px;margin:8px 0 20px}
 .team-header h1,.entry .team-header h1{font-size:28px;letter-spacing:-.8px;margin:0}
 .team-header>a{min-height:44px;display:flex;align-items:center}
 .team-workspace{font-size:15px;line-height:1.5}
 .team-workspace h2{font-size:21px;line-height:1.25;margin:0 0 12px}
 .team-workspace h3{font-size:17px;line-height:1.4}
 .team-workspace .actions{display:grid;grid-template-columns:1fr;gap:8px;margin:16px 0}
 .team-workspace button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:4px 0}
 .team-workspace .actions>button,.team-workspace .team-card>button,.team-member-options button,.team-details>button{width:100%}
 .team-workspace input,.team-workspace select,.team-workspace textarea{font-size:16px;min-width:0;width:100%}
 .team-workspace .team-grid{gap:12px;margin:12px 0 20px}
 .team-workspace .card{padding:16px;margin:16px 0}
 .team-summary-controls{gap:8px}
 .team-summary-controls select{width:100%}
 .team-workspace .team-stat{padding:14px;min-width:0;overflow-wrap:anywhere}
 .team-workspace .team-details{padding:12px 14px;margin:12px 0}
 body:has(.team-workspace) #modal{width:calc(100% - 24px);max-width:520px;padding:16px;max-height:calc(100dvh - 32px)}
 body:has(.team-workspace) #modal input,body:has(.team-workspace) #modal select,body:has(.team-workspace) #modal textarea{font-size:16px;max-width:100%;min-width:0}
 body:has(.team-workspace) #modal .form{max-height:calc(100dvh - 160px);padding:2px 2px 16px}
 body:has(.team-workspace) #modal .form>[type=submit]{width:100%;min-height:48px}
}

.team-admin-scroll{max-width:100%;overflow-x:auto;border:1px solid #d5e4dc;border-radius:12px}.team-admin-scroll table{width:100%;min-width:640px;border-collapse:collapse}.team-admin-scroll th,.team-admin-scroll td{padding:12px;text-align:left;border-bottom:1px solid #d5e4dc}.team-admin-scroll caption{padding:12px;text-align:left;font-weight:700}.team-admin-scroll th{background:#edf5f0}.team-admin-grid{min-width:0}
.team-admin-grid>button{margin-bottom:12px}.team-admin-grid details{font-size:.9rem;line-height:1.5}.team-admin-grid summary{cursor:pointer;min-height:44px;align-content:center}.team-workspace .team-pagination{display:grid;grid-template-columns:1fr 1fr;gap:8px}.team-pagination button{margin:0;min-height:44px}
