/* Dashboard teams and auto top-up: the account switcher, the Team section and the Billing auto top-up box. */

.acct-pick { display: grid; gap: 6px; margin: 4px 0 12px; font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.acct-pick .select { width: 100%; height: 36px; padding: 0 10px; font: 500 13px var(--font); letter-spacing: 0; text-transform: none; color: var(--text); }

.nav-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; background: var(--accent); color: #080808; font: 600 10.5px var(--mono); }

.team-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.team-bar b { color: var(--text); font-weight: 600; }

/* Your teams */
.team-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-width: 0; }
.team-list > div:last-child { border-bottom: 0; }
.team-list .who { min-width: 0; display: grid; gap: 2px; }
.team-list .who b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list .who span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-list .acts { display: flex; gap: 8px; flex: none; align-items: center; }
.team-list .is-pending { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* Members */
.team-tbl td { vertical-align: middle; }
.team-tbl .person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-tbl .person .avatar { flex: none; width: 28px; height: 28px; font-size: 12px; }
.team-tbl .person span { display: grid; min-width: 0; }
.team-tbl .person b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-tbl .person small { color: var(--faint); font-size: 12px; }
.team-tbl .select { height: 30px; padding: 0 8px; font-size: 13px; }
.team-tbl .acts { display: inline-flex; gap: 6px; justify-content: flex-end; }
.team-rename { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.team-rename .tin { flex: 1 1 220px; height: 34px; }

.invite-form { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 760px) { .invite-form { grid-template-columns: minmax(0, 1fr) 220px auto; } .invite-form .invite-help { grid-column: 1 / -1; } }
.invite-seg { grid-template-columns: 1fr 1fr; }
.invite-seg button { text-transform: none; letter-spacing: 0; font-family: var(--font); }
.invite-help { margin: 0; font-size: 13px; }
.roles b { white-space: normal; text-align: right; }

/* Auto top-up */
.auto-box .box-head { align-items: center; }
.auto-switch { gap: 10px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); cursor: pointer; }
.auto-switch input:disabled { cursor: not-allowed; opacity: .5; }
.auto-box.is-on .auto-switch span { color: var(--accent); }
.auto-body { display: grid; gap: 18px; }
.auto-lead { margin: 0; font-size: 13.5px; max-width: 640px; }
.auto-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .auto-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.auto-field { display: grid; gap: 8px; min-width: 0; }
.auto-seg { grid-template-columns: repeat(5, 1fr); }
.auto-seg button { font-family: var(--mono); font-size: 12.5px; }
.auto-seg button:disabled, .invite-seg button:disabled { cursor: not-allowed; opacity: .55; }
.auto-field .select { width: 100%; height: 38px; padding: 0 10px; }
.auto-hint { font-size: 12.5px; color: var(--faint); }
.auto-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.auto-card-ic { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--muted); flex: none; }
.auto-card-ic svg { width: 17px; height: 17px; }
.auto-card-text { flex: 1 1 160px; font-size: 13.5px; min-width: 0; }
.auto-card-text b { font-weight: 600; }
.auto-card-act { display: flex; gap: 8px; }
.auto-status, .auto-note { margin: 0; font-size: 13px; color: var(--muted); }
.auto-status.bad { color: var(--c-rose); }
.auto-note { padding: 10px 12px; border: 1px dashed var(--border-strong); }
.auto-box.is-locked .auto-grid, .auto-box.is-locked .auto-card-act { opacity: .6; }
.pay-locked { margin: 0; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
