/* Team (Phase 5): the Support Center sheet (support.css), plus what Team adds — role choices, store and permission checklists, the invitation code. */
.team-stack,.team-section{display:flex;flex-direction:column;gap:10px}
.team-section{padding-top:12px;border-top:1px solid var(--border,#e2e8f0)}
.team-org{cursor:default;flex-wrap:wrap}
.team-org-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.team-org-actions .btn{min-height:44px}
.team-join{min-height:48px}
.team-chips{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.team-chip--owner{background:#ede9fe;color:#5b21b6}
.team-chip--role{background:#dbeafe;color:#1e40af}
.team-chip--suspended{background:#fef3c7;color:#92400e}
.team-fieldset{border:1px solid var(--border,#e2e8f0);border-radius:14px;padding:10px 12px;margin:6px 0 0;min-width:0}
.team-fieldset legend{font-weight:700;font-size:.9rem;padding:0 6px}
.team-fieldset[hidden],.team-advanced[hidden],.team-checks[hidden]{display:none}
.team-option,.team-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:6px 4px;cursor:pointer}
.team-option input,.team-check input{width:20px;height:20px;margin:2px 0 0;flex:none;accent-color:var(--primary,#2563eb)}
.team-option>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.team-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:0 12px}
.team-advanced{border:1px dashed var(--border,#cbd5e1);border-radius:14px;padding:10px 12px;margin-top:6px}
.team-advanced summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
.team-code{display:block;padding:14px;border-radius:12px;background:var(--bg-3,#f1f5f9);font:600 1rem/1.5 ui-monospace,Consolas,monospace;word-break:break-all;user-select:all;text-align:center}
.team-danger{color:#b91c1c;border-color:#fca5a5}
.team-danger-solid{background:#b91c1c;color:#fff;border:0;min-height:44px}
.team-confirm{padding:12px;border-radius:12px;background:#fef2f2;color:#7f1d1d}
.team-confirm p{margin:0 0 6px}
.team-devices,.team-stock-list,.team-closed-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.team-device,.team-stock-item{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border,#e2e8f0);border-radius:14px}
.team-closed-list li{padding:8px 12px;border-radius:10px;background:var(--bg-3,#f1f5f9);color:var(--text-dim,#64748b)}
.team-store{display:flex;flex-direction:column;gap:8px}
.team-stock-qty{font-weight:800;font-variant-numeric:tabular-nums}
.team-qty{width:88px;min-height:44px;box-sizing:border-box}
.team-status:empty{display:none}
body.dark-mode .team-confirm{background:#450a0a;color:#fecaca}
body.dark-mode .team-chip--owner{background:#3b0764;color:#ede9fe}
body.dark-mode .team-chip--role{background:#1e3a8a;color:#dbeafe}
