/* HG Affiliate — PATCH003 professional UI; all rules scoped to .hga-ui, never to WP admin chrome */
/* Country flags everywhere (Windows has no flag glyphs). Only the regional-indicator letters use this font. Licence: fonts/TwemojiCountryFlags-LICENSE.md */
@font-face{font-family:"Twemoji Country Flags";src:url(fonts/TwemojiCountryFlags.woff2) format("woff2");unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E0063,U+E0065,U+E0067,U+E006C,U+E006E,U+E0073-E0074,U+E0077,U+E007F;font-display:swap}
.hga-ui select,.hga-ui option{font-family:inherit}
.hga-ui{--hga-navy:#12213d;--hga-deep:#152954;--hga-blue:#284ba0;--hga-red:#d73351;--hga-text:#26364f;--hga-muted:#8491a5;--hga-border:#e3e9f3;--hga-canvas:#f5f7fb;--hga-white:#fff;color:var(--hga-text);max-width:1500px;box-sizing:border-box;font-family:"Twemoji Country Flags",-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;font-size:14px}
.hga-ui *,.hga-ui *:before,.hga-ui *:after{box-sizing:border-box}
.hga-ui h1,.hga-ui h2,.hga-ui h3,.hga-ui p{margin:0}.hga-ui button,.hga-ui input,.hga-ui select,.hga-ui textarea{font:inherit}
.hga-ui h1{font-size:31px;line-height:1.22;letter-spacing:-.85px;font-weight:760;color:#1a2b49}.hga-ui h2{font-size:17px;line-height:1.35;letter-spacing:-.25px;font-weight:720;color:#203250}.hga-ui h3{font-size:14px;font-weight:740;color:#243451}
.hga-admin{margin:14px 22px 0 0;padding:0 0 24px;border-radius:14px;background:#f5f7fc;border:1px solid #e4eaf3;min-height:610px;box-shadow:0 2px 24px rgba(25,44,83,.035);overflow:hidden}
.hga-workspace-header,.hga-member-brand{height:77px;padding:0 28px;background:#fff;border-bottom:1px solid #e6ebf3;display:flex;align-items:center;gap:19px}
.hga-wp-brand,.hga-member-brand>div{display:flex;align-items:center;gap:11px}.hga-wp-brand>div,.hga-member-brand>div{display:flex;flex-direction:column;align-items:start;gap:2px}
.hga-wp-brand strong,.hga-member-brand strong{font-size:13px;line-height:1.2;color:#162842}.hga-wp-brand small,.hga-member-brand small{font-size:11px;color:#8997aa}
.hga-logo{display:grid;place-items:center;border-radius:12px;width:45px;height:45px;background:linear-gradient(135deg,#e7415b,#a9294b);color:#fff;font-weight:900;letter-spacing:-1.1px;font-size:16px;box-shadow:0 8px 20px rgba(210,40,73,.22);flex-shrink:0}.hga-logo span{color:#fff;font-size:22px;line-height:0}
.hga-wp-breadcrumb{border-left:1px solid #edf0f5;padding-left:22px;color:#9aabc0;font-size:12px}.hga-wp-breadcrumb span{padding:0 9px;color:#c4cfdd}.hga-wp-breadcrumb strong{color:#324e78;font-weight:650}
.hga-ui-state{margin-left:auto;white-space:nowrap;color:#9a5366;background:#fff0f4;border:1px solid #f9dae0;font-size:10px;font-weight:800;letter-spacing:.055em;padding:7px 10px;border-radius:7px}
.hga-workspace{padding:27px 29px 33px}.hga-module-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:23px}.hga-module-copy{max-width:740px}.hga-module-eyebrow,.hga-eyebrow{display:inline-flex;align-items:center;gap:7px;color:#cf3151;font-size:10px;letter-spacing:1.4px;font-weight:800;text-transform:uppercase}.hga-module-eyebrow{margin-bottom:12px}.hga-module-eyebrow i{height:2px;width:23px;background:#d23355;border-radius:3px}.hga-module-copy>p{font-size:13px;line-height:1.67;color:#8391a4;margin-top:8px;max-width:650px}.hga-head-actions{display:flex;gap:9px;align-items:center;flex-shrink:0}
.hga-btn{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:39px;border:1px solid transparent;padding:9px 14px;border-radius:8px;font-size:12px;font-weight:725;cursor:pointer;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s;white-space:nowrap}.hga-btn:focus-visible,.hga-ui a:focus-visible{outline:2px solid #3767d8;outline-offset:3px}.hga-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(28,54,107,.08)}.hga-btn--primary{background:#c9314f;color:#fff;border-color:#c9314f;box-shadow:0 5px 13px rgba(201,49,79,.15)}.hga-btn--primary:hover{background:#ad2844;color:#fff}.hga-btn--subtle{background:#fff;border-color:#dce4ef;color:#526784}.hga-btn .dashicons{font-size:15px;width:15px;height:15px;line-height:1.2}
.hga-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:17px}.hga-metric{background:#fff;border:1px solid #e3e9f3;border-radius:11px;padding:17px 17px 14px;min-height:144px;position:relative;overflow:hidden;box-shadow:0 3px 14px rgba(13,36,87,.025)}.hga-metric:first-child{border-top:3px solid #db3d59}.hga-metric:nth-child(2){border-top:3px solid #3158ad}.hga-metric:nth-child(3){border-top:3px solid #2a927b}.hga-metric:nth-child(4){border-top:3px solid #d2a353}.hga-metric-label{display:flex;justify-content:space-between;align-items:start;gap:9px;color:#7788a1;font-size:11px;font-weight:660}.hga-metric-label .dashicons{font-size:17px;width:22px;height:22px;color:#acc0df}.hga-metric strong{display:block;font-size:29px;line-height:1.1;margin:17px 0 10px;color:#162944;font-weight:780}.hga-metric-foot{font-size:10px;color:#a1acbc;display:flex;align-items:center;gap:6px}
.hga-major-grid{display:grid;grid-template-columns:minmax(0,1fr) 312px;gap:16px;align-items:start}.hga-major-main,.hga-major-aside{min-width:0;display:grid;gap:16px}.hga-card{background:#fff;border:1px solid #e4e9f2;border-radius:11px;box-shadow:0 3px 15px rgba(17,38,87,.028);overflow:hidden}.hga-card-title{padding:19px 20px 16px;display:flex;align-items:start;justify-content:space-between;gap:15px}.hga-card-title h2{margin-top:7px}.hga-card-title p{color:#93a1b3;font-size:11px;line-height:1.6;margin-top:6px}.hga-outline-pill{padding:6px 9px;border:1px solid #e5eaf4;background:#f9fbff;color:#8397b0;font-size:10px;border-radius:6px;white-space:nowrap}
.hga-table-toolbar{display:flex;align-items:center;gap:9px;padding:0 19px 14px}.hga-find{position:relative;display:flex;flex:1;min-width:135px;align-items:center}.hga-find .dashicons{position:absolute;left:12px;color:#91a4be;width:16px;height:16px;font-size:16px}.hga-find input{width:100%;border:1px solid #e0e7f1;border-radius:7px;min-height:37px;background:#fff;padding:6px 10px 6px 36px;font-size:11px;color:#314868;box-shadow:none}.hga-table-toolbar select{border:1px solid #e0e7f1;min-height:37px;border-radius:7px;background:#fff;padding:0 24px 0 10px;color:#617592;font-size:11px;max-width:155px}.hga-table-toolbar .hga-btn{min-height:37px;padding:7px 10px;font-size:11px}
.hga-table-wrap{max-width:100%;overflow:auto}.hga-record-table{border-collapse:collapse;width:100%;min-width:540px}.hga-record-table th{padding:12px 16px;background:#f7f9fd;border-top:1px solid #eef1f7;border-bottom:1px solid #edf0f6;font-size:11px;letter-spacing:.02em;text-align:left;font-weight:740;color:#5b6b85;white-space:nowrap}.hga-record-table td{padding:0;border-bottom:1px solid #edf0f6}.hga-table-empty{text-align:center;display:flex;align-items:center;flex-direction:column;padding:37px 22px 41px}.hga-empty-icon{width:50px;height:50px;border-radius:15px;background:#eef3fa;color:#7393c9;display:grid;place-items:center;margin-bottom:12px}.hga-empty-icon .dashicons{font-size:24px;width:24px;height:24px}.hga-table-empty h3{font-size:14px;margin-bottom:7px}.hga-table-empty p{color:#94a1b2;font-size:11px;max-width:350px;line-height:1.65}.hga-table-foot{padding:12px 17px;display:flex;justify-content:space-between;gap:15px;color:#8b9cb2;font-size:10px;align-items:center}.hga-table-foot button:not(.hga-btn){width:23px;height:23px;background:#f6f8fc;border:1px solid #e5e9f2;border-radius:6px;color:#9aacc3}.hga-table-foot>div{display:flex;align-items:center;gap:7px}.hga-muted{color:#abb7c6}
.hga-bottom-line{display:flex;justify-content:space-between;gap:12px;padding:14px 28px 17px;border-top:1px solid #e6ebf2;background:#fff;color:#9daabb;font-size:10px}.hga-settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hga-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:#50637e;font-size:11px;font-weight:720}.hga-field input:not([type=checkbox]):not([type=radio]),.hga-field select,.hga-field textarea{width:100%;max-width:100%;min-height:39px;border:1px solid #dce4ef;border-radius:8px;color:#2d405c;background:#fff;padding:9px 11px;font-weight:500;font-size:12px;box-shadow:none}.hga-field textarea:not(.hga-code){min-height:calc(2lh + 20px);resize:vertical;field-sizing:content;max-height:40vh;line-height:1.5}.hga-field:has(textarea){grid-column:1/-1}.hga-field input:focus,.hga-field select:focus,.hga-field textarea:focus{outline:2px solid #9eb9ee;border-color:#648bcf}.hga-checkbox-wrap{display:flex;align-items:center;gap:9px;min-height:38px}.hga-ui .hga-checkbox-wrap input[type="checkbox"],.hga-ui .hga-checkbox-wrap input[type="radio"]{accent-color:#c83252;margin:0}.hga-checkbox-wrap em{font-size:11px;font-weight:500;color:#8191a6;font-style:normal}
/* Settings: only location with its own submenu, still inside normal WP content. */
.hga-settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;margin:25px 27px 30px;min-height:640px;border:1px solid #e2e8f3;border-radius:12px;overflow:hidden;background:#fff}.hga-settings-menu{display:flex;flex-direction:column;padding:0 11px 16px;background:#f7f9fd;border-right:1px solid #e5eaf3}.hga-settings-menu-head{display:flex;align-items:center;gap:11px;padding:21px 11px;margin-bottom:12px;border-bottom:1px solid #e9edf4}.hga-settings-menu-head>.dashicons{background:#e7eefb;color:#375ea8;border-radius:10px;display:grid;place-items:center;font-size:18px;width:38px;height:38px}.hga-settings-menu-head>div{display:flex;flex-direction:column;gap:3px}.hga-settings-menu-head strong{font-size:12px}.hga-settings-menu-head small{font-size:10px;color:#98a7bb}.hga-settings-menu a{display:flex;gap:10px;align-items:center;min-height:40px;padding:9px 11px;color:#7386a1;font-size:11px;font-weight:640;text-decoration:none;border-radius:7px;margin-bottom:3px}.hga-settings-menu a>.dashicons{font-size:11px;width:11px;height:11px;margin-left:auto;color:#bbc8d7}.hga-settings-menu a.is-current{background:#284a90;color:#fff;box-shadow:0 4px 14px rgba(39,77,147,.12)}.hga-settings-menu a.is-current>.dashicons{color:#dce9ff}.hga-settings-menu a:hover:not(.is-current){background:#ecf2fb;color:#385d9d}.hga-sidebullet{height:6px;width:6px;border-radius:50%;background:#d3ddea;flex-shrink:0}.hga-settings-menu a.is-current .hga-sidebullet{background:#ffb7c9}.hga-settings-menu-foot{font-size:10px;color:#899db7;line-height:1.6;margin-top:auto;padding:20px 12px 0}.hga-settings-menu-foot small{color:#b0bdcf}.hga-settings-workspace{padding:28px 29px}.hga-settings-title{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:20px}.hga-settings-title h1{margin-top:10px;font-size:26px}.hga-settings-title p{margin-top:9px;color:#93a3b7;font-size:12px}.hga-settings-callout{background:#eef5ff;border:1px solid #dce9fa;color:#5d79a5;display:flex;gap:10px;padding:12px 14px;border-radius:8px;font-size:11px;margin-bottom:19px;line-height:1.6}.hga-settings-callout .dashicons{color:#527ebd;flex-shrink:0}.hga-settings-form{padding:20px 22px;border:1px solid #e5ebf3;border-radius:10px}.hga-settings-section-head{margin-bottom:22px}.hga-settings-section-head p{margin-top:6px;font-size:11px;color:#9aa6b8}.hga-settings-actions{border-top:1px solid #e8edf4;margin-top:24px;padding-top:17px;display:flex;align-items:center;gap:15px}.hga-settings-actions>span{color:#9da9b8;font-size:11px}
/* Frontend member portal navigation belongs to the member page only. */
.hga-member{max-width:1500px;margin:20px auto 32px;background:#f5f7fb;border:1px solid #e3e9f3;border-radius:14px;overflow:hidden;box-shadow:0 3px 20px rgba(25,52,103,.04)}.hga-member-brand .hga-ui-state{font-size:9px}.hga-member .hga-workspace{padding-top:29px}.hga-ui .hga-module-head h1{padding:0}.hga-ui code{font-size:11px}.hga-ui details{box-shadow:none}
@media(max-width:1320px){.hga-major-grid{grid-template-columns:minmax(0,1fr) 280px}.hga-workspace{padding:25px 22px 28px}}
@media(max-width:1100px){.hga-major-grid{grid-template-columns:1fr}.hga-major-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.hga-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:810px){.hga-admin{margin:10px 10px 0 0}.hga-workspace-header{padding:0 17px}.hga-wp-breadcrumb{display:none}.hga-module-head{align-items:start;flex-direction:column}.hga-head-actions{flex-wrap:wrap}.hga-settings-layout{margin:15px;grid-template-columns:1fr}.hga-settings-menu{border-right:0;border-bottom:1px solid #e5ebf3}.hga-settings-menu-head{padding:13px 10px;margin:0 0 7px}.hga-settings-menu a{min-height:34px}.hga-settings-menu-foot{display:none}.hga-settings-workspace{padding:20px}}
@media(max-width:610px){.hga-workspace{padding:20px 13px 25px}.hga-workspace-header,.hga-member-brand{height:64px;padding:0 13px}.hga-ui-state{font-size:8px;padding:6px}.hga-module-copy h1{font-size:25px}.hga-head-actions{width:100%}.hga-head-actions .hga-btn{flex:1}.hga-metric-grid{gap:9px}.hga-metric{padding:13px;min-height:119px}.hga-metric strong{font-size:24px;margin:12px 0 8px}.hga-metric-label{font-size:10px}.hga-major-aside{grid-template-columns:1fr}.hga-table-toolbar{flex-wrap:wrap}.hga-find{flex-basis:100%}.hga-table-toolbar select{flex:1}.hga-card-title{padding:15px 13px}.hga-settings-fields{grid-template-columns:1fr}.hga-settings-form{padding:15px 12px}.hga-bottom-line{padding:13px;display:block;line-height:1.7}.hga-settings-layout{margin:10px}}
.hga-ui .hga-status-badge{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:700;line-height:1.3;letter-spacing:.03em;text-transform:uppercase;vertical-align:middle;white-space:nowrap}.hga-ui .hga-status-badge--soon{background:#f0f0f1;color:#646970;border:1px solid #dcdcde}.hga-ui .hga-status-badge--progress{background:#fcf3d9;color:#8a6100;border:1px solid #f0d78c}
.hga-ui .hga-status-badge--blocked{background:#fdecef;color:#a3263f;border:1px solid #f6c9d2}
@media(max-width:610px){.hga-ui .hga-field input:not([type=checkbox]):not([type=radio]),.hga-ui .hga-field select,.hga-ui .hga-field textarea{font-size:16px}}

/* A toolbar that opens a card (no card title above it) gets its own top space. */
.hga-card > .hga-table-toolbar:first-child{padding-top:16px}
/* Tables slide sideways inside their card. The wrap is the positioning box, so nothing inside (e.g. a screen-reader
   label) can escape it and widen the whole page. Small screens keep readable columns instead of squeezing them. */
.hga-table-wrap{position:relative;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
@media(max-width:782px){.hga-table-wrap > .hga-record-table{min-width:720px}}
.hga-c-person{display:grid;gap:2px;min-width:0}.hga-c-person strong{font-size:13px;font-weight:650;color:#1f3150}.hga-c-person small{font-size:11px;color:#6b7a90;white-space:nowrap}
/* Member menu: unread notifications count. */
.hga-member-nav .hga-nav-count{display:inline-block;min-width:18px;margin-left:6px;padding:0 6px;border-radius:999px;background:#c8102e;color:#fff;font-size:11px;line-height:18px;text-align:center}
/* New lead form (templates/leads/lead-form.php), shared by Admin Leads and member My Leads. */
.hga-lead-form{display:grid;gap:12px;max-width:640px}.hga-lead-form .hga-btn{justify-self:start}
/* Table footer: count on the left, actions (pages, Export CSV) wrap to their own line instead of being squeezed. */
.hga-table-foot{flex-wrap:wrap}.hga-table-foot>div{flex-wrap:wrap;margin-left:auto}.hga-table-foot .hga-btn{flex-shrink:0;font-size:12px}
