:root{--agm-portal-black:#101010;--agm-portal-gold:#d4af37;--agm-portal-bg:#f4f5f7;--agm-portal-border:#e3e5e8;--agm-portal-text:#202124;--agm-portal-muted:#67707a;--agm-portal-danger:#b42318;--agm-portal-success:#067647}
body:has(.agm-access-page),body:has(.agm-staff-shell){background:var(--agm-portal-bg)!important}
body:has(.agm-access-page) .entry-header,body:has(.agm-staff-shell) .entry-header,body:has(.agm-access-page) .page-header,body:has(.agm-staff-shell) .page-header{display:none!important}
body:has(.agm-access-page) .site-main,body:has(.agm-staff-shell) .site-main,body:has(.agm-access-page) .entry-content,body:has(.agm-staff-shell) .entry-content{max-width:none!important;width:100%!important;padding:0!important;margin:0!important}
.agm-access-page,.agm-staff-shell{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--agm-portal-text);box-sizing:border-box}
.agm-access-page *,.agm-staff-shell *{box-sizing:border-box}
.agm-access-page{min-height:76vh;padding:54px 20px;display:grid;place-items:center;background:radial-gradient(circle at 85% 10%,rgba(212,175,55,.17),transparent 30%),linear-gradient(145deg,#f6f6f4,#eceef2)}
.agm-access-login{width:min(100%,490px);background:#fff;border:1px solid var(--agm-portal-border);border-radius:24px;padding:38px;box-shadow:0 24px 70px rgba(16,16,16,.12)}
.agm-access-logo{display:inline-flex;margin-bottom:20px}.agm-access-logo img,.agm-access-login>img{display:block;width:175px;max-height:72px;object-fit:contain;object-position:left center}
.agm-access-kicker{display:block;color:#8b6d13;letter-spacing:.14em;font-size:11px;font-weight:800;margin-bottom:8px}
.agm-access-login h1{font-size:32px;line-height:1.12;margin:0 0 10px;color:#111}.agm-access-login>p{color:var(--agm-portal-muted);font-size:15px;line-height:1.65;margin:0 0 25px}
.agm-access-login form{display:grid;gap:17px}.agm-access-login label{display:grid;gap:7px}.agm-access-login label>span{font-size:13px;font-weight:700;color:#32363a}
.agm-access-login input[type=text],.agm-access-login input[type=email],.agm-access-login input[type=password]{width:100%;min-height:49px;border:1px solid #cdd1d5;border-radius:10px;padding:0 13px;background:#fff;color:#111;font-size:15px;box-shadow:none}
.agm-access-login input:focus{outline:0;border-color:#a88620;box-shadow:0 0 0 3px rgba(212,175,55,.18)}
.agm-password-wrap{position:relative}.agm-password-wrap input{padding-right:72px!important}.agm-password-wrap button{position:absolute;right:6px;top:6px;height:37px;border:0;background:#f1f1ee;border-radius:7px;padding:0 11px;font-weight:700;cursor:pointer;color:#333}
.agm-access-primary,.agm-access-secondary,.agm-access-login button[type=submit]{display:inline-flex;justify-content:center;align-items:center;min-height:49px;border-radius:10px;border:1px solid var(--agm-portal-black);padding:0 20px;font-weight:800;text-decoration:none;cursor:pointer;transition:.2s}
.agm-access-primary,.agm-access-login button[type=submit]{background:var(--agm-portal-black);color:#fff}.agm-access-primary:hover,.agm-access-login button[type=submit]:hover{background:#292929;color:var(--agm-portal-gold)}
.agm-access-secondary{background:#fff;color:#111;margin-top:10px}.agm-access-secondary:hover{border-color:var(--agm-portal-gold);color:#111}
.agm-access-links{display:flex;flex-wrap:wrap;gap:10px 20px;justify-content:space-between;margin-top:21px;padding-top:18px;border-top:1px solid #eee}.agm-access-links a{color:#69520f;font-weight:700;text-decoration:none;font-size:13px}
.agm-access-alert{border-radius:10px;padding:12px 14px;margin:0 0 17px;font-size:14px;line-height:1.45}.agm-access-alert.is-error{background:#fef3f2;color:var(--agm-portal-danger);border:1px solid #fecdca}.agm-access-alert.is-success{background:#ecfdf3;color:var(--agm-portal-success);border:1px solid #abefc6}
.agm-access-already{text-align:center}.agm-access-already>img{margin:0 auto 20px;object-position:center}.agm-access-already .agm-access-primary,.agm-access-already .agm-access-secondary{width:100%}

.agm-staff-shell{min-height:100vh;background:var(--agm-portal-bg)}
.agm-staff-header{position:sticky;z-index:100;top:0;min-height:76px;background:#111;color:#fff;padding:0 clamp(18px,3vw,46px);display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:3px solid var(--agm-portal-gold);box-shadow:0 4px 18px rgba(0,0,0,.13)}
.agm-staff-brand{display:flex;align-items:center;gap:16px;color:#fff;text-decoration:none}.agm-staff-brand img{width:145px;height:48px;object-fit:contain;object-position:left center;background:#fff;border-radius:7px;padding:5px}.agm-staff-brand div{display:grid}.agm-staff-brand small{font-size:10px;letter-spacing:.14em;color:var(--agm-portal-gold);font-weight:800}.agm-staff-brand strong{font-size:14px;color:#fff}
.agm-staff-header nav{display:flex;align-items:center;gap:18px;font-size:13px}.agm-staff-header nav a{color:#fff;text-decoration:none;font-weight:700}.agm-staff-header nav a:hover{color:var(--agm-portal-gold)}.agm-staff-header nav span{color:#c9c9c9}
.agm-staff-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:calc(100vh - 76px)}
.agm-staff-nav{background:#fff;border-right:1px solid var(--agm-portal-border);padding:22px 13px;display:flex;flex-direction:column;gap:4px}
.agm-staff-nav a{min-height:44px;padding:0 12px;border-radius:9px;display:flex;align-items:center;gap:11px;color:#353a40;text-decoration:none;position:relative}.agm-staff-nav a:hover{background:#f5f2e7;color:#111}.agm-staff-nav a.active{background:#111;color:#fff}.agm-staff-nav a.active .dashicons{color:var(--agm-portal-gold)}.agm-staff-nav a.divider{margin-top:13px;border-top:1px solid #e6e6e6;border-radius:0;padding-top:13px;min-height:57px}.agm-staff-nav b{font-size:13px;font-weight:700}.agm-staff-nav i{margin-left:auto;font-style:normal;background:#d92d20;color:#fff;border-radius:99px;min-width:21px;height:21px;padding:0 6px;display:grid;place-items:center;font-size:10px;font-weight:800}.agm-staff-nav .dashicons{font-size:18px;width:18px;height:18px}
.agm-staff-content{min-width:0;padding:28px clamp(16px,3vw,42px) 60px;overflow:hidden}.agm-staff-content>.wrap{margin:0!important;max-width:1500px}.agm-staff-menu-toggle{display:none}

/* Front-end fallbacks for interfaces reused from the protected WordPress engine. */
.agm-staff-content .button,.agm-staff-content button.button,.agm-staff-content input[type=submit].button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid #b9bec4;border-radius:7px;background:#fff;color:#202124;text-decoration:none;font-size:13px;font-weight:700;line-height:1;cursor:pointer;box-shadow:none}
.agm-staff-content .button:hover{border-color:#222;color:#111}.agm-staff-content .button-primary,.agm-staff-content .agm-black-button{background:#111!important;border-color:#111!important;color:#fff!important}.agm-staff-content .button-primary:hover,.agm-staff-content .agm-black-button:hover{color:var(--agm-portal-gold)!important}
.agm-staff-content input[type=text],.agm-staff-content input[type=email],.agm-staff-content input[type=url],.agm-staff-content input[type=tel],.agm-staff-content input[type=number],.agm-staff-content input[type=password],.agm-staff-content input[type=datetime-local],.agm-staff-content select,.agm-staff-content textarea{max-width:100%;border:1px solid #c8cdd2;border-radius:7px;background:#fff;color:#202124;padding:8px 10px;box-shadow:none}
.agm-staff-content select{min-height:39px}.agm-staff-content textarea{width:100%}.agm-staff-content input:focus,.agm-staff-content select:focus,.agm-staff-content textarea:focus{outline:0;border-color:#9a7614;box-shadow:0 0 0 2px rgba(212,175,55,.17)}
.agm-staff-content .widefat{width:100%;border-collapse:collapse;background:#fff;border:1px solid #dfe2e5}.agm-staff-content .widefat th,.agm-staff-content .widefat td{padding:11px 12px;text-align:left;border-bottom:1px solid #eaebed;vertical-align:top}.agm-staff-content .widefat th{font-size:12px;color:#4f5862;background:#f7f8f9}.agm-staff-content .widefat.striped tbody tr:nth-child(odd){background:#fcfcfc}
.agm-staff-content .notice{padding:11px 14px;margin:12px 0;border-radius:8px;background:#fff;border:1px solid #ddd;border-left-width:4px}.agm-staff-content .notice-success{border-left-color:#16a34a}.agm-staff-content .notice-error{border-left-color:#dc2626}.agm-staff-content .notice p{margin:0}
.agm-staff-content .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.agm-staff-content .tablenav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.agm-staff-content .subsubsub{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:10px 0}.agm-staff-content .subsubsub li{margin:0}.agm-staff-content .subsubsub a{text-decoration:none}

.agm-portal-profile{max-width:900px}.agm-portal-page-title small{font-size:11px;letter-spacing:.15em;color:#8a6810;font-weight:800}.agm-portal-page-title h1{font-size:32px;margin:5px 0 7px}.agm-portal-page-title p{color:var(--agm-portal-muted);margin:0 0 22px}.agm-portal-profile section{background:#fff;border:1px solid var(--agm-portal-border);border-radius:13px;padding:24px}.agm-portal-profile form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.agm-portal-profile label{display:grid;gap:7px}.agm-portal-profile label span{font-size:13px;font-weight:700}.agm-portal-profile button{grid-column:1/-1;justify-self:start;background:#111;color:#fff;border:0;border-radius:8px;min-height:42px;padding:0 22px;font-weight:800;cursor:pointer}

@media(max-width:980px){
 .agm-staff-header nav span{display:none}.agm-staff-layout{grid-template-columns:220px minmax(0,1fr)}.agm-staff-brand div{display:none}
}
@media(max-width:760px){
 .agm-access-page{padding:24px 13px;align-items:start}.agm-access-login{padding:27px 21px;border-radius:17px}.agm-access-login h1{font-size:27px}.agm-access-links{flex-direction:column}
 .agm-staff-header{position:relative;min-height:68px;padding:10px 14px}.agm-staff-brand img{width:125px;height:43px}.agm-staff-header nav{gap:12px}.agm-staff-header nav a:first-child{display:none}.agm-staff-header nav span{display:none}
 .agm-staff-menu-toggle{display:block;width:calc(100% - 28px);margin:14px;border:1px solid #ddd;background:#fff;border-radius:9px;min-height:44px;text-align:left;padding:0 14px;font-weight:800;color:#222}
 .agm-staff-layout{display:block;min-height:auto}.agm-staff-nav{display:none;position:absolute;z-index:90;left:14px;right:14px;border:1px solid #ddd;border-radius:12px;box-shadow:0 16px 35px rgba(0,0,0,.17);padding:10px}.agm-staff-nav.open{display:flex}.agm-staff-content{padding:10px 13px 45px}.agm-portal-profile form{grid-template-columns:1fr}
 .agm-staff-content .agm-ops-heading,.agm-staff-content .agm-admin-heading{align-items:flex-start;gap:12px}.agm-staff-content .agm-ops-heading h1,.agm-staff-content .agm-admin-heading h1{font-size:25px}.agm-staff-content .agm-ops-table-scroll,.agm-staff-content .agm-table-scroll{overflow-x:auto}
}
html:has(body.agm-standalone-portal),body.agm-standalone-portal{margin:0!important;padding:0!important;background:var(--agm-portal-bg)!important}
body.agm-standalone-portal .agm-standalone-portal-main{min-height:100vh;width:100%;margin:0;padding:0}
body.agm-standalone-portal img{max-width:100%;height:auto}


/* Separate partner and staff sign-in identities. */
.agm-access-partner .agm-access-login{border-top:5px solid var(--agm-portal-gold)}
.agm-access-page.agm-access-staff{background:radial-gradient(circle at 80% 10%,rgba(212,175,55,.20),transparent 28%),linear-gradient(145deg,#050505,#171717)}
.agm-access-staff .agm-access-login{border:1px solid rgba(212,175,55,.38);border-top:5px solid var(--agm-portal-gold);background:#121212;box-shadow:0 28px 80px rgba(0,0,0,.48)}
.agm-access-staff .agm-access-kicker{color:var(--agm-portal-gold)}
.agm-access-staff .agm-access-login h1,.agm-access-staff .agm-access-login label>span{color:#fff}
.agm-access-staff .agm-access-login input[type=text],.agm-access-staff .agm-access-login input[type=email],.agm-access-staff .agm-access-login input[type=password]{border-color:#3b3b3b;background:#fff;color:#111}
.agm-access-staff .agm-access-check span{color:#e6e6e6!important}
.agm-access-staff .agm-access-links{border-top-color:#333}
.agm-access-staff .agm-access-links a{color:#e2bd4b}
.agm-access-staff .agm-access-primary,.agm-access-staff .agm-access-login button[type=submit]{background:var(--agm-portal-gold);border-color:var(--agm-portal-gold);color:#111}
.agm-access-staff .agm-access-primary:hover,.agm-access-staff .agm-access-login button[type=submit]:hover{background:#f0cd62;color:#111}
.agm-access-links.is-single{justify-content:flex-start}
html:has(body.agm-standalone-portal){margin:0!important;padding:0!important;background:var(--agm-portal-bg)!important}
body.agm-standalone-portal{width:100%!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:0!important}
body.agm-standalone-portal #agm-portal-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}

/* v4.15.3 — selected banners across partner/staff portal sections */
.agm-placement-banners{display:grid;gap:14px;width:100%;margin:0 0 20px}.agm-placement-banner{position:relative;width:100%;overflow:hidden;border:1px solid #d8dadd;border-radius:10px;background:#111;box-shadow:0 2px 10px rgba(0,0,0,.04)}.agm-placement-banner-main{aspect-ratio:5/2}.agm-placement-banner-side_1,.agm-placement-banner-side_2{aspect-ratio:40/19}.agm-placement-banner-tile_1,.agm-placement-banner-tile_2,.agm-placement-banner-tile_3{aspect-ratio:30/13}.agm-placement-banner-mid{aspect-ratio:70/13}.agm-placement-banner-track{position:absolute;inset:0}.agm-placement-banner-slide{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;visibility:hidden;transition:opacity .35s ease;z-index:1}.agm-placement-banner-slide.is-active{opacity:1;visibility:visible;z-index:2}.agm-placement-banner-slide picture,.agm-placement-banner-slide img{display:block;width:100%;height:100%}.agm-placement-banner-slide img{object-fit:contain;object-position:center}.agm-placement-banner.is-static .agm-placement-banner-slide{opacity:1;visibility:visible}.agm-placement-banner-dots{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:5;display:flex;gap:6px;padding:5px 7px;border-radius:999px;background:rgba(17,17,17,.55)}.agm-placement-banner-dots button{appearance:none;width:8px;height:8px;border:1px solid #fff;border-radius:50%;padding:0;background:transparent;cursor:pointer}.agm-placement-banner-dots button.is-active{background:#d6a900;border-color:#d6a900}@media(max-width:650px){.agm-placement-banner{border-radius:7px}.agm-placement-banner-main.has-mobile-art{aspect-ratio:8/9}.agm-placement-banners{gap:10px;margin-bottom:15px}}

/* v4.15.6 — preserve banner slot geometry on partner/staff portal placements. */
.agm-placement-banners{display:grid;gap:16px;width:100%;margin:0 0 20px}
.agm-placement-banner-board{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(240px,1fr);grid-template-areas:"main side";gap:16px;align-items:start;width:100%}
.agm-placement-banner-main-col{grid-area:main;min-width:0;width:100%}
.agm-placement-banner-side-stack{grid-area:side;display:grid;grid-template-columns:1fr;gap:16px;min-width:0;width:100%;align-self:start}
.agm-placement-banner-board.main-only{grid-template-columns:1fr;grid-template-areas:"main"}
.agm-placement-banner-board.side-only{grid-template-columns:minmax(0,2.5fr) minmax(240px,1fr);grid-template-areas:"empty side"}
.agm-placement-banner-board.side-only .agm-placement-banner-side-stack{grid-area:side;justify-self:end}
.agm-placement-banner-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%}
.agm-placement-banner-tiles.count-1{grid-template-columns:1fr}.agm-placement-banner-tiles.count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.agm-placement-banner-wide-row{width:100%}
.agm-placement-banner-main{aspect-ratio:5/2}.agm-placement-banner-side_1,.agm-placement-banner-side_2{aspect-ratio:40/19}.agm-placement-banner-tile{aspect-ratio:30/13}.agm-placement-banner-mid{aspect-ratio:70/13}
@media(max-width:900px){.agm-placement-banner-board,.agm-placement-banner-board.side-only{grid-template-columns:1fr;grid-template-areas:"main" "side"}.agm-placement-banner-board.side-only{grid-template-areas:"side"}.agm-placement-banner-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}.agm-placement-banner-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.agm-placement-banner-tiles.count-3 .agm-placement-banner:last-child{grid-column:1/-1}}
@media(max-width:650px){.agm-placement-banner-board,.agm-placement-banner-board.side-only{display:grid;grid-template-columns:1fr;grid-template-areas:"main" "side";gap:8px}.agm-placement-banner-board.side-only{grid-template-areas:"side"}.agm-placement-banner-side-stack,.agm-placement-banner-tiles,.agm-placement-banner-tiles.count-1,.agm-placement-banner-tiles.count-2,.agm-placement-banner-tiles.count-3{grid-template-columns:1fr;gap:8px}.agm-placement-banner-tiles.count-3 .agm-placement-banner:last-child{grid-column:auto}.agm-placement-banner-main.has-mobile-art{aspect-ratio:8/9}}
