/* Agency member center: calm hierarchy and readable sections */
.agency-page-intro{max-width:760px;margin:8px 0 20px}
.agency-quick-actions{margin-bottom:18px}
.agency-quick-actions h2{margin-top:0}
.agency-quick-actions .actions{gap:10px}
#agencyPortal{gap:14px!important}
.agency-portal-primary{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);gap:14px;align-items:start}
.agency-portal-primary>.agency-member-card,
.agency-portal-primary>#agencyListingRights{margin:0;min-width:0}
.agency-portal-primary .agency-member-card{border-top:3px solid var(--primary,#315c9b)}
.agency-portal-primary #agencyListingRights{border-top:3px solid var(--success,#27845a)}
.agency-member-card h2,.agency-portal-primary #agencyListingRights h2{margin-top:0}
.agency-member-card .facts,.agency-portal-primary #agencyListingRights .facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.agency-member-card .fact,.agency-portal-primary #agencyListingRights .fact{min-width:0;padding:12px;background:var(--surface-soft,#f6f7f9);border-radius:10px}
.agency-member-card .fact b,.agency-portal-primary #agencyListingRights .fact b{display:block;font-size:1.05rem;overflow-wrap:anywhere}
.agency-portal-details{margin:0;border:1px solid var(--border,#e3e6eb);border-radius:12px;background:var(--surface,#fff);overflow:hidden}
.agency-portal-details>summary{cursor:pointer;list-style:none;padding:16px 18px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px}
.agency-portal-details>summary::-webkit-details-marker{display:none}
.agency-portal-details>summary:after{content:'＋';font-size:1.1rem;color:var(--muted,#687386)}
.agency-portal-details[open]>summary:after{content:'−'}
.agency-portal-details[open]>summary{border-bottom:1px solid var(--border,#e3e6eb)}
.agency-portal-details>section.panel{margin:0;border:0;border-radius:0;box-shadow:none}
.agency-portal-details>section.panel+section.panel{border-top:1px solid var(--border,#e3e6eb)}
.agency-portal-details .agency-payment-history{display:grid;gap:10px}
.agency-portal-details .agency-payment-row{padding:12px 0}
@media(max-width:760px){
 .agency-portal-primary{grid-template-columns:1fr}
 .agency-member-card .facts,.agency-portal-primary #agencyListingRights .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .agency-quick-actions .actions .btn{flex:1 1 100%;text-align:center}
 .agency-portal-details>summary{padding:14px}
}
