/*
 * ZOMZEY Agency Profiles 20 - represented-member relationship badge.
 * Copyright © 2026 ITXL LTD. GPL-2.0-or-later where required.
 */
.zzagp-represented-by{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;margin:10px 0 14px;padding:7px 11px;border:1px solid rgba(0,255,255,.35);border-radius:11px;background:linear-gradient(135deg,rgba(0,255,255,.09),rgba(13,28,59,.88));box-shadow:0 10px 28px rgba(0,0,0,.18);font-family:Inter,system-ui,sans-serif}
.zzagp-represented-by img{width:32px!important;height:32px!important;object-fit:contain!important;flex:0 0 auto;filter:drop-shadow(0 5px 10px rgba(0,0,0,.28))}
.zzagp-represented-by a{display:block;min-width:0;color:#dffeff!important;text-decoration:none!important;font-size:11.5px;font-weight:750;line-height:1.25}
.zzagp-represented-by small{display:block;color:#00FFFF;font-size:8px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;margin-bottom:2px}
.zzagp-represented-by:hover{border-color:rgba(0,255,255,.68);background:linear-gradient(135deg,rgba(0,255,255,.14),rgba(13,28,59,.95))}
@media(max-width:560px){.zzagp-represented-by{width:100%;box-sizing:border-box}}
.zzagp-representation-block{display:block;margin:10px 0 15px}
.zzagp-representation-block .zzagp-represented-by{margin:0 0 10px}
.zzagp-open-control{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid rgba(0,255,255,.26);border-radius:12px;background:linear-gradient(135deg,rgba(0,255,255,.06),rgba(8,21,45,.94));font-family:Inter,system-ui,sans-serif}
.zzagp-open-control small,.zzagp-open-public small{display:block;color:#00FFFF;font-size:8px;font-weight:850;letter-spacing:.13em;margin-bottom:3px}
.zzagp-open-control strong{display:block;color:#fff;font-size:12px}.zzagp-open-control p{margin:3px 0 0;color:#9eacc6;font-size:10.5px;line-height:1.45;max-width:610px}
.zzagp-open-switch{position:relative;flex:0 0 auto;width:48px;height:26px;border:0;border-radius:999px;background:#3b4963;cursor:pointer;padding:0}.zzagp-open-switch span{position:absolute;left:4px;top:4px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .18s ease}.zzagp-open-switch.is-on{background:#00FFFF}.zzagp-open-switch.is-on span{left:26px}.zzagp-open-switch:disabled{opacity:.55;cursor:wait}
.zzagp-open-public{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(0,255,255,.34);border-radius:999px;background:rgba(0,255,255,.07);color:#dffeff;font:750 10px/1.2 Inter,system-ui,sans-serif}.zzagp-open-public small{margin:0}
@media(max-width:560px){.zzagp-open-control{align-items:flex-start}.zzagp-open-control p{max-width:none}}


/* Version 20: cleaner represented-by treatment. */
.zzagp-represented-by{border-radius:9px;background:#07142b;box-shadow:none;padding:8px 10px}
.zzagp-represented-by a{display:grid!important;grid-template-columns:auto auto;column-gap:8px;align-items:baseline;font-weight:500!important}
.zzagp-represented-by a small{grid-column:1/-1;font-weight:600!important;letter-spacing:.12em}
.zzagp-represented-by a strong{color:#eaffff;font-size:11.5px;font-weight:500}
.zzagp-represented-by a span{color:#00FFFF;font-size:9.5px;font-weight:500}
.zzagp-represented-by:hover{background:#091a34}
.zzagp-open-control strong{font-weight:500}.zzagp-open-control small,.zzagp-open-public small{font-weight:600}


/* Version 23 final Agency relationship typography. */
.zzagp-represented-by a{font-weight:500!important}
.zzagp-represented-by small{font-weight:600!important}
.zzagp-open-control small,.zzagp-open-public small{font-weight:600!important}
.zzagp-open-public{font-weight:500!important}

/* Version 26: relationship status, recorded term and canonical leave controls. */
.zzagp-represented-copy{min-width:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px}
.zzagp-represented-copy small{flex:0 0 100%}
.zzagp-represented-copy strong{color:#eaffff;font-size:12px;font-weight:500}
.zzagp-represented-copy span{color:#9eacc6;font-size:10.5px;font-weight:400}
.zzagp-agency-link{color:#00FFFF!important;font-size:10px!important;font-weight:500!important;text-decoration:none!important}
.zzagp-term-control,.zzagp-leave-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:8px;padding:12px 14px;border:1px solid rgba(0,255,255,.2);border-radius:12px;background:#07142b;font-family:Inter,system-ui,sans-serif}
.zzagp-term-copy small,.zzagp-leave-control small{display:block;color:#00FFFF;font-size:8px;font-weight:600;letter-spacing:.13em;margin-bottom:3px}
.zzagp-term-copy strong,.zzagp-leave-control strong{display:block;color:#fff;font-size:12px;font-weight:500}
.zzagp-term-copy p,.zzagp-leave-control p{margin:3px 0 0;color:#9eacc6;font-size:10.5px;line-height:1.45;max-width:610px}
.zzagp-term-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.zzagp-term-date{min-height:34px;padding:6px 8px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#0a1b36;color:#fff;font:500 11px/1.2 Inter,system-ui,sans-serif;color-scheme:dark}
.zzagp-term-save,.zzagp-leave-button{min-height:34px;padding:7px 11px;border-radius:7px;font:500 10.5px/1 Inter,system-ui,sans-serif;cursor:pointer}
.zzagp-term-save{border:1px solid rgba(0,255,255,.45);background:rgba(0,255,255,.08);color:#dffeff}
.zzagp-term-save:hover{background:rgba(0,255,255,.14)}
.zzagp-leave-control{border-color:rgba(255,255,255,.14)}
.zzagp-leave-button{border:1px solid rgba(255,120,120,.4);background:rgba(150,35,45,.16);color:#ffd9dc;white-space:nowrap}
.zzagp-leave-button:hover{background:rgba(170,40,52,.25)}
.zzagp-term-save:disabled,.zzagp-leave-button:disabled{opacity:.55;cursor:wait}
@media(max-width:680px){.zzagp-term-control,.zzagp-leave-control{align-items:flex-start;flex-direction:column}.zzagp-term-actions{width:100%;flex-wrap:wrap}.zzagp-term-date{flex:1 1 160px}.zzagp-leave-button{width:100%}}


/* Version 27: four compact member controls directly below the cover/profile panel. */
#zzv3-profile .zzagp-representation-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:
        "invitations term"
        "current leave";
    gap:10px 12px;
    margin:0 0 18px;
}
#zzv3-profile .zzagp-rep-card{
    min-width:0;
    min-height:94px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:11px 13px;
    border:1px solid rgba(0,255,255,.20);
    border-radius:10px;
    background:#07142b;
    font-family:Inter,system-ui,sans-serif;
    box-shadow:none;
}
#zzv3-profile .zzagp-rep-invitations{grid-area:invitations;background:linear-gradient(135deg,rgba(0,255,255,.055),rgba(8,21,45,.96))}
#zzv3-profile .zzagp-rep-current{grid-area:current;justify-content:flex-start}
#zzv3-profile .zzagp-rep-term{grid-area:term}
#zzv3-profile .zzagp-rep-leave{grid-area:leave;border-color:rgba(255,255,255,.14)}
#zzv3-profile .zzagp-rep-card small{
    display:block;
    color:#00FFFF;
    font-size:8px;
    font-weight:600;
    letter-spacing:.13em;
    margin-bottom:3px;
}
#zzv3-profile .zzagp-rep-card strong{display:block;color:#fff;font-size:12px;font-weight:500}
#zzv3-profile .zzagp-rep-card p{margin:3px 0 0;color:#9eacc6;font-size:10.5px;line-height:1.45;max-width:440px}
#zzv3-profile .zzagp-rep-current>img{width:32px!important;height:32px!important;object-fit:contain!important;flex:0 0 auto}
#zzv3-profile .zzagp-rep-current .zzagp-represented-copy{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px;row-gap:2px}
#zzv3-profile .zzagp-rep-current .zzagp-represented-copy small{flex:0 0 100%}
#zzv3-profile .zzagp-rep-current .zzagp-represented-copy span{color:#9eacc6;font-size:10.5px;font-weight:400}
#zzv3-profile .zzagp-rep-current .zzagp-agency-link{color:#00FFFF!important;font-size:10px!important;font-weight:500!important;text-decoration:none!important}
#zzv3-profile .zzagp-term-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
#zzv3-profile .zzagp-term-date{min-height:32px;max-width:145px;padding:5px 7px;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#0a1b36;color:#fff;font:500 10.5px/1.2 Inter,system-ui,sans-serif;color-scheme:dark}
#zzv3-profile .zzagp-term-save,
#zzv3-profile .zzagp-leave-button{
    min-height:29px;
    padding:5px 7px;
    border-radius:7px;
    font:500 9.5px/1 Inter,system-ui,sans-serif;
    cursor:pointer;
    white-space:nowrap;
}
#zzv3-profile .zzagp-term-save{border:1px solid rgba(0,255,255,.45);background:rgba(0,255,255,.08);color:#dffeff}
#zzv3-profile .zzagp-term-save:hover{background:rgba(0,255,255,.14)}
#zzv3-profile .zzagp-leave-button{border:1px solid rgba(255,120,120,.4);background:rgba(150,35,45,.16);color:#ffd9dc}
#zzv3-profile .zzagp-leave-button:hover{background:rgba(170,40,52,.25)}
#zzv3-profile .zzagp-term-save:disabled,
#zzv3-profile .zzagp-leave-button:disabled{opacity:.55;cursor:wait}
@media(max-width:780px){
    #zzv3-profile .zzagp-representation-grid{
        grid-template-columns:1fr;
        grid-template-areas:"invitations" "current" "term" "leave";
    }
}
@media(max-width:560px){
    #zzv3-profile .zzagp-rep-card{align-items:flex-start;flex-direction:column;min-height:0}
    #zzv3-profile .zzagp-rep-current{flex-direction:row;align-items:center}
    #zzv3-profile .zzagp-term-actions{width:100%;flex-wrap:wrap}
    #zzv3-profile .zzagp-term-date{flex:1 1 145px;max-width:none}
}


/* Version 28 typography-size test: one helper sentence only. */
#zzv3-profile .zzagp-rep-invitations p{font-size:12.5px}


/* Version 29: founder-approved helper-copy size across the four member cards. */
#zzv3-profile .zzagp-rep-card p,
#zzv3-profile .zzagp-rep-current .zzagp-represented-copy span{
    font-size:12.5px!important;
    line-height:1.45!important;
}


/* Version 30: complete relationship-card supporting-copy readability pass.
   The calibrated 12.5px size applies to all secondary relationship text,
   including status and View Agency. Micro headings and deliberately compact
   date/action controls stay unchanged. */
#zzv3-profile .zzagp-rep-card p,
#zzv3-profile .zzagp-rep-current .zzagp-represented-copy span,
#zzv3-profile .zzagp-rep-current .zzagp-agency-link,
#zzv3-profile .zzagp-open-control p,
#zzv3-profile .zzagp-represented-copy span,
#zzv3-profile .zzagp-term-copy p,
#zzv3-profile .zzagp-leave-control p,
#zzv3-profile .zzagp-agency-link{
    font-size:12.5px!important;
    line-height:1.45!important;
}
