.mpf-lo-portal{--portal-navy:var(--mortgage-navy,#102846);--portal-blue:var(--mortgage-blue,#0d5d86);--portal-gold:var(--mortgage-gold,#e5b64a);--portal-border:#d7e1e7;--portal-soft:#f5f8fa;color:#44515c}.mpf-lo-portal *{box-sizing:border-box}.mpf-lo-portal__header{padding:78px 0 58px;color:#fff}.mpf-lo-portal__eyebrow{display:block;margin-bottom:10px;color:var(--portal-gold);font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.mpf-lo-portal__header h1{margin:0 0 10px;color:#fff;font-size:clamp(2.2rem,4vw,3.5rem)}.mpf-lo-portal__header p{max-width:680px;margin:0;color:rgba(255,255,255,.72);font-size:1rem}.mpf-lo-portal__content{padding:55px 0 80px;background:#f7f9fa}.mpf-lo-portal__welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding:18px 22px;border:1px solid var(--portal-border);background:#fff}.mpf-lo-portal__welcome span,.mpf-lo-portal__welcome strong{display:block}.mpf-lo-portal__welcome span{font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#88949c}.mpf-lo-portal__welcome strong{color:var(--portal-navy)}.mpf-lo-portal__welcome a{font-weight:700}.mpf-lo-portal__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.mpf-lo-portal__card{display:flex;gap:18px;min-height:230px;padding:28px;border:1px solid var(--portal-border);border-top:4px solid var(--portal-blue);background:#fff;color:inherit;transition:transform .2s ease,box-shadow .2s ease}.mpf-lo-portal__card:hover{transform:translateY(-3px);box-shadow:0 18px 42px rgba(16,40,70,.08)}.mpf-lo-portal__card--pending{border-top-color:#b9c3c9;opacity:.82}.mpf-lo-portal__card--pending:hover{transform:none;box-shadow:none}.mpf-lo-portal__icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#edf5f8;color:var(--portal-blue);font-size:1.15rem}.mpf-lo-portal__card h2{margin:0 0 10px;color:var(--portal-navy);font-size:1.25rem}.mpf-lo-portal__card p{margin:0 0 22px;font-size:.86rem;line-height:1.65}.mpf-lo-portal__card strong{color:var(--portal-blue);font-size:.78rem}.mpf-lo-portal__login-wrap{display:grid;grid-template-columns:minmax(0,.9fr) minmax(360px,.7fr);gap:45px;max-width:950px;margin:0 auto;padding:38px;border:1px solid var(--portal-border);background:#fff;box-shadow:0 18px 55px rgba(16,40,70,.07)}.mpf-lo-portal__label{display:inline-block;margin-bottom:10px;color:var(--portal-blue);font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.mpf-lo-portal__login-copy h2{margin:0 0 14px;color:var(--portal-navy);font-size:2rem}.mpf-lo-portal__login-copy p{font-size:.95rem;line-height:1.7}.mpf-lo-portal__login-form p{margin-bottom:15px}.mpf-lo-portal__login-form label{display:block;margin-bottom:6px;color:var(--portal-navy);font-size:.75rem;font-weight:800}.mpf-lo-portal__login-form input[type=text],.mpf-lo-portal__login-form input[type=password]{width:100%;height:48px;padding:0 12px;border:1px solid var(--portal-border);background:#fff}.mpf-lo-portal__login-form .login-remember label{display:flex;align-items:center;gap:8px;font-weight:600}.mpf-lo-portal__login-form .button-primary{width:100%;height:48px;border:0;background:var(--portal-blue);color:#fff;font-weight:800;cursor:pointer}.mpf-lo-portal__lost-password{display:inline-block;margin-top:8px;font-size:.8rem;font-weight:700}.mpf-lo-portal__notice{max-width:760px;margin:0 auto;padding:34px;border:1px solid var(--portal-border);background:#fff}.mpf-lo-portal__notice h2{color:var(--portal-navy)}
@media(max-width:991px){.mpf-lo-portal__grid{grid-template-columns:1fr}.mpf-lo-portal__login-wrap{grid-template-columns:1fr;gap:20px}}@media(max-width:767px){.mpf-lo-portal__header{padding:60px 0 45px}.mpf-lo-portal__content{padding:35px 0 60px}.mpf-lo-portal__login-wrap{padding:24px}.mpf-lo-portal__welcome{align-items:flex-start;flex-direction:column}}

/* Resources / MPFI Forms */
.mpf-lo-resources__back{display:inline-flex;align-items:center;gap:7px;margin-bottom:20px;color:rgba(255,255,255,.78);font-size:.78rem;font-weight:700}.mpf-lo-resources__back:hover{color:#fff}.mpf-lo-resources__toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}.mpf-lo-resources__label{display:block;margin-bottom:4px;color:var(--portal-blue);font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.mpf-lo-resources__toolbar h2{margin:0;color:var(--portal-navy);font-size:1.65rem}.mpf-lo-resources__search{position:relative;display:block;width:min(100%,330px);margin:0}.mpf-lo-resources__search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#84919a}.mpf-lo-resources__search input{width:100%;height:44px;padding:0 14px 0 40px;border:1px solid var(--portal-border);border-radius:4px;background:#fff;color:#34414a;font-size:.85rem}.mpf-lo-resources__search input:focus{outline:2px solid rgba(13,93,134,.15);border-color:var(--portal-blue)}.mpf-lo-resources__list{display:grid;gap:12px}.mpf-lo-resources__item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:18px;padding:20px 22px;border:1px solid var(--portal-border);background:#fff;transition:border-color .2s ease,box-shadow .2s ease}.mpf-lo-resources__item:hover{border-color:#c4d3db;box-shadow:0 10px 28px rgba(16,40,70,.05)}.mpf-lo-resources__file-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:8px;background:#edf5f8;color:var(--portal-blue);font-size:1.35rem}.mpf-lo-resources__item h3{margin:0;color:var(--portal-navy);font-size:1.05rem}.mpf-lo-resources__description{margin-top:5px;color:#66737c;font-size:.8rem;line-height:1.55}.mpf-lo-resources__description p{margin:0}.mpf-lo-resources__action{padding-left:14px}.mpf-lo-resources__action .btn{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.mpf-lo-resources__unavailable{display:inline-block;padding:7px 10px;border-radius:3px;background:#f2f4f5;color:#8a959b;font-size:.7rem;font-weight:800;text-transform:uppercase}.mpf-lo-resources__empty{padding:46px 28px;border:1px dashed #c8d3d9;background:#fff;text-align:center;color:#77858e}.mpf-lo-resources__empty>i{display:block;margin-bottom:10px;color:#9aa6ad;font-size:2rem}.mpf-lo-resources__empty h3{margin:0 0 7px;color:var(--portal-navy)}.mpf-lo-resources__empty p{margin:0}
@media(max-width:767px){.mpf-lo-resources__toolbar{align-items:stretch;flex-direction:column}.mpf-lo-resources__search{width:100%}.mpf-lo-resources__item{grid-template-columns:46px minmax(0,1fr);align-items:start;padding:18px}.mpf-lo-resources__file-icon{width:46px;height:46px}.mpf-lo-resources__action{grid-column:2;padding:6px 0 0}.mpf-lo-resources__action .btn{width:100%;justify-content:center}}

/* v15 portal authentication notices */
.mpf-lo-portal__status {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #cfd8e3;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.mpf-lo-portal__status--success {
  border-color: #b7d8c2;
  background: #f2faf5;
}
.mpf-lo-portal__status--error {
  border-color: #e2bcbc;
  background: #fff6f6;
}

/* =========================================================
   v16 — Loan Officer Portal UI/UX system
   ========================================================= */
.mpf-lo-portal{
  --portal-navy:#10214f;
  --portal-navy-deep:#0b183c;
  --portal-blue:#163d8c;
  --portal-blue-soft:#eef4ff;
  --portal-gold:#efbd46;
  --portal-text:#314057;
  --portal-muted:#718096;
  --portal-border:#dbe3ed;
  --portal-surface:#fff;
  --portal-bg:#f5f7fb;
  --portal-success:#1f7a4d;
  --portal-radius:14px;
  --portal-shadow:0 12px 34px rgba(15,33,79,.08);
}

/* Portal utility navigation is rendered in the existing header top bar.
   Its active styles live in theme.css under .header-top-bar--portal. */

/* Hero */
.mpf-lo-portal__header{position:relative;overflow:hidden;padding:62px 0 52px;background:linear-gradient(115deg,var(--portal-navy-deep) 0%,var(--portal-navy) 68%,#18356f 100%)!important}
.mpf-lo-portal__header:after{content:"";position:absolute;right:-100px;top:-145px;width:430px;height:430px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 145px rgba(255,255,255,.018);pointer-events:none}
.mpf-lo-portal__header>.container{position:relative;z-index:1}
.mpf-lo-portal__eyebrow{display:flex;align-items:center;gap:7px;margin-bottom:12px;color:var(--portal-gold);font-size:.68rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.mpf-lo-portal__header h1{font-size:clamp(2.35rem,4vw,3.7rem);letter-spacing:-.025em;line-height:1.05;margin-bottom:14px}
.mpf-lo-portal__header p{font-size:1rem;line-height:1.7;max-width:720px;color:rgba(255,255,255,.74)}
.mpf-lo-portal__content{padding:42px 0 78px;background:var(--portal-bg)}

/* User row */
.mpf-lo-portal__welcome{border:1px solid var(--portal-border);border-radius:var(--portal-radius);padding:17px 20px;background:#fff;box-shadow:0 5px 18px rgba(15,33,79,.035);margin-bottom:34px}
.mpf-lo-portal__welcome-user{display:flex;align-items:center;gap:12px}
.mpf-lo-portal__avatar{width:42px;height:42px;display:grid!important;place-items:center;border-radius:50%;background:var(--portal-navy);color:#fff!important;font-size:.82rem!important;font-weight:800;letter-spacing:0!important}
.mpf-lo-portal__welcome-user>div>span{font-size:.61rem;letter-spacing:.1em;color:#8a96a8}
.mpf-lo-portal__welcome-user>div>strong{font-size:.96rem;margin-top:2px}
.mpf-lo-portal__logout{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:8px;color:#657287;font-size:.74rem;font-weight:750}
.mpf-lo-portal__logout:hover{background:#f4f6fa;color:var(--portal-blue)}
.mpf-lo-portal__section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin:0 0 20px}
.mpf-lo-portal__section-heading span{display:block;color:var(--portal-blue);font-size:.64rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px}
.mpf-lo-portal__section-heading h2{margin:0;color:var(--portal-navy);font-size:1.55rem;letter-spacing:-.015em}
.mpf-lo-portal__section-heading p{margin:0;color:var(--portal-muted);font-size:.8rem}

/* Dashboard tool cards */
.mpf-lo-portal__grid{gap:18px}
.mpf-lo-portal__card{position:relative;overflow:hidden;min-height:245px;padding:27px;border:1px solid var(--portal-border);border-top:0;border-radius:var(--portal-radius);box-shadow:0 5px 18px rgba(15,33,79,.035);background:#fff;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.mpf-lo-portal__card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--portal-blue)}
.mpf-lo-portal__card:nth-child(2):before{background:#2b739d}.mpf-lo-portal__card:nth-child(3):before{background:var(--portal-gold)}
.mpf-lo-portal__card:hover{transform:translateY(-4px);border-color:#cbd6e5;box-shadow:var(--portal-shadow)}
.mpf-lo-portal__icon{width:46px;height:46px;flex-basis:46px;border-radius:12px;background:var(--portal-blue-soft);font-size:1.05rem}
.mpf-lo-portal__card:nth-child(3) .mpf-lo-portal__icon{background:#fff8e6;color:#9a6a00}
.mpf-lo-portal__card h2{font-size:1.13rem;margin:2px 0 9px}
.mpf-lo-portal__card p{font-size:.79rem;line-height:1.7;color:#6b788a;margin-bottom:24px}
.mpf-lo-portal__card strong{display:inline-flex;align-items:center;gap:7px;color:var(--portal-blue);font-size:.73rem}

/* Login / reset surfaces */
.mpf-lo-portal__login-wrap,.mpf-lo-portal__notice{border-radius:var(--portal-radius);border-color:var(--portal-border);box-shadow:var(--portal-shadow)}
.mpf-lo-portal__login-wrap{padding:42px;gap:54px}
.mpf-lo-portal__login-form input[type=text],.mpf-lo-portal__login-form input[type=password]{border-radius:8px;height:50px;padding:0 14px}
.mpf-lo-portal__login-form input:focus{outline:3px solid rgba(22,61,140,.10);border-color:var(--portal-blue)}
.mpf-lo-portal__login-form .button-primary{border-radius:8px;background:var(--portal-blue);transition:background .15s ease,transform .15s ease}
.mpf-lo-portal__login-form .button-primary:hover{background:#0f3277;transform:translateY(-1px)}
.mpf-lo-portal__status{border-radius:9px}

/* Resources */
.mpf-lo-resources__toolbar{align-items:center;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--portal-border)}
.mpf-lo-resources__toolbar h2{font-size:1.45rem}
.mpf-lo-resources__search input{height:46px;border-radius:9px}
.mpf-lo-resources__list{gap:10px}
.mpf-lo-resources__item{grid-template-columns:50px minmax(0,1fr) auto;gap:17px;padding:17px 18px;border-radius:11px;border-color:var(--portal-border);box-shadow:0 3px 12px rgba(15,33,79,.025)}
.mpf-lo-resources__item:hover{border-color:#c7d3e3;box-shadow:0 9px 24px rgba(15,33,79,.06)}
.mpf-lo-resources__file-icon{width:50px;height:50px;border-radius:10px;background:var(--portal-blue-soft)}
.mpf-lo-resources__item h3{font-size:1rem}
.mpf-lo-resources__action .btn{border-radius:8px!important;padding-left:16px!important;padding-right:16px!important;box-shadow:none}
.mpf-lo-resources__empty{border-radius:12px}

@media(max-width:767px){
 .mpf-lo-portal__header{padding:48px 0 40px}
 .mpf-lo-portal__content{padding:30px 0 58px}
 .mpf-lo-portal__section-heading{align-items:flex-start;flex-direction:column;gap:5px}
 .mpf-lo-portal__card{min-height:auto;padding:22px}
 .mpf-lo-portal__login-wrap{padding:24px;gap:20px}
 .mpf-lo-resources__item{grid-template-columns:44px minmax(0,1fr);padding:15px}
 .mpf-lo-resources__file-icon{width:44px;height:44px}
}



/* =========================================================
   v16.2 — Sign-in feedback + dashboard greeting
   ========================================================= */
.mpf-lo-portal__signin-button{position:relative;display:flex;align-items:center;justify-content:center;gap:9px}
.mpf-lo-portal__button-loading{display:none;align-items:center;justify-content:center;gap:9px}
.mpf-lo-portal__signin-button.is-loading .mpf-lo-portal__button-label{display:none}
.mpf-lo-portal__signin-button.is-loading .mpf-lo-portal__button-loading{display:flex}
.mpf-lo-portal__signin-button.is-loading,.mpf-lo-portal__signin-button:disabled{cursor:wait;opacity:.88}
.mpf-lo-portal__spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:mpfPortalSpin .7s linear infinite}
@keyframes mpfPortalSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mpf-lo-portal__spinner{animation-duration:1.4s}}

/* v16.10 - MPFI Forms directory refinements */
.mpf-lo-resources__count{
  margin:5px 0 0;
  color:#7a8791;
  font-size:.76rem;
  line-height:1.4;
}
.mpf-resource-download{
  min-width:126px;
  justify-content:center;
  position:relative;
  transition:background-color .2s ease,box-shadow .2s ease,transform .2s ease,opacity .2s ease;
}
.mpf-resource-download:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(20,58,145,.14)!important;
}
.mpf-resource-download__spinner{
  display:none;
  width:14px;
  height:14px;
  border:2px solid rgba(255,255,255,.42);
  border-top-color:#fff;
  border-radius:50%;
  animation:mpf-resource-spin .7s linear infinite;
}
.mpf-resource-download.is-loading{
  pointer-events:none;
  cursor:wait;
  opacity:.88;
  transform:none;
}
.mpf-resource-download.is-loading .mpf-resource-download__icon{display:none}
.mpf-resource-download.is-loading .mpf-resource-download__spinner{display:inline-block}
@keyframes mpf-resource-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .mpf-resource-download__spinner{animation-duration:1.4s}
  .mpf-resource-download{transition:none}
}
@media(max-width:767px){
  .mpf-lo-resources__count{font-size:.72rem}
  .mpf-resource-download{min-width:0}
}

/* =========================================================
   v16.11 — MPFI Forms compact file-type presentation
   ========================================================= */
.mpf-lo-resources__item{
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:15px;
  padding:14px 16px;
}
.mpf-lo-resources__file-icon{
  width:46px;
  height:46px;
  border-radius:10px;
  font-size:1.28rem;
  background:#eef3fb;
  color:#24439a;
}
.mpf-lo-resources__file-icon--pdf{background:#fff1f1;color:#b42318}
.mpf-lo-resources__file-icon--word{background:#eef4ff;color:#2457b2}
.mpf-lo-resources__file-icon--sheet{background:#edf9f1;color:#1f7a45}
.mpf-lo-resources__file-icon--slides{background:#fff4ea;color:#b54708}
.mpf-lo-resources__file-icon--image{background:#f6f0ff;color:#6941c6}
.mpf-lo-resources__file-icon--archive{background:#fff8e7;color:#9a6700}
.mpf-lo-resources__description{margin-top:3px;line-height:1.45}
.mpf-lo-resources__meta{display:none}
.mpf-lo-resources__action{padding-left:10px}

@media(max-width:767px){
  .mpf-lo-resources__item{grid-template-columns:42px minmax(0,1fr);gap:13px;padding:14px}
  .mpf-lo-resources__file-icon{width:42px;height:42px;font-size:1.18rem}
  .mpf-lo-resources__action{grid-column:2;padding:6px 0 0}
}

/* =========================================================
   v16.12 — File size inside download action
   ========================================================= */
.mpf-lo-resources__item-main h3{margin:0}
.mpf-resource-download{min-width:154px;justify-content:center}
@media(max-width:767px){
  .mpf-resource-download{min-width:0}
}

/* =========================================================
   v16.13 — MPFI Forms scalable compact layout
   ========================================================= */
.mpf-resource-download{
  display:inline-grid!important;
  grid-template-columns:auto auto auto;
  align-items:center;
  column-gap:7px;
  min-width:166px;
}
.mpf-resource-download__size{
  padding-left:8px;
  border-left:1px solid rgba(255,255,255,.28);
  color:rgba(255,255,255,.8);
  font-size:.69rem;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.mpf-resource-download.is-loading .mpf-resource-download__size{opacity:.7}

/* Keep long directories easy to scan without making each row oversized. */
.mpf-lo-resources__list{gap:10px}
.mpf-lo-resources__item{min-height:86px}
.mpf-lo-resources__description{max-width:760px}

@media(max-width:767px){
  .mpf-lo-resources__toolbar{
    align-items:stretch;
    text-align:left;
  }
  .mpf-lo-resources__toolbar > div{
    width:100%;
    text-align:left;
  }
  .mpf-lo-resources__label,
  .mpf-lo-resources__toolbar h2,
  .mpf-lo-resources__count{
    text-align:left;
  }
  .mpf-lo-resources__search{margin-top:2px}
  .mpf-lo-resources__item{
    min-height:0;
  }
  .mpf-resource-download{
    width:100%;
    min-width:0;
    grid-template-columns:auto 1fr auto;
    justify-content:stretch!important;
    text-align:left;
  }
  .mpf-resource-download__label{justify-self:start}
  .mpf-resource-download__size{
    justify-self:end;
    padding-left:12px;
  }
}

@media(max-width:420px){
  .mpf-lo-resources__toolbar h2{font-size:1.3rem}
  .mpf-lo-resources__count{margin-top:4px}
  .mpf-lo-resources__item{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:13px}
  .mpf-lo-resources__file-icon{width:40px;height:40px}
  .mpf-lo-resources__description{font-size:.77rem}
}

/* =========================================================
   v16.13.1 — Download size hover/focus visibility fix
   ========================================================= */
.mpf-resource-download__size{
  color:currentColor;
  opacity:.78;
  border-left-color:currentColor;
}
.mpf-resource-download:hover .mpf-resource-download__size,
.mpf-resource-download:focus-visible .mpf-resource-download__size{
  color:currentColor;
  opacity:.82;
  border-left-color:currentColor;
}
.mpf-resource-download.is-loading .mpf-resource-download__size{
  opacity:.62;
}

/* v16.16 — compact signed-in identity panel and long-name protection */
.mpf-lo-portal__header h1{overflow-wrap:anywhere;word-break:normal}
.mpf-lo-portal__welcome-copy{min-width:0}
.mpf-lo-portal__welcome-copy strong{overflow-wrap:anywhere;word-break:normal}
.mpf-lo-portal__welcome-copy small{display:block;margin-top:2px;color:#8a96a8;font-size:.72rem;font-weight:650;line-height:1.3}

@media(max-width:767px){
  .mpf-lo-portal__header h1{font-size:clamp(2rem,9vw,2.65rem);line-height:1.08}
  .mpf-lo-portal__content{padding-top:28px}
  .mpf-lo-portal__welcome{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 15px;margin-bottom:24px;border-radius:12px}
  .mpf-lo-portal__welcome-user{min-width:0;gap:11px}
  .mpf-lo-portal__avatar{width:46px;height:46px;flex:0 0 46px;font-size:.78rem!important}
  .mpf-lo-portal__welcome-user>div>span{font-size:.58rem;line-height:1.2}
  .mpf-lo-portal__welcome-user>div>strong{font-size:.9rem;line-height:1.25;margin-top:3px}
  .mpf-lo-portal__welcome-copy small{font-size:.68rem}
  .mpf-lo-portal__logout{align-self:center;justify-self:end;padding:8px 9px;white-space:nowrap}
  .mpf-lo-portal__section-heading{margin-top:0}
}

@media(max-width:430px){
  .mpf-lo-portal__welcome{grid-template-columns:1fr;gap:10px}
  .mpf-lo-portal__logout{justify-self:start;margin-left:57px;padding:6px 0}
}


/* ==========================================
   LO PORTAL — STATUS NOTICE POLISH
   v19.5
========================================== */
.mpf-lo-portal__status{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:start;
  gap:12px;
  margin:0 0 24px;
  padding:15px 17px;
  border:1px solid var(--portal-border);
  border-radius:10px;
  background:#fff;
  font-size:inherit;
  line-height:1.45;
}

.mpf-lo-portal__status--success{
  border-color:#bfe2ca;
  background:#f1faf4;
  color:#185f35;
}

.mpf-lo-portal__status--error{
  border-color:#efc5c7;
  background:#fff5f5;
  color:#842a31;
}

.mpf-lo-portal__status-icon{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:.95rem;
}

.mpf-lo-portal__status--success .mpf-lo-portal__status-icon{
  background:#dcefe2;
  color:#18703a;
}

.mpf-lo-portal__status--error .mpf-lo-portal__status-icon{
  background:#f8dddd;
  color:#a12c31;
}

.mpf-lo-portal__status-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  padding-top:1px;
}

.mpf-lo-portal__status-copy strong{
  color:inherit;
  font-size:.86rem;
  font-weight:800;
  line-height:1.3;
}

.mpf-lo-portal__status-copy span{
  color:inherit;
  opacity:.88;
  font-size:.78rem;
  font-weight:500;
  line-height:1.5;
}

@media(max-width:575px){
  .mpf-lo-portal__status{
    grid-template-columns:34px minmax(0,1fr);
    gap:10px;
    padding:14px;
    border-radius:8px;
  }

  .mpf-lo-portal__status-icon{
    width:34px;
    height:34px;
    font-size:.88rem;
  }
}


.mpf-lo-portal__turnstile{margin:2px 0 18px;max-width:100%;overflow:hidden}
.mpf-lo-portal__turnstile .cf-turnstile,.mpf-lo-portal__turnstile iframe{max-width:100%}
@media(max-width:420px){.mpf-lo-portal__turnstile{overflow:visible}}

/* v19.7.6 — Resources compact download action
   Presentation only: download href/process/JS remain unchanged. */
.mpf-lo-resources__download-group{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:14px;
}

.mpf-lo-resources__file-meta{
	display:inline-flex;
	align-items:center;
	gap:6px;
	color:var(--portal-muted);
	font-size:.74rem;
	font-weight:700;
	line-height:1;
	white-space:nowrap;
}

.mpf-lo-resources__file-type{
	color:#66758a;
	letter-spacing:.03em;
	text-transform:uppercase;
}

.mpf-lo-resources__file-meta-separator{
	color:#a5afbc;
}

.mpf-resource-download{
	display:inline-flex!important;
	align-items:center;
	justify-content:center!important;
	gap:8px;
	min-width:126px;
	min-height:44px;
	padding:0 16px!important;
	border-radius:8px!important;
	box-shadow:none!important;
	font-size:.82rem!important;
	font-weight:800!important;
	line-height:1!important;
}

.mpf-resource-download:hover,
.mpf-resource-download:focus-visible{
	box-shadow:none!important;
}

.mpf-resource-download__size{
	display:none!important;
}

@media(max-width:767px){
	.mpf-lo-resources__action{
		width:100%;
		padding-left:0;
	}

	.mpf-lo-resources__download-group{
		width:100%;
		justify-content:space-between;
		gap:12px;
	}

	.mpf-resource-download{
		width:auto;
		min-width:126px;
	}
}

@media(max-width:420px){
	.mpf-lo-resources__download-group{
		align-items:stretch;
		flex-direction:column;
	}

	.mpf-resource-download{
		width:100%;
	}
}

/* =========================================================
   v19.7.11 — MPFI Forms tabs + Open / Download actions
   ========================================================= */
.mpf-lo-resources__tabs{
	display:flex;
	align-items:center;
	gap:6px;
	margin:0 0 22px;
	padding:4px;
	width:max-content;
	max-width:100%;
	border:1px solid var(--portal-border);
	border-radius:10px;
	background:#fff;
}

.mpf-lo-resources__tab{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	min-height:42px;
	padding:0 15px;
	border:0;
	border-radius:7px;
	background:transparent;
	color:#66758a;
	font-size:.80rem;
	font-weight:800;
	cursor:pointer;
	transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}

.mpf-lo-resources__tab:hover{
	color:var(--portal-navy);
	background:#f6f8fb;
}

.mpf-lo-resources__tab.is-active{
	background:var(--portal-blue-soft);
	color:var(--portal-blue);
	box-shadow:inset 0 0 0 1px rgba(22,61,140,.08);
}

.mpf-lo-resources__tab:focus-visible{
	outline:3px solid rgba(22,61,140,.14);
	outline-offset:2px;
}

.mpf-lo-resources__tab-count{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-width:23px;
	height:23px;
	padding:0 6px;
	border-radius:999px;
	background:#fff;
	color:inherit;
	font-size:.69rem;
	line-height:1;
}

.mpf-lo-resources__action-buttons{
	display:flex;
	align-items:center;
	gap:8px;
}

.mpf-resource-open{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:7px;
	min-width:92px;
	min-height:44px;
	padding:0 14px;
	border:1px solid var(--portal-border);
	border-radius:8px;
	background:#fff;
	color:var(--portal-blue);
	font-size:.80rem;
	font-weight:800;
	line-height:1;
	text-decoration:none;
	white-space:nowrap;
	transition:border-color .15s ease,background .15s ease,color .15s ease;
}

.mpf-resource-open:hover,
.mpf-resource-open:focus{
	border-color:#b9c9dc;
	background:var(--portal-blue-soft);
	color:var(--portal-blue);
	text-decoration:none;
}

.mpf-resource-open:focus-visible{
	outline:3px solid rgba(22,61,140,.14);
	outline-offset:2px;
}

@media(max-width:767px){
	.mpf-lo-resources__tabs{
		width:100%;
	}

	.mpf-lo-resources__tab{
		flex:1 1 0;
	}

	.mpf-lo-resources__download-group{
		align-items:center;
	}

	.mpf-lo-resources__action-buttons{
		flex:0 0 auto;
	}
}

@media(max-width:560px){
	.mpf-lo-resources__download-group{
		align-items:stretch;
		flex-direction:column;
		gap:10px;
	}

	.mpf-lo-resources__action-buttons{
		display:grid;
		grid-template-columns:1fr 1fr;
		width:100%;
	}

	.mpf-resource-open,
	.mpf-resource-download{
		width:100%!important;
		min-width:0;
	}
}

@media(max-width:380px){
	.mpf-lo-resources__tabs{
		flex-direction:column;
		align-items:stretch;
	}

	.mpf-lo-resources__action-buttons{
		grid-template-columns:1fr;
	}
}

/* =========================================================
   v19.7.13 — MPFI Forms minor polish
   ========================================================= */
.mpf-lo-resources__tab:not(.is-active){
	color:#56677d;
}

.mpf-lo-resources__download-group{
	gap:10px;
}

@media(max-width:767px){
	.mpf-lo-resources__download-group{
		gap:10px;
	}
}

/* =========================================================
   v19.7.18 — LO Portal password visibility toggle
   ========================================================= */
.mpf-lo-portal__login-form .mpf-password-field{
	position:relative;
	display:block;
}

.mpf-lo-portal__login-form .mpf-password-field input[type=password],
.mpf-lo-portal__login-form .mpf-password-field input[type=text]{
	padding-right:48px;
}

.mpf-lo-portal__login-form .mpf-password-toggle{
	position:absolute;
	top:50%;
	right:6px;
	transform:translateY(-50%);
	display:inline-flex;
	align-items:center;
	justify-content:center;
	width:38px;
	height:38px;
	padding:0;
	border:0;
	border-radius:6px;
	background:transparent;
	color:#667684;
	font-size:1rem;
	line-height:1;
	cursor:pointer;
	transition:color .15s ease,background-color .15s ease;
}

.mpf-lo-portal__login-form .mpf-password-toggle:hover{
	background:#f1f5f7;
	color:var(--portal-blue);
}

.mpf-lo-portal__login-form .mpf-password-toggle:focus-visible{
	outline:3px solid rgba(22,61,140,.16);
	outline-offset:1px;
	color:var(--portal-blue);
}

/* v19.7.19 MPFI Resources expansion */
.mpf-lo-resources__toolbar--compact{align-items:center;margin-bottom:14px}
.mpf-lo-resources__toolbar--compact .mpf-lo-resources__count{margin:0;color:#768697;font-size:.78rem}
.mpf-lo-resources__tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.mpf-lo-resources__tab-notice{display:flex;gap:10px;margin:-4px 0 18px;padding:14px 16px;border:1px solid #d8e2e8;border-radius:8px;background:#fff;color:#536475;font-size:.82rem;line-height:1.55}
.mpf-lo-resources__tab-notice[hidden]{display:none}
@media(max-width:991px){.mpf-lo-resources__tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mpf-lo-resources__tab{justify-content:space-between;width:100%}}
@media(max-width:520px){.mpf-lo-resources__tabs{grid-template-columns:1fr}}

/* =========================================================
   v19.7.20 — Dashboard application card + Resources controls
   ========================================================= */

/* Four workspace tools on wide screens; two-up before mobile. */
@media (min-width:1200px){
	.mpf-lo-portal__grid{
		grid-template-columns:repeat(4,minmax(0,1fr));
	}
}

@media (min-width:768px) and (max-width:1199px){
	.mpf-lo-portal__grid{
		grid-template-columns:repeat(2,minmax(0,1fr));
	}
}

.mpf-lo-portal__card--application:before{
	background:var(--portal-gold);
}

.mpf-lo-portal__card--application .mpf-lo-portal__icon{
	background:#fff8e6;
	color:#9a6a00;
}

/* MPFI Resources: tabs and one scoped search share the top row. */
.mpf-lo-resources__controls{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:20px;
	margin-bottom:18px;
	padding-bottom:18px;
	border-bottom:1px solid var(--portal-border);
}

.mpf-lo-resources__controls .mpf-lo-resources__tabs{
	display:flex;
	flex-wrap:wrap;
	flex:1 1 auto;
	gap:8px;
	margin:0;
	min-width:0;
}

.mpf-lo-resources__controls .mpf-lo-resources__search{
	flex:0 0 330px;
	width:330px;
}

.mpf-lo-resources__tab-notice{
	margin:0 0 18px;
}

@media(max-width:1199px){
	.mpf-lo-resources__controls{
		align-items:stretch;
		flex-direction:column;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__search{
		flex:0 0 auto;
		width:min(100%,420px);
	}
}

@media(max-width:767px){
	.mpf-lo-resources__controls .mpf-lo-resources__tabs{
		display:grid;
		grid-template-columns:repeat(2,minmax(0,1fr));
		width:100%;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__search{
		width:100%;
	}
}

@media(max-width:520px){
	.mpf-lo-resources__controls .mpf-lo-resources__tabs{
		grid-template-columns:1fr;
	}
}

/* =========================================================
   v19.7.21 — Dashboard card + Guidelines polish
   ========================================================= */

/* Better wrapping for longer dashboard card titles. */
.mpf-lo-portal__card h2{
	line-height:1.35;
}

/* Keep the 5 resource tabs visually balanced on desktop. */
@media(min-width:1200px){
	.mpf-lo-resources__controls .mpf-lo-resources__tabs{
		display:grid;
		grid-template-columns:repeat(5,minmax(0,1fr));
		gap:8px;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__tab{
		justify-content:center;
		width:100%;
		padding-left:12px;
		padding-right:12px;
	}
}

/* Subtle folder context for Guideline resources without adding another filter. */
.mpf-lo-resources__guideline-folder{
	display:inline-flex;
	align-items:center;
	gap:6px;
	margin-top:6px;
	color:#728198;
	font-size:.72rem;
	font-weight:700;
	line-height:1.35;
}

.mpf-lo-resources__guideline-folder i{
	color:var(--portal-blue);
	font-size:.78rem;
}

/* =========================================================
   v19.7.22 — MPFI Resources desktop tab no-wrap
   ========================================================= */
@media(min-width:1200px){
	.mpf-lo-resources__controls .mpf-lo-resources__tab{
		white-space:nowrap;
		padding-left:10px;
		padding-right:10px;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__tab > span:first-child{
		white-space:nowrap;
	}
}

/* =========================================================
   v19.7.23 — MPFI Resources consistent desktop tabs
   Give longer labels enough space while keeping every tab
   single-line, equal-height, and visually contained.
   ========================================================= */
@media(min-width:1200px){
	.mpf-lo-resources__controls .mpf-lo-resources__tabs{
		grid-template-columns:
			minmax(125px,1fr)
			minmax(115px,.9fr)
			minmax(145px,1.1fr)
			minmax(205px,1.55fr)
			minmax(120px,.95fr);
		align-items:stretch;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__tab{
		min-width:0;
		min-height:48px;
		width:100%;
		padding:0 10px;
		gap:7px;
		white-space:nowrap;
		line-height:1;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__tab > span:first-child{
		min-width:0;
		white-space:nowrap;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__tab-count{
		flex:0 0 auto;
	}
}

/* =========================================================
   v19.7.24 — External video resource support
   ========================================================= */
.mpf-lo-resources__file-icon--video{
	background:#fff7e5;
	color:#9a6a00;
}

.mpf-resource-watch{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:7px;
	white-space:nowrap;
}

@media(max-width:767px){
	.mpf-resource-watch{
		width:100%;
	}
}

/* =========================================================
   v19.7.25 — Tablet resource/search layout
   ========================================================= */
@media (min-width:768px) and (max-width:1199px){
	.mpf-lo-resources__controls .mpf-lo-resources__search{
		width:100%;
		max-width:none;
		flex:0 0 auto;
	}

	.mpf-lo-resources__controls .mpf-lo-resources__search input{
		width:100%;
	}
}

/* =========================================================
   v19.7.26 — MPFI Resource title wrapping polish
   ========================================================= */
.mpf-lo-resources__item h3{
	line-height:1.4;
}
