.team-usage-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 18px; }
.usage-card, .team-card { padding: 22px; }
.workspace-card-heading { display: flex; margin-bottom: 20px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.workspace-card-heading h3 { margin-bottom: 5px; }
.workspace-card-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.usage-period { padding: 6px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 9px; font-weight: 700; white-space: nowrap; }
.usage-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.usage-summary div { padding: 13px; border-radius: 12px; background: #fafafe; }
.usage-summary small, .usage-summary strong { display: block; }
.usage-summary small { margin-bottom: 6px; font-size: 9px; }
.usage-summary strong { font-size: 14px; }
.usage-bar { overflow: hidden; height: 8px; margin: 16px 0 8px; border-radius: 999px; background: #ecebf2; }
.usage-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary),#9588ee); transition: width .3s; }
.usage-limit { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.billing-note { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-size: 10px; line-height: 1.5; }
.team-member-list { display: grid; gap: 8px; }
.team-member { display: flex; min-height: 58px; padding: 9px 10px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; }
.team-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: var(--foreground); color: white; font-size: 12px; font-weight: 750; }
.team-member-copy { min-width: 0; flex: 1; }
.team-member-copy > strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.team-member-labels { display: flex; margin-top: 5px; gap: 5px; }
.team-member-labels span { padding: 3px 6px; border-radius: 999px; background: #f1f1f5; color: var(--muted); font-size: 8px; text-transform: capitalize; }
.team-member-labels .team-you { background: var(--primary-soft); color: var(--primary-dark); }
.team-member-labels .team-revoked { background: #fff1f1; color: var(--danger); }
.team-revoked { opacity: .6; }
.team-member > button { flex: 0 0 auto; font-size: 9px; }
.team-invite-form { display: grid; margin-top: 16px; padding-top: 16px; grid-template-columns: minmax(0,1fr) 120px auto; align-items: end; gap: 8px; border-top: 1px solid var(--border); }
.team-invite-form button { min-height: 42px; }
.role-explainer { display: flex; margin: 12px 0 0; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 9px; }
.role-explainer span { padding: 5px 7px; border-radius: 8px; background: #fafafe; }
#teamMessage:not(:empty) { margin-top: 12px; }

@media (max-width: 980px) {
  .team-usage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .usage-summary, .team-invite-form { grid-template-columns: 1fr; }
}
