
:root{
  --pf-v4-sidebar:240px;
  --pf-v4-topbar:64px;
  --pf-v4-footer:44px;
  --pf-v4-page-x:28px;
  --pf-v4-heading-h:62px;
}

/* === GLOBAL FIXED SHELL === */
html,body{
  height:100%!important;
}
body.pf-shell-v4{
  margin:0!important;
  overflow:hidden!important;
  background:#f4f6f8!important;
}
.pf-shell-v4 .app-shell{
  height:100vh!important;
  min-height:100vh!important;
  overflow:hidden!important;
}
.pf-shell-v4 .topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:var(--pf-v4-topbar)!important;
  min-height:var(--pf-v4-topbar)!important;
  z-index:700!important;
}
.pf-shell-v4 .pf-global-sidebar,
.pf-shell-v4 .sidebar{
  position:fixed!important;
  top:var(--pf-v4-topbar)!important;
  left:0!important;
  bottom:0!important;
  width:var(--pf-v4-sidebar)!important;
  height:calc(100vh - var(--pf-v4-topbar))!important;
  max-height:calc(100vh - var(--pf-v4-topbar))!important;
  z-index:690!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.pf-shell-v4 .pf-global-sidebar{
  display:flex!important;
  flex-direction:column!important;
}
.pf-shell-v4 .pf-global-sidebar .main-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.pf-shell-v4 .main-content{
  position:fixed!important;
  top:var(--pf-v4-topbar)!important;
  left:var(--pf-v4-sidebar)!important;
  right:0!important;
  bottom:0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}

/* === SAME WIDTH ON EVERY PAGE === */
.pf-shell-v4 .main-content > .page-content,
.pf-shell-v4 .page-content,
.pf-shell-v4 .dashboard-page,
.pf-shell-v4 .accounts-page,
.pf-shell-v4 .credit-cards-page,
.pf-shell-v4 .loans-page{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:16px var(--pf-v4-page-x) 68px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  box-sizing:border-box!important;
  background:#f4f6f8!important;
}

/* Every main content block fills the exact same usable width. */
.pf-shell-v4 .page-content > .page-heading,
.pf-shell-v4 .page-content > section,
.pf-shell-v4 .page-content > article,
.pf-shell-v4 .page-content > .surface-card,
.pf-shell-v4 .dashboard-summary-band,
.pf-shell-v4 .content-grid,
.pf-shell-v4 .activity-card,
.pf-shell-v4 .accounts-layout,
.pf-shell-v4 .cards-layout,
.pf-shell-v4 .loans-layout,
.pf-shell-v4 .account-summary-grid,
.pf-shell-v4 .card-summary-grid,
.pf-shell-v4 .metric-grid{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* Remove module-specific narrow wrappers. */
.pf-shell-v4 .account-create-card,
.pf-shell-v4 .accounts-list-card,
.pf-shell-v4 .card-create-card,
.pf-shell-v4 .cards-list-card,
.pf-shell-v4 .loan-create-card,
.pf-shell-v4 .loan-list-card,
.pf-shell-v4 .surface-card{
  max-width:none!important;
  box-sizing:border-box!important;
}

/* === COMPACT CORPORATE TITLE === */
.pf-shell-v4 .page-content > .page-heading{
  position:relative!important;
  inset:auto!important;
  order:0!important;
  float:none!important;
  grid-column:auto!important;
  grid-row:auto!important;
  transform:none!important;

  min-height:var(--pf-v4-heading-h)!important;
  height:auto!important;
  padding:10px 16px!important;
  margin:0 0 12px!important;

  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;

  border-radius:9px!important;
}
.pf-shell-v4 .page-heading .eyebrow{
  margin:0 0 3px!important;
  font-size:8px!important;
  line-height:1.2!important;
  font-weight:700!important;
  letter-spacing:.11em!important;
}
.pf-shell-v4 .page-heading h1{
  margin:0!important;
  font-size:22px!important;
  line-height:1.05!important;
  font-weight:600!important;
  letter-spacing:-.018em!important;
}
.pf-shell-v4 .page-heading p,
.pf-shell-v4 .page-heading .muted,
.pf-shell-v4 .page-heading .page-heading-description{
  margin:3px 0 0!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:400!important;
  opacity:.86!important;
}
.pf-shell-v4 .page-heading .button,
.pf-shell-v4 .page-heading a.button{
  min-height:32px!important;
  height:32px!important;
  padding:6px 11px!important;
  font-size:10px!important;
  border-radius:7px!important;
}

/* Slightly calmer section typography. */
.pf-shell-v4 .section-heading{
  margin-bottom:12px!important;
}
.pf-shell-v4 .section-heading h2{
  margin:0!important;
  font-size:16px!important;
  line-height:1.15!important;
  font-weight:600!important;
}
.pf-shell-v4 .section-heading .eyebrow{
  font-size:8px!important;
  line-height:1.2!important;
  margin-bottom:3px!important;
}
.pf-shell-v4 .subtle-tag{
  font-size:8px!important;
}

/* === FIXED FOOTER === */
.pf-shell-v4 .page-footer,
.pf-shell-v4 .pf-unified-footer{
  position:fixed!important;
  left:var(--pf-v4-sidebar)!important;
  right:0!important;
  bottom:0!important;
  width:auto!important;
  max-width:none!important;
  height:var(--pf-v4-footer)!important;
  margin:0!important;
  padding:0 var(--pf-v4-page-x)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  box-sizing:border-box!important;
  border-top:1px solid #e0e4e8!important;
  background:#f4f6f8!important;
  z-index:695!important;
  font-size:8px!important;
}

/* === CONSISTENT FONT === */
.pf-shell-v4,
.pf-shell-v4 input,
.pf-shell-v4 select,
.pf-shell-v4 textarea,
.pf-shell-v4 button{
  font-family:Inter,"Segoe UI",Arial,sans-serif!important;
  text-rendering:optimizeLegibility!important;
  -webkit-font-smoothing:antialiased!important;
}

/* === RESPONSIVE === */
@media(max-width:1100px){
  :root{
    --pf-v4-sidebar:220px;
    --pf-v4-page-x:20px;
  }
}
@media(max-width:760px){
  :root{
    --pf-v4-sidebar:0px;
    --pf-v4-topbar:60px;
    --pf-v4-page-x:14px;
    --pf-v4-heading-h:58px;
  }
  .pf-shell-v4 .pf-global-sidebar,
  .pf-shell-v4 .sidebar{
    width:280px!important;
    transform:translateX(-100%);
    transition:transform .2s ease;
  }
  .pf-shell-v4 .sidebar.is-open,
  .pf-shell-v4 .pf-global-sidebar.is-open{
    transform:translateX(0);
  }
  .pf-shell-v4 .main-content{
    left:0!important;
  }
  .pf-shell-v4 .page-heading h1{
    font-size:19px!important;
  }
  .pf-shell-v4 .page-heading p,
  .pf-shell-v4 .page-heading .muted,
  .pf-shell-v4 .page-heading .page-heading-description{
    font-size:10px!important;
  }
  .pf-shell-v4 .page-footer,
  .pf-shell-v4 .pf-unified-footer{
    left:0!important;
    font-size:7px!important;
  }
}
