#team-view{padding-bottom:32px}
.sidebar [data-view=team]{position:relative}.team-nav-badge{display:grid;place-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 5px;border-radius:7px;background:#e3485f;color:#fff;font-size:10px;font-weight:800}
#team-view .team-intro{align-items:center;margin-bottom:20px}
#team-view .team-intro h2{font-size:26px;letter-spacing:-.035em}
.team-role-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px}
.team-role-guide>div{padding:17px 18px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.team-role-guide strong{display:block;margin-bottom:7px;color:var(--text);font-size:14px}
.team-role-guide p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.team-ready-alert{margin:0 0 16px;padding:14px 17px;border:1px solid #d8a44e;border-radius:13px;background:#fff7e8;color:#623e0c}
.team-ready-alert p{margin:3px 0 0;font-size:12px}
body.theme-dark .team-ready-alert{border-color:#9b7744;background:#362d20;color:#ffe1a6}
.team-owner{margin-bottom:19px}
.team-owner .team-member-head{margin-bottom:13px}
.team-owner h3{margin:0 0 3px}
.team-owner #team-owner-form{grid-template-columns:repeat(2,minmax(0,1fr)) auto;align-items:end}
.team-owner #team-owner-form button{min-height:42px}
.team-access{display:grid;gap:9px;margin:0 0 18px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.team-access>strong{font-size:12px;color:var(--text)}
.team-access>div{display:flex;flex-wrap:wrap;gap:6px}
.team-access>div span{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-size:11px;font-weight:650}
.team-access small{color:var(--muted);font-size:11px;line-height:1.5}
.team-card fieldset{padding-top:3px}
.team-card fieldset p{line-height:1.5}
.team-member{display:block}
.team-app-grants{display:grid;gap:8px;margin-top:19px;padding-top:18px;border-top:1px solid var(--line)}
.team-section-heading strong{display:block;color:var(--text);font-size:14px}
.team-section-heading p{margin:4px 0 8px;color:var(--muted);font-size:12px;line-height:1.5}
.team-grant-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft)}
.team-grant-row>div:first-child{min-width:0}
.team-grant-row strong,.team-grant-row small{display:block}
.team-grant-row strong{color:var(--text);font-size:12px}
.team-grant-row small{margin-top:2px;color:var(--muted);font-size:11px}
.team-grant-row p{margin:5px 0 0;color:var(--text);font-size:11px;line-height:1.45;overflow-wrap:anywhere}
.team-grant-row .team-grant-error{color:#b14253}
body.theme-dark .team-grant-row .team-grant-error{color:#ffafbd}
.team-grant-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex:none}
#team-view .team-grant-actions button{min-height:32px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:11px;font-weight:700;cursor:pointer}
#team-view .team-grant-actions button:hover{border-color:var(--brand);background:var(--brand-soft)}
#team-view .team-grant-actions .team-grant-confirm{border-color:#4658cb;background:#4658cb;color:#fff}
#team-view .team-grant-actions .team-grant-confirm:hover{background:#3448ad;color:#fff}
.team-grant-done{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:rgba(34,197,94,.13);color:var(--success);font-size:11px;font-weight:800}
.team-grant-limit{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.team-note:not(:empty){padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
#team-view .team-check{background:var(--surface);color:var(--text)}
#team-view .team-check:has(input:checked){background:var(--brand-soft)}
#team-view .team-card input:focus-visible,#team-view .team-card select:focus-visible,#team-view button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:1200px){.team-role-guide{grid-template-columns:1fr}.team-owner #team-owner-form{grid-template-columns:repeat(2,minmax(0,1fr))}.team-owner #team-owner-form button{grid-column:1/-1;justify-self:start}}
@media(max-width:700px){.team-grant-row{align-items:stretch;flex-direction:column}.team-grant-actions{justify-content:flex-start}.team-owner #team-owner-form{grid-template-columns:1fr}}
