/* Plan 09 - unified accounts: sign-in, claim, player / parent dashboards, profile, portal invite controls.
   Loaded via $extraHead on the pages that need it; style.css / admin.css are untouched. */
.acct-narrow { max-width: 520px; }
.hero-link { color: var(--gold, #c9a95c); text-decoration: none; border-bottom: 1px dotted currentColor; }
.hero-link:hover { color: #fff; }
.claim-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cream, #f5f1e8); color: var(--navy, #1f2d4d); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: .5rem; }

/* role strip on the captain dashboard */
.acct-role-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.acct-role-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border-radius: 999px; background: #fff; color: var(--navy, #1f2d4d); text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: 0 2px 8px rgba(20,26,43,.08); }
.acct-role-link:hover { background: var(--navy, #1f2d4d); color: #fff; }

/* badges shared by portal pages */
.acct-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #eef1f6; color: #3a4258; line-height: 1.2; }
.acct-badge.ok { background: #e3f3e8; color: #1f6b3a; }
.acct-badge.warn { background: #fff1d6; color: #8a5a00; }
.acct-badge.muted { background: #f1f1f1; color: #6c757d; font-weight: 500; }

/* player / parent tiles */
.acct-me { display: flex; align-items: center; gap: .9rem; padding: .75rem .9rem; border-radius: 12px; background: var(--cream, #f5f1e8); margin-top: .75rem; }
.acct-jersey { font-family: 'Barlow Condensed', 'Montserrat', sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--navy, #1f2d4d); min-width: 2.6rem; text-align: center; }
.acct-waiver { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .75rem; }
.acct-waiver .btn-sm { min-height: 44px; }
.acct-roster summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; color: var(--navy, #1f2d4d); }
.acct-roster ul { margin-top: .5rem; border-top: 1px solid rgba(0,0,0,.08); }
.acct-roster li { display: grid; grid-template-columns: 2.4rem 1fr 2.4rem; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid rgba(0,0,0,.06); font-size: .92rem; }
.acct-roster li .num { font-weight: 800; color: var(--accent, #b22234); }
.acct-roster li .name b { color: var(--navy, #1f2d4d); margin-left: .25rem; }

/* profile */
.acct-switch { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.acct-switch .form-check-input { width: 2.6em; height: 1.4em; margin: 0; flex: none; }
.acct-spots { display: flex; flex-direction: column; gap: .6rem; }
.acct-spot { display: grid; grid-template-columns: 1fr; gap: .6rem; align-items: center; padding: .75rem; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: #fff; }
.acct-spot-team { display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.acct-spot-field { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 600; font-size: .85rem; }
.acct-spot-field .form-control, .acct-spot-field .form-select { min-height: 48px; }
@media (min-width: 640px) { .acct-spot { grid-template-columns: 1fr 110px 120px auto; } }

/* roster invite line (portal/team.php) */
.invite-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem 0 .25rem; font-size: .85rem; }
.invite-line .inv-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-left: auto; }
.invite-line .inv-email { max-width: 220px; min-height: 40px; }
.invite-line .inv-role { width: auto; min-height: 40px; }
.invite-line .btn-sm { min-height: 40px; }
@media (max-width: 575.98px) { .invite-line .inv-form { margin-left: 0; width: 100%; } .invite-line .inv-email { max-width: none; flex: 1 1 160px; } }

/* admin accounts page */
.role-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }
.role-chip.role-admin { background: #1f2d4d; color: #fff; }
.role-chip.role-scorekeeper { background: #fff1d6; color: #8a5a00; }
.role-chip.role-member { background: #e9ecef; color: #3a4258; }
.role-chip.role-captain { background: #e3f3e8; color: #1f6b3a; }
.role-chip.role-player { background: #e5eef9; color: #1f4d8a; }
.role-chip.role-parent { background: #f3e8f9; color: #6a2f8a; }
.role-chip.role-invited { background: #f8f9fa; color: #6c757d; border: 1px dashed #ced4da; }
.acct-filter .form-control, .acct-filter .form-select, .acct-filter .btn { min-height: 40px; }
.acct-table td { vertical-align: middle; }
.acct-table .chips { display: flex; flex-wrap: wrap; gap: .25rem; }
@media (max-width: 767.98px) {
    .acct-table thead { display: none; }
    .acct-table tr { display: block; border-bottom: 1px solid #dee2e6; padding: .5rem 0; }
    .acct-table td { display: block; border: 0; padding: .2rem .75rem; }
    .acct-table td.actions { padding-top: .5rem; }
    .admin-main .acct-table .btn, .modal .btn:not(.btn-close) { min-height: 44px; }
    .modal .form-control, .modal .form-select { min-height: 48px; }
}
.member-list { list-style: none; margin: 0; padding: 0; }
.member-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.member-list li .who { flex: 1 1 200px; min-width: 0; }
.member-list li .who small { display: block; color: #6c757d; }
.member-list li .btn-sm { min-height: 40px; }
.member-list .inv-inline { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-left: auto; }
.member-list .inv-inline .form-control { min-height: 40px; max-width: 220px; }
