/* Phase 5 / Batch 3 — scoped account navigation and accessible form layout. */
.afaq-system-body .afaq-profile-section-nav{display:flex;flex-wrap:wrap;gap:8px;max-width:100%;min-width:0;align-items:stretch}
.afaq-system-body .afaq-profile-section-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;box-sizing:border-box;text-align:center;overflow-wrap:anywhere}
.afaq-system-body .afaq-profile-section-nav a[aria-current="page"]{font-weight:700;text-decoration-thickness:2px}
.afaq-system-body .afaq-profile-section-nav a:focus-visible{outline:3px solid var(--afaq-primary,#208c87);outline-offset:2px}
.afaq-system-body .afaq-profile-account-card,.afaq-system-body .afaq-profile-account-card .afaq-profile-data{min-width:0;max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-profile-account-card .afaq-profile-data :is(p,span,b){min-width:0;overflow-wrap:anywhere}
.afaq-system-body .afaq-pin-input{max-width:100%;box-sizing:border-box}
.afaq-system-body .afaq-pin-input .afaq-pin-box{min-width:0;max-width:100%;box-sizing:border-box}
@media(max-width:430px){.afaq-system-body .afaq-profile-section-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.afaq-system-body .afaq-profile-section-nav a{padding-inline:8px}.afaq-system-body .afaq-profile-account-card{padding:16px}}
@media(max-width:340px){.afaq-system-body .afaq-profile-section-nav{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.afaq-system-body .afaq-profile-section-nav a{transition:none}}

/* v7.16.82.172 — scoped, responsive SaaS-style staff account overview */
.afaq-system-body .afaq-account-overview{display:grid;gap:16px;min-width:0}
.afaq-system-body .afaq-account-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.afaq-system-body .afaq-account-hero h2{margin:6px 0;overflow-wrap:anywhere}
.afaq-system-body .afaq-account-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.afaq-system-body .afaq-account-info-item{min-width:0;display:flex;flex-direction:column;gap:9px}
.afaq-system-body .afaq-account-info-item small{opacity:.75}
.afaq-system-body .afaq-account-info-item strong{font-size:1rem;overflow-wrap:anywhere}
.afaq-system-body .afaq-account-action-links{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:960px){.afaq-system-body .afaq-account-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.afaq-system-body .afaq-account-info-grid{grid-template-columns:minmax(0,1fr)}.afaq-system-body .afaq-account-hero .afaq-btn{width:100%;text-align:center}}

/* v7.16.82.172: compact self-service account, no redundant statistic cards */
.afaq-system-body .afaq-account-hero-clean{margin-bottom:14px}
.afaq-system-body .afaq-account-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.afaq-system-body .afaq-account-tabs a{border-radius:10px}
.afaq-system-body .afaq-account-edit{max-width:1100px}
.afaq-system-body .afaq-account-edit .afaq-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:640px){.afaq-system-body .afaq-account-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.afaq-system-body .afaq-account-edit .afaq-form-grid{grid-template-columns:minmax(0,1fr)}}
