.agap-card,.agap-auth-card{background:#fff;border:1px solid #dce5e2;border-radius:10px;box-shadow:0 18px 55px rgba(2,47,52,.1);padding:34px}.agap-auth-card{max-width:520px}.agap-tabs{display:flex;border-bottom:1px solid #dce5e2;margin:-10px -10px 28px}.agap-tabs button{flex:1;padding:15px;border:0;background:none;font-family:'Lexend Deca';color:#6f8381}.agap-tabs button.active{color:#006868;border-bottom:3px solid #e2c158}.agap-auth-panel{display:none}.agap-auth-panel.active{display:block}.agap-auth-card label,.agap-fields label{display:flex;flex-direction:column;gap:8px;font-size:.78rem;font-weight:700;margin-bottom:18px}.agap-auth-card input,.agap-fields input,.agap-fields select,.agap-fields textarea,.agap-table-tools input,.agap-table-tools select{width:100%;border:1px solid #cddad6;background:#fff;padding:13px 14px;border-radius:5px;font:inherit;color:#17383a}.agap-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #006868;background:#fff;color:#006868;border-radius:4px;min-height:45px;padding:0 19px;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;font-weight:800;cursor:pointer}.agap-btn.primary{background:#e2c158;border-color:#e2c158;color:#032f34}.agap-btn.secondary{background:#006868;color:#fff}.agap-btn.ghost{border-color:#dce5e2;color:#17383a}.agap-btn.tiny{min-height:34px;padding:0 12px}.agap-small{font-size:.78rem}.agap-dashboard-shell,.agap-admin-shell{display:grid;grid-template-columns:260px 1fr;background:#fff;min-height:700px;border-radius:12px;overflow:hidden;box-shadow:0 20px 65px rgba(2,47,52,.12)}.agap-sidebar{background:#032f34;color:#fff;padding:32px 22px}.agap-profile{display:flex;gap:12px;align-items:center;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,.12)}.agap-profile small{display:block;color:#9db1ad;font-size:.68rem}.agap-avatar{width:46px;height:46px;border-radius:50%;background:#e2c158;color:#032f34;display:grid;place-items:center;font-family:'Lexend Deca';font-size:1.2rem}.agap-sidebar nav{display:flex;flex-direction:column;margin-top:25px;gap:8px}.agap-sidebar nav a{padding:11px 13px;border-radius:5px;font-size:.82rem;color:#c5d5d1}.agap-sidebar nav a.active,.agap-sidebar nav a:hover{background:rgba(255,255,255,.08);color:#fff}.agap-dashboard-main{padding:45px}.agap-dashboard-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:30px}.agap-dashboard-head h1{font-size:2.4rem}.agap-kicker{font-size:.68rem;text-transform:uppercase;letter-spacing:.13em;color:#006868;font-weight:800}.agap-status{display:inline-flex;padding:7px 11px;border-radius:999px;font-size:.68rem;text-transform:uppercase;font-weight:800;background:#edf2f1;color:#506763}.agap-status.submitted,.agap-status.under_review{background:#fff5d5;color:#775d00}.agap-status.shortlisted,.agap-status.offer_extended{background:#dcf5e8;color:#126238}.agap-status.unsuccessful{background:#fde8e8;color:#9a2d2d}.agap-metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:22px}.agap-metric-grid article{border:1px solid #dce5e2;border-radius:8px;padding:22px}.agap-metric-grid span{display:block;color:#6f8381;font-size:.72rem}.agap-metric-grid strong{font-family:'Lexend Deca';font-size:1.35rem}.agap-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.agap-timeline{padding-left:22px}.agap-timeline li{padding:5px}.agap-timeline li.done{color:#006868;font-weight:700}.agap-application-wrap{background:#fff;border-radius:12px;box-shadow:0 20px 65px rgba(2,47,52,.12);overflow:hidden}.agap-steps{display:grid;grid-template-columns:repeat(6,1fr);background:#032f34}.agap-steps button{border:0;background:none;color:#8ea7a3;padding:20px 8px;font-size:.65rem;text-transform:uppercase;font-weight:800}.agap-steps button span{display:block;width:26px;height:26px;border:1px solid currentColor;border-radius:50%;line-height:24px;margin:0 auto 7px}.agap-steps button.active{color:#e2c158;background:rgba(255,255,255,.05)}.agap-application-form{padding:45px}.agap-form-step{display:none}.agap-form-step.active{display:block}.agap-form-head{border-bottom:1px solid #dce5e2;margin-bottom:30px;padding-bottom:20px}.agap-form-head span{color:#006868;font-size:.72rem;text-transform:uppercase;font-weight:800}.agap-form-head h2{font-size:2rem;margin-top:5px}.agap-fields.two{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.agap-fields .wide{grid-column:1/-1}.agap-form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #dce5e2;padding-top:25px;margin-top:25px}.agap-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.agap-upload{border:1px dashed #9fb5b0;background:#f6f8f7;border-radius:8px;padding:24px;display:flex;flex-direction:column;gap:8px}.agap-upload input{font-size:.75rem}.agap-review-box{background:#f4f5f3;padding:28px;border-left:4px solid #e2c158}.agap-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;font-weight:500!important}.agap-check input{width:auto!important;margin-top:4px}.agap-admin-brand{font-family:'Lexend Deca';font-size:2.2rem}.agap-admin-brand small{display:block;font-family:Montserrat;font-size:.65rem;text-transform:uppercase;letter-spacing:.13em;color:#e2c158}.table-card{padding:0;overflow:hidden}.agap-table-tools{display:flex;gap:12px;padding:20px;border-bottom:1px solid #dce5e2}.agap-table-tools input{max-width:320px}.agap-table{width:100%;border-collapse:collapse}.agap-table th,.agap-table td{text-align:left;padding:15px 18px;border-bottom:1px solid #edf1f0;font-size:.78rem}.agap-table th{font-size:.66rem;text-transform:uppercase;color:#6f8381;background:#f8faf9}.agap-table td small{display:block;color:#6f8381}.agap-table-wrap{overflow:auto}
@media(max-width:900px){.agap-dashboard-shell,.agap-admin-shell{grid-template-columns:1fr}.agap-sidebar{display:none}.agap-dashboard-main{padding:25px}.agap-metric-grid,.agap-grid-2,.agap-fields.two,.agap-upload-grid{grid-template-columns:1fr}.agap-steps{grid-template-columns:repeat(3,1fr)}.agap-application-form{padding:25px}.agap-form-actions{flex-wrap:wrap}.agap-btn{flex:1}.agap-dashboard-head{flex-direction:column}}

/* AGAP authentication refinements v1.5 */
.agap-auth-card input:not([type="checkbox"]):not([type="radio"]),
.agap-admin-auth-card input:not([type="checkbox"]):not([type="radio"]),
.agap-admin-auth-card textarea{width:100%;border:1px solid #cddad6;background:#fff;padding:13px 14px;border-radius:5px;font:inherit;color:#17383a;box-sizing:border-box}
.agap-auth-card .login-remember label,.agap-admin-auth-card .login-remember label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:4px 0 18px;font-size:.78rem;font-weight:600}
.agap-auth-card .login-remember input[type="checkbox"],.agap-admin-auth-card .login-remember input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:20px!important;height:20px!important;min-width:20px;border:1px solid #9fb5b0;border-radius:4px;background:#fff;margin:0;display:grid;place-items:center;cursor:pointer}
.agap-auth-card .login-remember input[type="checkbox"]:checked,.agap-admin-auth-card .login-remember input[type="checkbox"]:checked{background:#006868;border-color:#006868}
.agap-auth-card .login-remember input[type="checkbox"]:checked:after,.agap-admin-auth-card .login-remember input[type="checkbox"]:checked:after{content:'✓';color:#fff;font-size:14px;line-height:1;font-weight:800}
.agap-auth-card #wp-submit,.agap-admin-auth-card #wp-submit{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:1px solid #e2c158;background:#e2c158;color:#032f34;border-radius:4px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;cursor:pointer}
.agap-admin-auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr);background:linear-gradient(118deg,#032f34 0 48%,#f4f6f5 48% 100%);align-items:center;padding:clamp(28px,5vw,80px)}
.agap-admin-auth-intro{max-width:620px;color:#fff;padding:clamp(20px,5vw,72px)}
.agap-admin-auth-intro h1{color:#fff;font-size:clamp(3rem,6vw,6rem);margin:.45rem 0 1rem}
.agap-admin-auth-intro p{font-size:1.05rem;max-width:560px;color:#dce8e5}
.agap-kicker.gold{color:#e2c158}
.agap-admin-auth-card{width:min(100%,620px);justify-self:center;background:#fff;border:1px solid #dce5e2;border-radius:14px;box-shadow:0 24px 70px rgba(2,47,52,.16);padding:38px}
.agap-admin-auth-tabs{display:flex;border-bottom:1px solid #dce5e2;margin:-8px -8px 30px}
.agap-admin-auth-tabs button{flex:1;border:0;background:none;padding:16px 10px;color:#6f8381;font-family:'Lexend Deca';cursor:pointer}
.agap-admin-auth-tabs button.active{color:#006868;border-bottom:3px solid #e2c158}
.agap-admin-auth-panel{display:none}.agap-admin-auth-panel.active{display:block}
.agap-admin-auth-panel h2{font-size:2rem;margin:0 0 18px}
.agap-admin-request-form label{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;font-size:.78rem;font-weight:700}
.agap-access-notice{background:#e8f4ef;color:#126238;border-left:4px solid #126238;padding:13px 15px;margin-bottom:22px;font-size:.85rem}
@media(max-width:820px){.agap-admin-auth-page{grid-template-columns:1fr;background:#032f34;padding:24px}.agap-admin-auth-intro{padding:28px 8px 18px}.agap-admin-auth-intro h1{font-size:3rem}.agap-admin-auth-card{padding:25px}}

/* Application account access + front-end portal refinements v1.6 */
.agap-application-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:#f6f8f7;border-bottom:1px solid #dce5e2}
.agap-application-toolbar>span{font-family:'Lexend Deca';font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#006868}
.agap-application-toolbar .agap-account-btn{min-height:40px;white-space:nowrap}
@media(max-width:600px){.agap-application-toolbar{padding:14px 16px}.agap-application-toolbar>span{font-size:.62rem}.agap-application-toolbar .agap-account-btn{flex:0 0 auto;min-height:38px;padding:0 14px}}

/* v1.7: keep native selects visually identical to text inputs across browsers. */
.agap-fields select,
.agap-table-tools select,
.agap-auth-card select,
.agap-admin-auth-card select{
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:54px!important;
  min-height:54px!important;
  padding:0 46px 0 14px!important;
  border:1px solid #cddad6!important;
  border-radius:5px!important;
  background-color:#fff!important;
  color:#17383a!important;
  font:inherit!important;
  line-height:52px!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  background-image:linear-gradient(45deg,transparent 50%,#006868 50%),linear-gradient(135deg,#006868 50%,transparent 50%)!important;
  background-position:calc(100% - 20px) 23px,calc(100% - 14px) 23px!important;
  background-size:6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
}
.agap-fields select:focus,.agap-table-tools select:focus,.agap-auth-card select:focus,.agap-admin-auth-card select:focus{outline:0!important;border-color:#006868!important;box-shadow:0 0 0 3px rgba(0,104,104,.12)!important}
.agap-admin-head-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.agap-sidebar.admin nav a{display:block;text-decoration:none;cursor:pointer;pointer-events:auto;position:relative;z-index:2}
.agap-workspace-placeholder{max-width:760px;padding:42px}
@media(max-width:900px){.agap-admin-head-actions{width:100%;justify-content:flex-start}.agap-admin-head-actions .agap-btn{flex:0 0 auto}.agap-sidebar.admin{display:block;padding:18px}.agap-sidebar.admin nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.agap-admin-shell{grid-template-columns:1fr}.agap-sidebar.admin nav a{text-align:center}}

/* v1.8 applicant full-screen portal + final-step submission fixes */
.agap-btn[hidden], .agap-next[hidden], .agap-submit[hidden], [hidden]{display:none!important}
.agap-account-page-overlay{position:fixed;inset:0;z-index:999999;background:#f3f6f5;overflow:auto;padding:0;box-sizing:border-box}
.agap-portal-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px clamp(22px,3vw,48px);background:#032f34;color:#fff;border-bottom:1px solid rgba(255,255,255,.1)}
.agap-portal-topbar .agap-admin-brand{font-size:1.75rem;color:#fff}
.agap-portal-topbar-actions{display:flex;align-items:center;gap:10px}
.agap-portal-topbar .agap-btn.ghost{background:transparent;border-color:rgba(255,255,255,.35);color:#fff}
.agap-account-shell{width:100%;min-height:calc(100vh - 82px);border-radius:0;box-shadow:none;grid-template-columns:280px minmax(0,1fr)}
.agap-account-shell .agap-dashboard-main{padding:clamp(30px,4vw,64px);max-width:none}
.agap-account-shell .agap-sidebar{border-radius:0}
.agap-form-actions .agap-next[hidden]{display:none!important}
.agap-form-actions .agap-submit:not([hidden]){display:inline-flex!important}
@media(max-width:900px){
 .agap-account-shell{grid-template-columns:1fr}
 .agap-account-shell .agap-sidebar{display:block;padding:18px 20px}
 .agap-account-shell .agap-sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .agap-account-shell .agap-sidebar nav a{text-align:center}
 .agap-portal-topbar{padding:14px 16px}
 .agap-portal-topbar-actions .agap-btn{flex:0 0 auto;min-height:40px;padding:0 13px}
}
@media(max-width:560px){
 .agap-portal-topbar{align-items:flex-start;flex-direction:column;gap:12px}
 .agap-portal-topbar-actions{width:100%}
 .agap-portal-topbar-actions .agap-btn{flex:1}
 .agap-account-shell{min-height:calc(100vh - 126px)}
}

/* v1.9: standalone applicant account portal and HR access refinements */
html:has(body.agap-standalone-account-portal),
body.agap-standalone-account-portal{margin:0!important;padding:0!important;width:100%!important;min-height:100%!important;background:#f3f6f5!important;overflow-x:hidden}
body.agap-standalone-account-portal #agap-account-portal-root{width:100%;min-height:100vh;margin:0;padding:0}
body.agap-standalone-account-portal .agap-account-page-overlay{position:relative!important;inset:auto!important;width:100%!important;min-height:100vh!important;z-index:auto!important}
body.agap-standalone-account-portal .agap-portal-topbar{width:100%;box-sizing:border-box}
body.agap-standalone-account-portal .agap-account-shell{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
body.agap-standalone-account-portal .agap-dashboard-main{width:auto;max-width:none!important}


/* v2.0: applicant sidebar identity and single-scroll portal fixes */
body.agap-standalone-account-portal .agap-profile{
  min-width:0;
  align-items:center;
}
body.agap-standalone-account-portal .agap-avatar{
  flex:0 0 46px;
  width:46px;
  min-width:46px;
}
body.agap-standalone-account-portal .agap-profile>div:last-child{
  min-width:0;
  flex:1 1 auto;
  overflow:hidden;
}
body.agap-standalone-account-portal .agap-profile strong,
body.agap-standalone-account-portal .agap-profile small{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.agap-standalone-account-portal .agap-profile strong{
  font-size:.82rem;
  line-height:1.25;
}
body.agap-standalone-account-portal .agap-profile small{
  margin-top:4px;
  font-size:.64rem;
}

/* Use only the document scrollbar. The nested portal wrapper no longer creates a second scrollbar. */
html:has(body.agap-standalone-account-portal){
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
body.agap-standalone-account-portal{
  overflow:visible!important;
  min-height:100vh!important;
}
body.agap-standalone-account-portal .agap-account-page-overlay{
  overflow:visible!important;
  height:auto!important;
  min-height:100vh!important;
}
body.agap-standalone-account-portal #agap-account-portal-root{
  overflow:visible!important;
  min-height:100vh!important;
}
body.agap-standalone-account-portal .agap-account-shell{
  min-height:calc(100vh - 82px)!important;
}

@media(max-width:900px){
  body.agap-standalone-account-portal .agap-profile{
    max-width:100%;
  }
  body.agap-standalone-account-portal .agap-profile strong,
  body.agap-standalone-account-portal .agap-profile small{
    white-space:normal;
    overflow-wrap:anywhere;
    text-overflow:clip;
  }
}

/* v2.1: applicant portal sidebar and autosave refinements. */
body.agap-standalone-account-portal .agap-account-shell,
.agap-account-shell{grid-template-columns:300px minmax(0,1fr)!important}
body.agap-standalone-account-portal .agap-sidebar,
.agap-account-shell .agap-sidebar{min-width:300px!important;width:300px!important}
body.agap-standalone-account-portal .agap-profile,
.agap-account-shell .agap-profile{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:14px!important;align-items:center!important}
body.agap-standalone-account-portal .agap-avatar,
.agap-account-shell .agap-avatar{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;aspect-ratio:1/1!important;flex:0 0 48px!important;border-radius:50%!important;padding:0!important;line-height:1!important}
body.agap-standalone-account-portal .agap-profile>div:last-child,
.agap-account-shell .agap-profile>div:last-child{min-width:0!important;overflow:hidden}
body.agap-standalone-account-portal .agap-profile strong,
body.agap-standalone-account-portal .agap-profile small,
.agap-account-shell .agap-profile strong,
.agap-account-shell .agap-profile small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agap-autosave-state{display:block;text-align:right;margin:16px 0 0;font-size:.72rem;color:#6f8381;min-height:1.2em}
.agap-autosave-state[data-state="saving"]{color:#006868}
.agap-autosave-state[data-state="saved"]{color:#287050}
.agap-autosave-state[data-state="error"]{color:#9a2d2d}
.agap-autosave-state[data-state="dirty"]{color:#8a6d00}
@media(max-width:900px){body.agap-standalone-account-portal .agap-account-shell,.agap-account-shell{grid-template-columns:1fr!important}body.agap-standalone-account-portal .agap-sidebar,.agap-account-shell .agap-sidebar{width:100%!important;min-width:0!important}.agap-autosave-state{text-align:left}}

/* Applicant application log and document manager — v2.2 */
.agap-applicant-application-table .agap-table td{vertical-align:middle}
.agap-application-summary{margin-top:24px}
.agap-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}
.agap-summary-section{padding:26px 0;border-top:1px solid var(--agap-border,#dbe5e3)}
.agap-summary-section h3{margin:0 0 18px}
.agap-summary-section dl,.agap-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;margin:0}
.agap-summary-section dl>div,.agap-profile-details>div{padding:15px 0;border-bottom:1px solid var(--agap-border,#e2e9e7)}
.agap-summary-section dt,.agap-profile-details dt{font-size:12px;line-height:1.4;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#687b7c;margin-bottom:7px}
.agap-summary-section dd,.agap-profile-details dd{margin:0;color:#113c3f;line-height:1.65;overflow-wrap:anywhere}
.agap-document-list{display:grid;gap:12px;margin:28px 0}
.agap-document-list article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border:1px solid var(--agap-border,#d9e3e1);border-radius:12px;background:#fff}
.agap-document-list article>div:first-child{display:grid;gap:4px;min-width:0}
.agap-document-list small{color:#718383;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.agap-document-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.agap-document-actions label{cursor:pointer;margin:0}
@media(max-width:800px){
  .agap-summary-head{display:grid}
  .agap-summary-section dl,.agap-profile-details{grid-template-columns:1fr}
  .agap-document-list article{align-items:flex-start;flex-direction:column}
  .agap-document-actions{width:100%;flex-wrap:wrap}
  .agap-document-actions .agap-btn{flex:1 1 auto;text-align:center}
}

/* v2.3: profile images, preferred names and single-scroll applicant portal */
html:has(body.agap-standalone-account-portal){height:100%!important;overflow:hidden!important}
body.agap-standalone-account-portal{height:100vh!important;min-height:100vh!important;overflow-y:auto!important;overflow-x:hidden!important}
body.agap-standalone-account-portal #agap-account-portal-root,
body.agap-standalone-account-portal .agap-account-page-overlay{min-height:100%!important;overflow:visible!important}
body.agap-standalone-account-portal .agap-avatar{overflow:hidden!important}
body.agap-standalone-account-portal .agap-avatar img,
.agap-profile-preview img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.agap-profile-image-editor{display:flex;align-items:center;gap:18px;padding:22px 0 28px;border-bottom:1px solid #dce5e2;margin-bottom:24px}
.agap-profile-preview{width:78px!important;height:78px!important;min-width:78px!important;max-width:78px!important;min-height:78px!important;max-height:78px!important;font-size:1.7rem!important}
.agap-profile-image-editor small{display:block;color:#718383;margin-top:8px}
.agap-profile-form .agap-profile-details{margin-bottom:24px}
@media(max-width:600px){.agap-profile-image-editor{align-items:flex-start;flex-direction:column}}

/* v2.4: single document scrollbar and reliable profile-image upload */
html:has(body.agap-standalone-account-portal){
  height:auto!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
}
body.agap-standalone-account-portal{
  height:auto!important;
  min-height:100vh!important;
  overflow:visible!important;
}
body.agap-standalone-account-portal #agap-account-portal-root,
body.agap-standalone-account-portal .agap-account-page-overlay{
  height:auto!important;
  min-height:100vh!important;
  overflow:visible!important;
}
body.agap-standalone-account-portal .agap-account-page-overlay{position:relative!important;inset:auto!important}
.agap-access-notice.agap-access-error{background:#fdecec;color:#8b2929;border-left-color:#b63a3a}
.agap-profile-file-name{display:block;margin-top:8px;color:#006868;font-size:.75rem;font-weight:700;overflow-wrap:anywhere}

/* v3.0 functional selection portal */
.agap-metric-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.agap-pipeline-mini{display:grid;gap:10px}.agap-pipeline-mini>div,.agap-event-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:13px 0;border-bottom:1px solid #dce5e2}.agap-pipeline-mini span,.agap-event-row small{color:#718383}.agap-action-stack{display:grid;gap:12px}.agap-review-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.agap-review-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.75fr);gap:24px}.agap-review-grid aside{display:grid;align-content:start;gap:24px}.agap-review-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px}.agap-review-summary-grid>div{border:1px solid #dce5e2;border-radius:10px;padding:15px}.agap-review-summary-grid span{display:block;color:#718383;font-size:.72rem;margin-bottom:6px}.agap-review-answer{border-top:1px solid #dce5e2;padding:14px 0}.agap-review-answer summary{font-weight:700;color:#063b3f;cursor:pointer}.agap-review-answer p{line-height:1.7}.agap-review-form{position:sticky;top:24px}.agap-review-form label,.agap-assessment-score-form label,.agap-settings-form label{display:grid;gap:7px;margin-bottom:15px;font-weight:700}.agap-review-form select,.agap-review-form textarea,.agap-review-form input,.agap-assessment-score-form select,.agap-assessment-score-form textarea,.agap-assessment-score-form input,.agap-settings-form input,.agap-settings-form textarea{width:100%;border:1px solid #cddbd8;border-radius:7px;padding:12px;background:#fff}.agap-score-row{grid-template-columns:1fr 76px!important;align-items:center}.agap-score-row input{text-align:center}.agap-activity-log{display:grid;gap:14px}.agap-activity-log>div{padding-bottom:14px;border-bottom:1px solid #dce5e2}.agap-activity-log small{display:block;color:#718383;margin-top:4px}.agap-score-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.agap-report-bars{display:grid;gap:14px}.agap-report-bars>div{display:grid;grid-template-columns:150px 1fr 30px;align-items:center;gap:12px}.agap-report-bars i{display:block;height:9px;background:#e2c158;border-radius:9px}.agap-progress-track{height:8px;background:#e5ecea;border-radius:9px;overflow:hidden;margin:24px 0}.agap-progress-track i{display:block;height:100%;background:#e2c158;border-radius:9px}.agap-status-timeline{list-style:none;padding:0;margin:0;display:grid;gap:16px}.agap-status-timeline li{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:center;color:#879695}.agap-status-timeline li>span{width:34px;height:34px;border:1px solid #cddbd8;border-radius:50%;display:grid;place-items:center;font-weight:800}.agap-status-timeline li.done,.agap-status-timeline li.current{color:#063b3f}.agap-status-timeline li.done>span{background:#006868;color:#fff;border-color:#006868}.agap-status-timeline li.current>span{background:#e2c158;color:#fff;border-color:#e2c158}.agap-status-timeline small{display:block;color:#718383;margin-top:3px}
@media(max-width:1100px){.agap-metric-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.agap-review-grid{grid-template-columns:1fr}.agap-review-form{position:static}.agap-review-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.agap-metric-grid-4,.agap-score-grid,.agap-review-summary-grid{grid-template-columns:1fr}.agap-report-bars>div{grid-template-columns:110px 1fr 24px}}

/* v3.1 — refined administration workspace */
body.agap-admin-portal-page{background:#f4f7f6!important}
.agap-admin-shell{min-height:100vh!important;border-radius:0!important;box-shadow:none!important;grid-template-columns:280px minmax(0,1fr)!important;background:#f4f7f6!important}
.agap-admin-shell>.agap-sidebar.admin{position:sticky;top:0;height:100vh;padding:42px 24px;background:#06383c;overflow-y:auto}
.agap-admin-shell>.agap-sidebar.admin .agap-admin-brand{font-size:2.15rem;line-height:1;margin-bottom:34px;color:#fff}
.agap-admin-shell>.agap-sidebar.admin nav{gap:6px;margin-top:0}
.agap-admin-shell>.agap-sidebar.admin nav a{min-height:46px;display:flex;align-items:center;padding:0 15px;border-radius:8px;font-size:.84rem;font-weight:600;transition:.18s ease}
.agap-admin-shell>.agap-sidebar.admin nav a.active{background:#1b5559;box-shadow:inset 3px 0 #e2c158}
.agap-admin-shell>.agap-sidebar.admin nav a:hover{transform:translateX(2px);background:#174d51}
.agap-admin-shell>.agap-dashboard-main{padding:46px clamp(30px,4vw,72px) 70px;min-width:0;max-width:1600px;width:100%;margin:0 auto}
.agap-admin-shell .agap-dashboard-head{margin-bottom:34px;align-items:center}
.agap-admin-shell .agap-dashboard-head h1{font-size:clamp(2.25rem,3.2vw,3.5rem);line-height:1.04;margin:.35rem 0 0}
.agap-admin-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.agap-admin-notice{margin:-12px 0 26px;padding:14px 18px;border-radius:8px;font-size:.84rem;font-weight:700}
.agap-admin-notice.success{background:#dff3e9;color:#145f3d;border:1px solid #bfe5d2}
.agap-admin-shell .agap-card{border-radius:14px;border-color:#d8e3e0;box-shadow:0 16px 45px rgba(2,47,52,.055);padding:30px}
.agap-admin-shell .agap-card h2,.agap-admin-shell .agap-card h3{margin:0;color:#123d40}
.agap-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.agap-card-heading h2,.agap-card-heading h3{margin:.35rem 0 0!important}
.agap-card-heading p{margin:8px 0 0;color:#637878;line-height:1.6;max-width:680px}
.agap-admin-shell .agap-metric-grid{gap:18px;margin-bottom:24px}
.agap-admin-shell .agap-metric-grid article{background:#fff;border-radius:12px;padding:24px;border:1px solid #d8e3e0;box-shadow:0 10px 30px rgba(2,47,52,.035)}
.agap-admin-shell .agap-metric-grid article strong{font-size:1.65rem;margin-top:7px;display:block}
.agap-admin-shell .agap-grid-2{gap:24px;margin-top:24px}
.agap-admin-table-card{margin-top:24px}
.agap-admin-table-card>.agap-card-heading{padding:26px 28px 20px;margin:0;border-bottom:1px solid #e2e9e7}
.agap-admin-table-card.table-card{padding:0}
.agap-admin-shell .agap-table-tools{padding:18px 22px;background:#fbfcfc;align-items:center}
.agap-admin-shell .agap-table-tools input,.agap-admin-shell .agap-table-tools select{height:48px;border-radius:8px}
.agap-admin-shell .agap-table th{padding:14px 20px;background:#f4f7f6;color:#5f7373;letter-spacing:.075em}
.agap-admin-shell .agap-table td{padding:17px 20px;vertical-align:middle}
.agap-admin-shell .agap-table tbody tr:hover{background:#fbfdfc}
.agap-admin-shell .agap-table tbody tr:last-child td{border-bottom:0}
.agap-admin-form-card>label,.agap-admin-field label,.agap-assignment-card label,.agap-session-card label,.agap-admin-shell form>label{display:flex;flex-direction:column;gap:8px;font-size:.78rem;font-weight:700;margin:0 0 18px;color:#123d40}
.agap-admin-shell input:not([type=checkbox]):not([type=radio]),.agap-admin-shell select,.agap-admin-shell textarea{box-sizing:border-box;width:100%;min-height:50px;border:1px solid #c9d8d4;border-radius:8px;background:#fff;padding:12px 14px;font:inherit;color:#17383a;transition:border-color .18s,box-shadow .18s}
.agap-admin-shell textarea{min-height:120px;resize:vertical;line-height:1.55}
.agap-admin-shell input:focus,.agap-admin-shell select:focus,.agap-admin-shell textarea:focus{outline:0;border-color:#007476;box-shadow:0 0 0 3px rgba(0,104,104,.11)}
.agap-admin-shell input[type=checkbox]{width:18px;height:18px;accent-color:#006868}
.agap-form-footer{display:flex;justify-content:flex-end;border-top:1px solid #e2e9e7;padding-top:22px;margin-top:22px}
.agap-admin-workspace-grid{align-items:start}
.agap-session-card{min-height:100%}
.agap-empty-state{display:grid;place-items:start;align-content:center;min-height:180px;padding:28px;border:1px dashed #c9d8d4;border-radius:10px;background:#fafcfc;color:#647878}
.agap-empty-state strong{font-family:'Lexend Deca';color:#173f42;font-size:1rem;margin-bottom:7px}
.agap-empty-state p{margin:0;line-height:1.55}
.agap-assignment-card{margin-top:24px}
.agap-assignment-head{align-items:flex-end;margin-bottom:20px}
.agap-assignment-head select{max-width:320px;flex:0 0 320px}
.agap-event-row{padding:16px 0}
.agap-event-row>div{min-width:0}
.agap-event-row strong{display:block;color:#123d40}
.agap-event-row small{display:block;margin-top:5px;line-height:1.45}
.agap-review-toolbar{margin-bottom:22px}
.agap-back-link{font-weight:700;color:#476667;text-decoration:none}
.agap-back-link:hover{color:#006868}
.agap-review-grid{grid-template-columns:minmax(0,1.75fr) minmax(350px,.8fr);gap:28px}
.agap-review-grid>div{display:grid;gap:24px;align-content:start}
.agap-review-grid aside{gap:24px}
.agap-review-form{top:20px}
.agap-review-form .agap-score-row{display:grid!important;grid-template-columns:minmax(0,1fr) 92px!important;gap:16px;margin-bottom:10px;align-items:center}
.agap-review-form .agap-score-row input{min-height:44px;padding:8px;text-align:center}
.agap-section-heading{margin:26px 0 14px;padding-top:22px;border-top:1px solid #e2e9e7}
.agap-section-heading h3{margin:0 0 5px!important}
.agap-section-heading small{display:block;color:#6f8282;line-height:1.45}
.agap-review-summary-grid{gap:14px}
.agap-review-summary-grid>div{background:#f9fbfa;border-radius:10px;padding:17px}
.agap-review-answer{padding:17px 0}
.agap-review-answer summary{list-style:none;display:flex;align-items:center;gap:8px}
.agap-review-answer summary:before{content:'+';display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#edf3f1;color:#006868;font-weight:900}
.agap-review-answer[open] summary:before{content:'–';background:#e2c158;color:#fff}
.agap-score-grid{gap:14px}
.agap-score-grid label{background:#f8faf9;border:1px solid #dce5e2;border-radius:10px;padding:15px;margin:0!important}
.agap-score-grid input{margin-top:7px}
.agap-report-grid{align-items:stretch}
.agap-report-grid>.agap-card{min-height:320px}
.agap-report-bars>div{grid-template-columns:minmax(120px,170px) minmax(120px,1fr) 34px;gap:14px}
.agap-report-bars i{height:11px;min-width:8px}
.agap-export-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:24px}
.agap-export-card .agap-btn{flex:0 0 auto}
.agap-settings-form{max-width:1100px}
.agap-settings-form>.agap-btn{margin-top:8px}
@media(max-width:1100px){.agap-admin-shell{grid-template-columns:240px minmax(0,1fr)!important}.agap-admin-shell>.agap-sidebar.admin{padding-inline:18px}.agap-admin-shell>.agap-dashboard-main{padding-inline:28px}.agap-review-grid{grid-template-columns:1fr}.agap-review-form{position:static}}
@media(max-width:900px){.agap-admin-shell{display:block!important}.agap-admin-shell>.agap-sidebar.admin{position:relative;width:100%;height:auto;display:block!important;padding:22px}.agap-admin-shell>.agap-sidebar.admin .agap-admin-brand{margin-bottom:18px}.agap-admin-shell>.agap-sidebar.admin nav{display:flex;flex-direction:row;overflow-x:auto;padding-bottom:4px}.agap-admin-shell>.agap-sidebar.admin nav a{white-space:nowrap;min-height:42px}.agap-admin-shell>.agap-dashboard-main{padding:28px 20px 50px}.agap-admin-shell .agap-dashboard-head{align-items:flex-start}.agap-assignment-head{align-items:stretch;display:grid}.agap-assignment-head select{max-width:none;flex:auto}.agap-export-card{align-items:flex-start;flex-direction:column}.agap-export-card .agap-btn{width:100%}}
@media(max-width:620px){.agap-admin-shell .agap-metric-grid-4{grid-template-columns:1fr}.agap-admin-head-actions{width:100%}.agap-admin-head-actions .agap-btn{flex:1}.agap-card-heading{display:grid}.agap-admin-shell .agap-card{padding:22px}.agap-admin-shell .agap-table th,.agap-admin-shell .agap-table td{padding:14px}.agap-report-bars>div{grid-template-columns:100px 1fr 24px}.agap-review-summary-grid{grid-template-columns:1fr}.agap-score-grid{grid-template-columns:1fr}.agap-review-form .agap-score-row{grid-template-columns:1fr 78px!important}}


/* v3.2 admin portal viewport and spacing refinements */
body.agap-admin-portal-open{overflow:hidden!important;height:100vh!important}
body.agap-admin-portal-open .agap-admin-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;z-index:999999!important;overflow:hidden!important;grid-template-rows:minmax(0,1fr)!important}
body.agap-admin-portal-open .agap-admin-shell>.agap-sidebar.admin{position:relative!important;top:auto!important;height:100vh!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
body.agap-admin-portal-open .agap-admin-shell>.agap-dashboard-main{height:100vh!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:80px!important}
.agap-admin-shell .agap-action-stack{display:flex!important;flex-direction:column!important;justify-content:space-evenly!important;align-items:stretch!important;gap:16px!important;min-height:220px!important;margin-top:16px!important}
.agap-admin-shell .agap-action-stack .agap-btn{width:100%!important;min-height:50px!important;flex:0 0 auto!important}
.agap-admin-shell .agap-assignment-card>.agap-btn.primary{margin-top:24px!important}
.agap-admin-shell .agap-assignment-card .agap-table-wrap{margin-bottom:0!important}
.agap-admin-shell .agap-assignment-card{padding-bottom:30px!important}
@media(max-width:900px){body.agap-admin-portal-open{overflow:auto!important;height:auto!important}body.agap-admin-portal-open .agap-admin-shell{position:relative!important;width:100%!important;height:auto!important;min-height:100vh!important;overflow:visible!important}body.agap-admin-portal-open .agap-admin-shell>.agap-sidebar.admin{height:auto!important;overflow:visible!important}body.agap-admin-portal-open .agap-admin-shell>.agap-dashboard-main{height:auto!important;overflow:visible!important}.agap-admin-shell .agap-action-stack{min-height:0!important}}


/* v3.3 — unified field heights and fixed applicant portal workspace */
:root{--agap-control-height:52px}

/* One control system across applicant and administration forms. */
.agap-fields input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.agap-fields select,
.agap-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.agap-auth-card select,
.agap-admin-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.agap-admin-auth-card select,
.agap-admin-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.agap-admin-shell select,
.agap-table-tools input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.agap-table-tools select{
  height:var(--agap-control-height)!important;
  min-height:var(--agap-control-height)!important;
  max-height:var(--agap-control-height)!important;
  box-sizing:border-box!important;
  padding-top:0!important;
  padding-bottom:0!important;
  line-height:normal!important;
}
.agap-fields select,
.agap-auth-card select,
.agap-admin-auth-card select,
.agap-admin-shell select,
.agap-table-tools select{
  -webkit-appearance:none!important;
  appearance:none!important;
  padding-right:42px!important;
  background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%!important;
}
.agap-admin-shell textarea,.agap-fields textarea,.agap-auth-card textarea,.agap-admin-auth-card textarea{
  height:auto!important;
  min-height:120px!important;
  max-height:none!important;
  padding-top:13px!important;
  padding-bottom:13px!important;
  line-height:1.55!important;
}

/* v3.5 — isolated fixed applicant portal layout.
   Only the standalone account template is locked; the public website remains normally scrollable. */
@media (min-width:901px){
  html.agap-account-html{
    width:100%!important;
    height:100%!important;
    overflow:hidden!important;
  }
  html.agap-account-html body.agap-standalone-account-portal{
    position:fixed!important;
    inset:0!important;
    width:100%!important;
    height:100dvh!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  html.agap-account-html body.agap-standalone-account-portal #agap-account-portal-root{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html.agap-account-html body.agap-standalone-account-portal .agap-account-page-overlay{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    grid-template-rows:max-content minmax(0,1fr)!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  html.agap-account-html body.agap-standalone-account-portal .agap-portal-topbar{
    position:relative!important;
    inset:auto!important;
    z-index:30!important;
    width:100%!important;
    height:auto!important;
    min-height:84px!important;
    margin:0!important;
    box-sizing:border-box!important;
    flex:0 0 auto!important;
  }
  html.agap-account-html body.agap-standalone-account-portal .agap-account-shell{
    position:relative!important;
    inset:auto!important;
    display:grid!important;
    grid-template-columns:300px minmax(0,1fr)!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    margin:0!important;
    overflow:hidden!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  html.agap-account-html body.agap-standalone-account-portal .agap-account-shell>.agap-sidebar{
    position:relative!important;
    inset:auto!important;
    align-self:stretch!important;
    width:300px!important;
    min-width:300px!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
    overscroll-behavior:none!important;
    box-sizing:border-box!important;
  }
  html.agap-account-html body.agap-standalone-account-portal .agap-account-shell>.agap-dashboard-main{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain!important;
    scrollbar-gutter:stable!important;
    box-sizing:border-box!important;
    padding-bottom:80px!important;
  }
}

/* Mobile/tablet: restore the normal document scroll and stacked portal flow. */
@media (max-width:900px){
  html.agap-account-html,
  html.agap-account-html body.agap-standalone-account-portal{
    position:static!important;
    width:auto!important;
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html.agap-account-html body.agap-standalone-account-portal #agap-account-portal-root,
  html.agap-account-html body.agap-standalone-account-portal .agap-account-page-overlay,
  html.agap-account-html body.agap-standalone-account-portal .agap-account-shell{
    position:static!important;
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
}
