:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #102b46;
  background: #f7fafd;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
.portal-shell { min-height: 100vh; display: flex; flex-direction: column; }
.portal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1.25rem, 5vw, 5.5rem); background: #fff; border-bottom: 1px solid #e5edf4; }
.portal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.portal-brand { display: flex; align-items: center; gap: .8rem; color: #102b46; text-decoration: none; font-size: 1rem; font-weight: 800; line-height: 1.1; }
.portal-brand-caption { color: #527eaa; font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.portal-main { width: min(100%, 66rem); margin: auto; padding: 2.5rem 1.25rem; }
.portal-card { background: #fff; border: 1px solid #e1eaf2; border-radius: 1rem; box-shadow: 0 12px 34px rgba(11, 39, 69, .045); padding: clamp(1.5rem, 4vw, 2.75rem); }
.portal-eyebrow { margin: 0 0 .8rem; color: #527eaa; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.portal-intro { color: #5c6f82; line-height: 1.55; margin: .85rem 0 1.75rem; }
.portal-form { display: grid; gap: .55rem; }
.portal-recovery-link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: .8rem; color: #2367a5; font-size: .9375rem; font-weight: 600; text-align: center; }
.portal-recovery-link:focus-visible { outline: 3px solid #7faed5; outline-offset: 3px; border-radius: .3rem; }
.portal-reset-page .portal-reset-card { margin: auto; max-width: 31.25rem; }
.portal-reset-eyebrow { color: #3479bd; font-size: .8rem; font-weight: 700; margin: .5rem 0 1rem; }
.portal-reset-help { color: #536d86; font-size: .85rem; line-height: 1.5; }
.portal-reset-help ul, .portal-error ul { padding-left: 1.2rem; margin: .25rem 0; }
.portal-reset-action { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.portal-recovery-button { border: 0; background: transparent; font-family: inherit; width: 100%; cursor: pointer; }
.portal-form label { font-size: .9rem; font-weight: 700; margin-top: .55rem; }
.portal-form input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 3.35rem; padding: .75rem .9rem; border: 1px solid #cbd8e4; border-radius: .6rem; color: #102b46; background: #fff; }
.portal-form input:focus-visible, .portal-primary:focus-visible, .portal-logout:focus-visible, .portal-password-toggle:focus-visible, .portal-brand:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
.portal-primary { margin-top: 1.1rem; min-height: 3.4rem; border: 0; border-radius: .6rem; background: #0b2745; color: #fff; font-weight: 750; cursor: pointer; transition: background-color .18s ease; }
.portal-primary:hover { background: #28577e; }
.portal-error { padding: .75rem .9rem; border: 1px solid #efb3b3; border-radius: .55rem; background: #fff5f5; color: #a12323; font-size: .9rem; }
.portal-logout { padding: .55rem .8rem; border: 1px solid #b8c8d8; border-radius: .6rem; background: #fff; color: #1e2e40; font-size: .82rem; font-weight: 750; cursor: pointer; }
.portal-logout:hover { background: #f4f7fb; }
.portal-profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0; }
.portal-profile div { padding: 1rem; border-radius: .65rem; background: #f4f7fb; }
.portal-profile dt { color: #66788c; font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.portal-profile dd { margin: .35rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.portal-footer { text-align: center; padding: 1.25rem; color: #748497; font-size: .73rem; }
.portal-login-page { background: #fbfdff; }
.portal-login-page .portal-header { display: none; }
.portal-login-logo { display: block; width: 9.625rem; height: 3.5rem; margin: 0 auto .8rem; object-fit: contain; }
.portal-login-page .portal-shell {
  background-color: #fbfdff;
  background-image: url("portal-background.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}
.portal-login-page .portal-main { width: min(100%, 1320px); padding: 2rem clamp(1.5rem, 2vw, 2rem) 5rem; flex: 1; display: flex; align-items: center; }
.portal-login-layout { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); align-items: center; gap: clamp(2.5rem, 4vw, 4rem); width: 100%; transform: translateY(-2.5vh); }
.portal-welcome { position: relative; isolation: isolate; padding: 1rem 0 2rem; }
.portal-welcome-eyebrow { display: flex; align-items: center; gap: 1rem; margin: 0 0 2rem; color: #527eaa; font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.portal-welcome-eyebrow::after { content: ""; display: block; width: 4rem; height: 1px; background: #a8bfd5; }
.portal-welcome h1 { margin: 0 0 3.7rem; color: #0b2745; font-size: clamp(3.625rem, 4.2vw, 4rem); font-weight: 760; line-height: 1.02; letter-spacing: -.052em; }
.portal-welcome h1 span { color: #527eaa; }
.portal-benefits { display: flex; align-items: flex-start; gap: clamp(1.5rem, 2.7vw, 2.75rem); }
.portal-benefit { display: flex; align-items: center; gap: .8rem; color: #173755; font-size: clamp(.9rem, .85vw, 1rem); font-weight: 700; line-height: 1.4; white-space: nowrap; }
.portal-benefit-icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: #eaf3fc; color: #0b2745; }
.portal-benefit-icon svg { width: 1.5rem; height: 1.5rem; }
.portal-login { width: 100%; max-width: 31.25rem; margin: 0 0 0 auto; padding: clamp(2.5rem, 3vw, 2.75rem); }
.portal-login-page .portal-welcome { animation: portal-login-arrive .38s cubic-bezier(.16,1,.3,1) both; }
.portal-login-page .portal-login { animation: portal-login-arrive .42s cubic-bezier(.16,1,.3,1) .07s both; }
.portal-login-page .portal-main { transition: opacity .14s ease, transform .14s ease; }
.portal-login-page.portal-login-exit .portal-main { opacity: 0; transform: translateY(6px); }
@keyframes portal-login-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.portal-login h2 { margin: 0; font-size: clamp(1.875rem, 2.2vw, 2.125rem); line-height: 1.15; letter-spacing: -.035em; }
.portal-login .portal-intro { font-size: 1rem; }
.portal-login .portal-form label { font-size: .9375rem; }
.portal-login .portal-form input:not([type="radio"]):not([type="checkbox"]) { min-height: 3.5rem; }
.portal-login .portal-primary { min-height: 3.5rem; font-weight: 600; }
.portal-input-wrap { position: relative; }
.portal-input-wrap > svg { position: absolute; top: 50%; left: 1rem; width: 1.2rem; height: 1.2rem; transform: translateY(-50%); color: #6c849b; pointer-events: none; }
.portal-login .portal-form .portal-input-wrap input { padding-left: 3rem; font-size: 1rem; }
.portal-login .portal-form .portal-password-wrap input { padding-right: 5.4rem; }
.portal-password-toggle { position: absolute; right: .55rem; top: 50%; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; transform: translateY(-50%); padding: 0; border: 0; border-radius: .45rem; background: transparent; color: #315d83; cursor: pointer; }
.portal-password-toggle:hover { background: #eef5fa; }
.portal-password-toggle svg { width: 1.2rem; height: 1.2rem; }
.portal-password-toggle [data-eye-closed] { display: none; }
.portal-password-toggle[data-password-visible="true"] [data-eye-open] { display: none; }
.portal-password-toggle[data-password-visible="true"] [data-eye-closed] { display: inline; }
.portal-password-toggle:hover { color: #0b2745; }
.portal-login .portal-primary { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; font-size: 1rem; }
.portal-login .portal-primary span { font-size: 1.3rem; line-height: 1; }
.portal-primary:disabled { cursor: wait; opacity: .86; }
@media(prefers-reduced-motion:reduce) { .portal-private,.portal-login-page .portal-main { transition:none!important; }.portal-login-page .portal-welcome,.portal-login-page .portal-login { animation:none!important; } }
.portal-private { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.6rem 0 0; color: #6a7e90; font-size: .78rem; }
.portal-private svg { width: 1rem; height: 1rem; }

/* Authenticated portal: quiet navigation built from the login palette. */
.portal-app-page { background: #f8fbfe; }
.portal-app-page .portal-shell { min-height: 100dvh; }
.portal-app-page .portal-header { padding: .85rem clamp(1.25rem, 4vw, 4rem); }
.portal-app-page .portal-header-inner,
.portal-navigation-inner { width: min(100%, 68rem); margin-inline: auto; }
.portal-app-brand { flex-direction: column; align-items: flex-start; gap: .1rem; }
.portal-app-brand img { display: block; width: 7.25rem; height: 2.625rem; object-fit: contain; }
.portal-app-brand .portal-brand-caption { padding-left: .05rem; color: #627e98; font-size: .64rem; letter-spacing: .11em; }
.portal-app-page .portal-logout { min-height: 2.75rem; padding: .6rem 1rem; }
.portal-account-menu { position: relative; flex: none; }
.portal-account-menu summary { display: flex; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .2rem .3rem .2rem .2rem; border-radius: .7rem; color: #173755; cursor: pointer; list-style: none; font-size: .83rem; font-weight: 700; }
.portal-account-menu summary::-webkit-details-marker { display: none; }
.portal-account-menu summary:hover,
.portal-account-menu[open] summary { background: #f2f7fb; }
.portal-account-menu summary:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
.portal-account-menu summary > i { color: #71869a; font-size: .65rem; }
.portal-account-avatar { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #e6f0f8; color: #315d83; font-size: .76rem; letter-spacing: .02em; }
.portal-account-dropdown { position: absolute; z-index: 30; top: calc(100% + .55rem); right: 0; width: min(18rem, calc(100vw - 2rem)); padding: .45rem; border: 1px solid #dbe6ef; border-radius: .85rem; background: #fff; box-shadow: 0 16px 34px rgba(11, 39, 69, .12); }
.portal-account-dropdown p { margin: 0; padding: .7rem .75rem .8rem; border-bottom: 1px solid #e5edf4; color: #173755; font-size: .82rem; font-weight: 700; overflow-wrap: anywhere; }
.portal-account-dropdown p small { display: block; margin-top: .2rem; color: #71869a; font-size: .72rem; font-weight: 500; }
.portal-account-dropdown a,
.portal-account-dropdown button { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 2.75rem; padding: .5rem .75rem; border: 0; border-radius: .5rem; background: #fff; color: #173755; font-size: .81rem; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer; }
.portal-account-dropdown a:hover,
.portal-account-dropdown button:hover { background: #f2f7fb; }
.portal-account-dropdown a:focus-visible,
.portal-account-dropdown button:focus-visible { outline: 3px solid #7faed5; outline-offset: -2px; }
.portal-account-dropdown form { margin: 0; }
.portal-navigation { background: #fff; border-bottom: 1px solid #e5edf4; }
.portal-navigation-inner { display: flex; align-items: stretch; gap: clamp(.5rem, 2vw, 2rem); padding-inline: clamp(1.25rem, 4vw, 4rem); }
.portal-navigation-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 3.5rem; padding: .25rem .35rem; border-bottom: 2px solid transparent; color: #60778d; font-size: .87rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .18s ease, border-color .18s ease; }
.portal-navigation-icon { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; font-size: 1rem; }
.portal-navigation-label { display: block; }
.portal-navigation-link:hover { color: #0b2745; }
.portal-navigation-link.is-active { border-bottom-color: #527eaa; color: #0b2745; }
.portal-navigation-link:focus-visible { outline: 3px solid #7faed5; outline-offset: -3px; border-radius: .2rem; }
.portal-app-main { width: min(100%, 68rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem) 5rem; flex: 1; }
.portal-home,
.portal-section { max-width: 54rem; }
.portal-home h1,
.portal-section h1 { margin: 0; color: #0b2745; font-size: clamp(2.45rem, 5vw, 4.1rem); font-weight: 740; letter-spacing: -.045em; line-height: 1.08; }
.portal-home .portal-intro,
.portal-section .portal-intro { max-width: 37rem; margin: 1rem 0 0; color: #5c7184; font-size: clamp(1rem, 1.8vw, 1.13rem); line-height: 1.6; }
.portal-home-divider,
.portal-section-divider { height: 1px; margin: clamp(2.5rem, 5vw, 4rem) 0 1.6rem; background: #dbe6ef; }
.portal-home-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-home-section-heading h2,
.portal-section h2 { margin: 0; color: #173755; font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; }
.portal-home-section-heading a { color: #315d83; font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.portal-home-section-heading a:hover { text-decoration: underline; }
.portal-home-section-heading a:focus-visible { outline: 3px solid #7faed5; outline-offset: 4px; }
.portal-app-page .portal-profile { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.portal-app-page .portal-profile div { min-width: 0; padding: 1.1rem 1.25rem 1.1rem 0; border-top: 1px solid #dbe6ef; border-radius: 0; background: transparent; }
.portal-app-page .portal-profile div + div { padding-left: 1.25rem; border-left: 1px solid #dbe6ef; }
.portal-app-page .portal-profile dt { color: #71869a; font-size: .68rem; }
.portal-app-page .portal-profile dd { color: #173755; font-size: .95rem; font-weight: 650; line-height: 1.5; }
.portal-coming-list { margin-top: 1rem; border-top: 1px solid #dbe6ef; }
.portal-coming-list > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; border-bottom: 1px solid #dbe6ef; color: #173755; font-weight: 650; }
.portal-coming-list small { color: #71869a; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.portal-empty-note { margin: 1rem 0 0; color: #71869a; line-height: 1.6; }
.portal-bonus-summary { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid #c9dde9; border-radius: .75rem; background: #f4f9fc; color: #0b2745; text-decoration: none; }
.portal-bonus-summary > span:first-child { display: grid; gap: .35rem; flex: 1 1 15rem; }
.portal-bonus-summary strong { font-size: .98rem; }
.portal-bonus-summary small { color: #61788d; font-size: .8rem; line-height: 1.45; }
.portal-bonus-amount { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.portal-bonus-link { color: #315d83; font-size: .82rem; font-weight: 700; }
.portal-bonus-summary:hover { border-color: #91b6d1; }
.portal-bonus-summary:focus-visible { outline: 3px solid #7faed5; outline-offset: 3px; }
.portal-app-page .portal-footer { padding-bottom: 1.5rem; }
.portal-home-intro { position: relative; padding-top: .2rem; }
.portal-home-intro::after { content: ""; position: absolute; top: .25rem; right: 1.5rem; width: 2rem; height: 2rem; border: 1px solid #c4d9e9; border-radius: 50%; }
.portal-home h1 span { display: inline-block; margin-left: .15rem; font-size: .56em; vertical-align: .1em; }
.portal-home .portal-intro { max-width: 39rem; }
.portal-quick-access { margin-top: clamp(3.25rem, 7vw, 5.5rem); }
.portal-quick-access h2 { margin: .4rem 0 1.4rem; color: #0b2745; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 730; letter-spacing: -.035em; }
.portal-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-quick-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.2rem .8rem; min-height: 12rem; padding: 1.5rem; border: 1px solid #dce7f0; border-radius: 1rem; background: #fff; color: #0b2745; text-decoration: none; box-shadow: 0 8px 24px rgba(11, 39, 69, .035); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.portal-quick-card:hover { border-color: #afc9dd; box-shadow: 0 12px 28px rgba(11, 39, 69, .08); transform: translateY(-2px); }
.portal-quick-card:focus-visible { outline: 3px solid #7faed5; outline-offset: 3px; }
.portal-quick-icon { display: grid; place-items: center; grid-column: 1 / -1; width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: #eaf3fb; color: #315d83; font-size: 1.18rem; }
.portal-quick-copy { display: grid; gap: .35rem; min-width: 0; }
.portal-quick-copy strong { font-size: 1.08rem; font-weight: 720; }
.portal-quick-copy small { color: #6b8195; font-size: .83rem; font-weight: 500; line-height: 1.4; }
.portal-quick-arrow { align-self: center; color: #527eaa; font-size: 1.35rem; line-height: 1; }
.portal-quick-card--wide { grid-column: 1 / -1; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; min-height: 6.25rem; }
.portal-quick-card--wide .portal-quick-icon { grid-column: auto; }
.portal-labor-info { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.portal-labor-info .portal-home-section-heading { margin-bottom: 1.3rem; }
.portal-labor-info .portal-home-section-heading .portal-eyebrow { margin-bottom: .45rem; }
.portal-labor-info h2 { font-size: 1.38rem; }
.portal-home-info { margin: 0; padding: .45rem 1.5rem; border: 1px solid #dce7f0; border-radius: 1rem; background: #fff; }
.portal-home-info div { display: grid; grid-template-columns: minmax(7rem, .38fr) minmax(0, 1fr); gap: 1rem; padding: .85rem 0; }
.portal-home-info div + div { border-top: 1px solid #e7edf3; }
.portal-home-info dt { color: #71869a; font-size: .8rem; font-weight: 650; }
.portal-home-info dd { margin: 0; color: #173755; font-size: .85rem; font-weight: 650; overflow-wrap: anywhere; }
.portal-privacy-note { display: flex; align-items: flex-start; gap: .75rem; margin-top: 2.25rem; color: #6b8195; }
.portal-privacy-note > i { margin-top: .15rem; color: #527eaa; font-size: .9rem; }
.portal-privacy-note p { display: grid; gap: .2rem; margin: 0; font-size: .78rem; line-height: 1.4; }
.portal-privacy-note strong { color: #315d83; font-weight: 700; }
/* Portal home and profile */
.portal-app-page { background: #f5f9fd; }
.portal-app-page .portal-shell { background: url("portal-background.svg") center / cover no-repeat; }
.portal-app-page .portal-header { background: rgba(255,255,255,.96); }
.portal-app-brand { flex-direction: row; align-items: center; gap: .9rem; }
.portal-app-brand .portal-brand-caption { padding-left: .9rem; border-left: 1px solid #e5edf4; font-size: .7rem; letter-spacing: 0; text-transform: none; }
.portal-account-avatar { background: #0b2745; color: #fff; }
.portal-navigation { display: none; }
.portal-app-main { width: min(100%, 74rem); padding-top: clamp(3rem, 5vw, 5rem); }
.portal-home, .portal-section { max-width: none; }
.portal-home h1 { font-size: clamp(2.45rem, 4vw, 3.25rem); }
.portal-home-intro { min-height: 8rem; padding-right: 12rem; }
.portal-home-intro::after { display: none; }
.portal-home-intro .portal-eyebrow::after { content: ""; display: inline-block; width: 2.5rem; height: 1px; margin: 0 0 .25rem .7rem; background: #c4d9e9; }
.portal-home .portal-intro { max-width: 32rem; margin-top: .55rem; }
.portal-home-illustration { position: absolute; top: -.7rem; right: 3rem; display: grid; place-items: center; width: 10rem; height: 10rem; border-radius: 50%; background: rgba(231,242,253,.78); color: #315d83; font-size: 4rem; }
.portal-home-illustration::before, .portal-home-illustration::after { content: ""; position: absolute; z-index: -1; border-left: 3.5rem solid transparent; border-right: 3.5rem solid transparent; border-bottom: 4rem solid rgba(221,237,251,.65); }
.portal-home-illustration::before { right: 7rem; bottom: 0; }
.portal-home-illustration::after { left: 7rem; bottom: -1rem; }
.portal-quick-access { margin-top: clamp(2.5rem, 5vw, 4rem); }
.portal-quick-access > .portal-eyebrow { display: none; }
.portal-quick-access h2 { margin-bottom: 1rem; font-size: 1.13rem; font-weight: 700; letter-spacing: -.02em; }
.portal-quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-quick-card { min-height: 10rem; padding: 1.4rem; border-radius: .65rem; }
.portal-quick-icon { border-radius: 50%; }
.portal-quick-card:nth-child(2) .portal-quick-icon { background: #c9f6ed; color: #087c83; }
.portal-quick-card:nth-child(3) .portal-quick-icon { background: #e1e4ff; color: #304e91; }
.portal-quick-copy strong { font-size: 1rem; }
.portal-home-bottom { display: grid; grid-template-columns: minmax(0, 2fr) minmax(15rem, .9fr); align-items: end; gap: 1.5rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.portal-labor-info { margin: 0; }
.portal-labor-info .portal-home-section-heading { margin-bottom: .7rem; }
.portal-labor-info h2 { font-size: 1.1rem; }
.portal-home-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; min-height: 8rem; padding: 1rem; border-radius: .65rem; }
.portal-home-info div { display: block; min-width: 0; padding: .1rem .7rem; }
.portal-home-info div + div { border-top: 0; border-left: 1px solid #edf2f6; }
.portal-home-info dt { display: grid; gap: .5rem; font-size: .75rem; font-weight: 500; }
.portal-home-info dt i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #eaf3fb; color: #315d83; font-size: .9rem; }
.portal-home-info dd { margin-top: .4rem; font-size: .78rem; line-height: 1.4; }
.portal-privacy-note { min-height: 8rem; margin: 0; padding: 1.15rem; border: 1px solid #dceaf7; border-radius: .65rem; background: rgba(235,245,253,.82); }
.portal-privacy-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #d4e8fb; color: #315d83; }
.portal-privacy-note p { align-self: center; }
.portal-profile-identity { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #e2eaf2; }
.portal-profile-identity .portal-account-avatar { width: 3.5rem; height: 3.5rem; font-size: 1rem; }
.portal-profile-identity strong, .portal-profile-identity small { display: block; }
.portal-profile-identity strong { color: #0b2745; font-size: 1rem; }
.portal-profile-identity small { margin-top: .2rem; color: #71869a; }
.portal-profile-sections { border-top: 1px solid #e2eaf2; }
.portal-profile-sections details { border-bottom: 1px solid #e2eaf2; }
.portal-profile-sections summary { display: flex; align-items: center; gap: .8rem; min-height: 3.8rem; padding: .6rem .2rem; color: #173755; font-size: .9rem; font-weight: 650; list-style: none; cursor: pointer; }
.portal-profile-sections summary::-webkit-details-marker { display: none; }
.portal-profile-sections summary:focus-visible { outline: 3px solid #7faed5; outline-offset: -3px; }
.portal-profile-section-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #edf4fb; color: #315d83; }
.portal-profile-chevron { margin-left: auto; color: #527eaa; font-size: .7rem; transition: transform .18s ease; }
.portal-profile-sections details[open] .portal-profile-chevron { transform: rotate(90deg); }
.portal-profile-sections dl { margin: 0; padding: .4rem .3rem 1rem 2.8rem; }
.portal-profile-sections dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .8rem; }
.portal-profile-sections dt { color: #71869a; }
.portal-profile-sections dd { margin: 0; color: #173755; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.portal-profile-logout { margin-top: 2rem; }
.portal-profile-logout button { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 2.8rem; border: 1px solid #e9a0a9; border-radius: .5rem; background: transparent; color: #cc4256; font-weight: 650; cursor: pointer; }
.portal-profile-logout button:hover { background: #fff4f5; }
.portal-profile-logout button:focus-visible { outline: 3px solid #e9a0a9; outline-offset: 2px; }
.portal-contracts { max-width: 67rem; margin: 0 auto; }
.portal-contracts h1 { margin: 0; color: #0b2745; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.portal-contract-header { max-width: 43rem; margin: .2rem 0 1.45rem; }
.portal-contract-header .portal-eyebrow { margin-bottom: .4rem; }
.portal-contract-header > p:last-child { max-width: 36rem; margin: .5rem 0 0; color: #61798e; font-size: .91rem; line-height: 1.5; }
.portal-contract-header--detail { margin-bottom: 1.5rem; }
.portal-contracts--list > .portal-docs-back { min-height: 2.1rem; margin-bottom: .85rem; padding: .2rem .6rem .2rem .3rem; box-shadow: none; }
.portal-contract-current { margin-bottom: 1.7rem; padding: 1.05rem 1.4rem 1.15rem; border: 1px solid #dce8f1; border-radius: .8rem; background: #f8fbfd; }
.portal-contract-current-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #55758e; font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-contract-current-status, .portal-contract-item-status { padding: .32rem .65rem; border-radius: 999px; background: #e2f4eb; color: #23735b; font-size: .67rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.portal-contract-item-status--inactive { background: #edf2f6; color: #526879; }
.portal-contract-current-main { margin-top: .75rem; }
.portal-contract-current-main h2 { margin: 0; color: #123652; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.portal-contract-current-main p { margin: .22rem 0 0; color: #55748e; font-size: .82rem; }
.portal-contract-current-meta { display: flex; flex-wrap: wrap; gap: .65rem 2.2rem; margin: .95rem 0 0; padding-top: .8rem; border-top: 1px solid #e4edf4; }
.portal-contract-current-meta div { display: flex; gap: .4rem; align-items: baseline; min-width: 0; }
.portal-contract-current-meta dt { color: #7790a3; font-size: .72rem; }
.portal-contract-current-meta dd { margin: 0; color: #294f6d; font-size: .76rem; font-weight: 700; }
.portal-contract-section-heading { margin: 0 0 1.15rem; }
.portal-contract-section-heading .portal-eyebrow { margin-bottom: .3rem; }
.portal-contract-section-heading h2 { margin: 0; color: #173755; font-size: 1.4rem; letter-spacing: -.035em; }
.portal-contract-history-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: .8rem; }
.portal-contract-history-heading h2 { margin: 0; color: #173755; font-size: 1.25rem; letter-spacing: -.035em; }
.portal-contract-history-heading > span { color: #748b9d; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.portal-contract-list, .portal-contract-changes { display: grid; gap: .8rem; }
.portal-contract-item { padding: 1rem 1.35rem .95rem; border: 1px solid #dfeaf2; border-radius: .8rem; background: #fff; color: #173755; transition: border-color .2s ease, box-shadow .2s ease; }
.portal-contract-item:hover { border-color: #a9ccdf; box-shadow: 0 8px 25px rgba(25,74,108,.06); }
.portal-contract-item-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .55rem; color: #6082a0; font-size: .69rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-contract-item time { color: #3c7198; font-variant-numeric: tabular-nums; }
.portal-contract-item h3 { margin: 0; color: #123652; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.015em; }
.portal-contract-event-type { margin: 0 0 .22rem; color: #417aa2; font-size: .65rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-contract-item-count { margin: .2rem 0 .75rem; color: #688196; font-size: .77rem; }
.portal-contract-item-previews { display: grid; gap: 0; max-width: 42rem; }
.portal-contract-item-preview { display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); align-items: start; gap: .65rem; padding: .46rem 0; border-top: 1px solid #edf2f6; }
.portal-contract-item-icon { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: .46rem; background: #eaf4fc; color: #2774a7; font-size: .77rem; }
.portal-contract-item-preview-body { display: grid; min-width: 0; gap: .14rem; }
.portal-contract-item-preview-body > strong { color: #284e6c; font-size: .77rem; line-height: 1.25; }
.portal-contract-item-values { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .5rem; min-width: 0; color: #566f83; font-size: .78rem; font-variant-numeric: tabular-nums; }
.portal-contract-item-values > span:not(.portal-contract-item-arrow) { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-contract-item-values > span:last-child { color: #176d63; font-weight: 750; }
.portal-contract-item-arrow { color: #8aa7b9; }
.portal-contract-item-more { margin: .45rem 0 0 2.5rem; color: #577e9c; font-size: .74rem; font-weight: 700; }
.portal-contract-item-action { display: flex; width: fit-content; gap: .3rem; align-items: center; margin: .35rem 0 0 auto; color: #176b9d; font-size: .78rem; font-weight: 800; text-decoration: none; }
.portal-contract-item-action:hover { color: #0b4d75; text-decoration: underline; }
.portal-contract-item-action span { margin-left: .35rem; }
.portal-contract-pages { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.4rem; color: #647c90; font-size: .82rem; }
.portal-contract-pages a { color: #164d78; font-weight: 750; }
.portal-contract-empty { padding: 2rem; border: 1px solid #dfeaf2; border-radius: .9rem; background: #f8fbfd; color: #173755; }
.portal-contract-empty > span { display: block; margin-bottom: .7rem; color: #7ba7c6; font-size: 1.5rem; }
.portal-contract-empty p { margin: .5rem 0 0; color: #71869a; line-height: 1.55; }
.portal-contracts--detail h1 { font-size: clamp(1.8rem, 3.4vw, 2.45rem); }
.portal-contracts--detail > .portal-docs-back { min-height: 2.1rem; margin-bottom: .85rem; padding: .2rem .6rem .2rem .3rem; box-shadow: none; }
.portal-contract-detail-kicker { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .35rem; }
.portal-contract-detail-kicker .portal-eyebrow { margin: 0; }
.portal-contract-header--detail { max-width: none; margin-bottom: 1rem; }
.portal-contract-header--detail > p:last-child { margin-top: .45rem; }
.portal-contract-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.75rem; padding: 1rem 1.3rem; border: 1px solid #dfeaf2; border-radius: .75rem; background: #f8fbfd; }
.portal-contract-overview--exit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-contract-overview > div { min-width: 0; }
.portal-contract-overview span { color: #7c91a2; font-size: .69rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.portal-contract-overview strong { display: block; margin-top: .25rem; color: #173755; font-size: .86rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-contract-overview .portal-contract-overview-muted { color: #7890a1; font-weight: 500; }
.portal-contract-comparison > .portal-contract-section-heading { margin-bottom: .85rem; }
.portal-contract-comparison > .portal-contract-section-heading .portal-eyebrow { color: #417aa2; font-size: .69rem; }
.portal-contract-changes { gap: .7rem; }
.portal-contract-change { padding: 1.15rem 1.35rem 1rem; border: 1px solid #dfeaf2; border-radius: .8rem; background: #fff; }
.portal-contract-change-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: .85rem; }
.portal-contract-change-heading .portal-contract-item-icon { width: 2rem; height: 2rem; font-size: .85rem; }
.portal-contract-change h3 { margin: 0; color: #173755; font-size: .93rem; }
.portal-contract-change-values { display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); align-items: end; gap: 1rem; max-width: 49rem; padding-left: 2.7rem; }
.portal-contract-change-values > div { min-width: 0; }
.portal-contract-change-values span:not(.portal-contract-change-arrow) { display: block; color: #7b91a3; font-size: .64rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.portal-contract-change-values strong { display: block; margin-top: .3rem; color: #183b59; font-size: 1.12rem; font-weight: 750; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.portal-contract-change-values > div:last-child strong { color: #176959; }
.portal-contract-change-arrow { align-self: end; padding-bottom: .1rem; color: #8aacbf; font-size: 1.1rem; }
.portal-contract-change-difference { display: flex; align-items: baseline; gap: 1.25rem; margin: .95rem 0 0 2.7rem; padding-top: .7rem; border-top: 1px solid #edf2f6; color: #758d9e; font-size: .72rem; }
.portal-contract-change-difference strong { color: #176959; font-size: .84rem; font-variant-numeric: tabular-nums; }
.portal-contract-document { margin-top: 1.8rem; }
.portal-contract-document > a + a { margin-top: .65rem; }
.portal-contract-document > a { display: flex; align-items: center; gap: .85rem; min-height: 5rem; padding: .9rem 1.2rem; border: 1px solid #dce9f1; border-radius: .8rem; background: #f8fbfd; color: #173755; text-decoration: none; }
.portal-contract-document-icon { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: .55rem; background: #e7f2fa; color: #3f83ad; font-size: 1.05rem; }
.portal-contract-document strong { flex: 1; font-size: .86rem; }
.portal-contract-document small { display: block; margin-top: .25rem; color: #71899a; font-size: .73rem; font-weight: 500; }
.portal-contract-document b { color: #176b9d; font-size: .75rem; white-space: nowrap; }
.portal-contract-item-action:focus-visible, .portal-contract-pages a:focus-visible, .portal-contract-document a:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
@media (max-width: 560px) { .portal-contract-overview { grid-template-columns: 1fr 1fr; gap: .7rem 1rem; padding: .9rem 1rem; } .portal-contract-overview > div:last-child { grid-column: 1 / -1; } .portal-contract-current { padding: 1rem; } .portal-contract-current-meta { gap: .45rem 1.2rem; } .portal-contract-current-meta div { flex-basis: 100%; } .portal-contract-item { padding: 1rem; } .portal-contract-change { padding: 1rem; } .portal-contract-change-values { grid-template-columns: minmax(0, 1fr) 1rem minmax(0, 1fr); gap: .55rem; padding-left: 0; } .portal-contract-change-values strong { font-size: .9rem; } .portal-contract-change-difference { margin-left: 0; } .portal-contract-document > a { flex-wrap: wrap; } .portal-contract-document b { margin-left: auto; } }
@media (max-width: 560px) { .portal-contract-change--long .portal-contract-change-values { grid-template-columns: 1fr; } .portal-contract-change--long .portal-contract-change-arrow { justify-self: center; transform: rotate(90deg); } }
@media (max-width: 340px) { .portal-contract-change-values { grid-template-columns: 1fr; } .portal-contract-change-arrow { justify-self: center; transform: rotate(90deg); } }
@media (min-width: 901px) {
  .portal-app-page { padding: 1rem; background: #eff6fc url("portal-background.svg") center / cover no-repeat; }
  .portal-app-page .portal-shell { max-width: 76rem; min-height: calc(100dvh - 2rem); margin: auto; overflow: visible; border: 1px solid #e1eaf2; border-radius: 1rem; background: rgba(255,255,255,.83); box-shadow: 0 16px 45px rgba(27,68,103,.09); }
  .portal-app-page .portal-header { border-radius: 1rem 1rem 0 0; }
}
@media (max-width: 1100px) {
  .portal-login-layout { gap: clamp(1.5rem, 3vw, 2.5rem); }
  .portal-benefits { flex-wrap: wrap; row-gap: 1rem; }
  .portal-welcome h1 { font-size: clamp(2.75rem, 5vw, 3.625rem); }
  .portal-benefit { font-size: .9rem; }
}
@media (min-width: 769px) and (max-width: 950px) {
  .portal-login-layout { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 1.5rem; }
  .portal-welcome h1 { margin-bottom: 2.5rem; font-size: clamp(2.4rem, 4.5vw, 3rem); }
  .portal-benefits { gap: 1rem; }
  .portal-benefit { gap: .6rem; font-size: .85rem; }
  .portal-benefit-icon { width: 2.75rem; height: 2.75rem; }
  .portal-login { padding: clamp(1.75rem, 3vw, 2.5rem); }
}
@media (max-width: 768px) {
  .portal-login-page .portal-header { justify-content: center; padding: 1rem; }
  .portal-login-page .portal-header-inner { justify-content: center; }
  .portal-login-page .portal-brand { gap: .7rem; }
  .portal-login-page .portal-brand-caption { font-size: .68rem; }
  .portal-login-page .portal-main { display: block; width: 100%; padding: 1.5rem 0 2rem; }
  .portal-login-layout { display: block; transform: none; }
  .portal-welcome { max-width: 460px; margin: 0 auto; padding: 0 1rem 1.4rem; }
  .portal-login-page .portal-shell { background-image: linear-gradient(135deg, rgba(234, 244, 254, .5) 0 15%, transparent 15% 100%); }
  .portal-welcome-eyebrow { margin-bottom: .75rem; font-size: .67rem; }
  .portal-welcome-eyebrow::after { width: 2.3rem; }
  .portal-welcome h1 { max-width: 17ch; margin-bottom: 1.4rem; font-size: clamp(2rem, 7.3vw, 2.8rem); line-height: 1.12; letter-spacing: -.04em; }
  .portal-benefits { display: none; }
  .portal-login { width: calc(100% - 32px); max-width: 460px; margin: 0 auto; padding: 1.5rem; box-shadow: 0 6px 22px rgba(11, 39, 69, .035); }
  .portal-login h2 { font-size: 1.75rem; }
  .portal-login .portal-intro { margin: .6rem 0 1.15rem; font-size: .92rem; }
  .portal-form label { margin-top: .3rem; }
  .portal-primary { margin-top: .85rem; }
}
@media (max-width: 380px) {
  .portal-login { padding: 1.25rem; }
  .portal-welcome h1 { font-size: 1.95rem; }
}
@media (max-width: 768px) {
  .portal-login-page .portal-main { display: flex; flex: 1 0 auto; flex-direction: column; justify-content: center; padding: 1rem 0; }
  .portal-login-layout { width: 100%; }
  .portal-welcome { text-align: center; }
  .portal-welcome-eyebrow { justify-content: center; }
  .portal-welcome-eyebrow::after { display: none; }
  .portal-welcome h1 { margin-right: auto; margin-left: auto; text-wrap: balance; }
}

/* Employee documents: the same restrained palette as the portal login. */
.portal-documents-page .portal-app-main { width: min(100%, 78rem); padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.portal-docs { width: min(100%, 72rem); margin-inline: auto; }
.portal-docs-hero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; min-height: 13rem; margin-bottom: 2.3rem; overflow: clip; }
.portal-docs-hero::before { content: ""; position: absolute; z-index: -1; top: -3.5rem; right: -3rem; width: min(43vw, 30rem); aspect-ratio: 1; border: 1px solid #e4eef6; border-radius: 50%; pointer-events: none; }
.portal-docs-hero h1, .portal-docs-subpage h1 { margin: 0; color: #0b2745; font-size: clamp(2.5rem, 4.6vw, 3.8rem); font-weight: 750; line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.portal-docs-hero h1 span { color: #527eaa; }
.portal-docs-hero > div:first-child > p:last-child { max-width: 36rem; margin: 1.1rem 0 0; color: #5c7184; font-size: 1rem; line-height: 1.6; }
.portal-docs-hero-art { position: relative; flex: 0 0 8rem; height: 9rem; margin-right: 2.7rem; opacity: .55; }
.portal-docs-hero-art span { position: absolute; display: block; width: 5.5rem; height: 7rem; border: 1px solid #a9c8df; border-radius: .55rem; background: #fff; box-shadow: 0 12px 22px rgba(11,39,69,.04); transform: rotate(8deg); }
.portal-docs-hero-art span:nth-child(1) { left: .2rem; top: 1.5rem; transform: rotate(-12deg); }
.portal-docs-hero-art span:nth-child(2) { left: 1.3rem; top: .7rem; transform: rotate(-3deg); }
.portal-docs-hero-art span:nth-child(3) { left: 2.5rem; top: 0; }
.portal-docs-hero-art span:nth-child(3)::before, .portal-docs-hero-art span:nth-child(3)::after { content: ""; position: absolute; left: 1rem; height: 1px; background: #a9c8df; }
.portal-docs-hero-art span:nth-child(3)::before { top: 2rem; width: 2.9rem; }
.portal-docs-hero-art span:nth-child(3)::after { top: 2.8rem; width: 2.2rem; }
.portal-docs-bonus { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.6rem, 3vw, 2.25rem); border: 1px solid #dbe8f2; border-radius: 1rem; background: #fff; box-shadow: 0 15px 38px rgba(11,39,69,.045); }
.portal-docs-bonus .portal-eyebrow { margin-bottom: .55rem; }
.portal-docs-bonus h2 { margin: 0; color: #0b2745; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.03em; }
.portal-docs-bonus-period { margin: .8rem 0 0; color: #315d83; font-size: .86rem; font-weight: 700; }
.portal-docs-bonus-note { max-width: 31rem; margin: .55rem 0 0; color: #71869a; font-size: .83rem; line-height: 1.5; }
.portal-docs-bonus a { display: inline-flex; gap: .4rem; margin-top: 1.2rem; color: #315d83; font-size: .88rem; font-weight: 750; text-decoration: none; }
.portal-docs-bonus a:hover { text-decoration: underline; }
.portal-docs-bonus-value { margin: 0; color: #0b2745; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 760; letter-spacing: -.055em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.portal-docs-bonus-value small { color: #527eaa; font-size: .36em; letter-spacing: .04em; vertical-align: .18em; }
.portal-docs-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.portal-docs-link { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 12.5rem; padding: 1.35rem; border: 1px solid #e1eaf2; border-radius: .85rem; background: #fff; color: #173755; text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.portal-docs-link:hover { transform: translateY(-2px); border-color: #bbd2e5; box-shadow: 0 12px 28px rgba(11,39,69,.05); }
.portal-docs-link-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .9rem; border-radius: .65rem; background: #eaf3fb; color: #315d83; }
.portal-docs-link-icon svg { width: 1.35rem; height: 1.35rem; }
.portal-docs-link strong { font-size: 1rem; }
.portal-docs-link > span:not(.portal-docs-link-icon) { margin-top: .35rem; color: #647c90; font-size: .83rem; line-height: 1.45; }
.portal-docs-link small { margin-top: auto; padding-top: 1.1rem; color: #315d83; font-size: .75rem; line-height: 1.35; }
.portal-docs-link b { position: absolute; right: 1.3rem; top: 1.45rem; color: #527eaa; font-size: 1.1rem; font-weight: 500; }
.portal-docs-recent { margin-top: clamp(2.6rem, 5vw, 4rem); }
.portal-docs-section-heading .portal-eyebrow { margin-bottom: .35rem; }
.portal-docs-section-heading h2, .portal-docs-detail-section h2 { margin: 0 0 1.2rem; color: #0b2745; font-size: 1.4rem; letter-spacing: -.03em; }
.portal-docs-recent-list { border: 1px solid #e1eaf2; border-radius: .85rem; background: #fff; overflow: hidden; }
.portal-docs-recent-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 7.5rem auto; align-items: center; gap: 1rem; min-height: 4.5rem; padding: .9rem 1.15rem; }
.portal-docs-recent-row + .portal-docs-recent-row { border-top: 1px solid #edf2f6; }
.portal-docs-recent-type { color: #527eaa; font-size: .74rem; font-weight: 750; }
.portal-docs-recent-row strong { color: #173755; font-size: .87rem; font-weight: 650; }
.portal-docs-recent-row time { color: #71869a; font-size: .77rem; white-space: nowrap; }
.portal-docs-recent-actions, .portal-docs-item-actions { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.portal-docs-recent-actions a, .portal-docs-item-actions a { display: inline-flex; align-items: center; min-height: 2.5rem; color: #315d83; font-size: .8rem; font-weight: 750; text-decoration: none; }
.portal-docs-recent-actions a:hover, .portal-docs-item-actions a:hover { text-decoration: underline; }
.portal-docs-empty { padding: 2rem; border: 1px dashed #cddfeb; border-radius: .85rem; background: #fff; color: #173755; }
.portal-docs-empty > span { display: block; margin-bottom: .65rem; color: #7da4c2; font-size: 1.7rem; }
.portal-docs-empty strong { display: block; font-size: .95rem; }
.portal-docs-empty p { max-width: 32rem; margin: .45rem 0 0; color: #71869a; font-size: .84rem; line-height: 1.5; }
.portal-docs-subpage { max-width: 60rem; }
.portal-docs-back { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.65rem; margin: 0 0 1.5rem; padding: .45rem .85rem .45rem .5rem; border: 1px solid #c8dff0; border-radius: .65rem; background: #fff; box-shadow: 0 3px 10px rgba(11,39,69,.04); color: #164d78; font-size: .8rem; font-weight: 750; text-decoration: none; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.portal-docs-back::before { content: "←"; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: .4rem; background: #e8f3fc; color: #137ac1; font-size: 1rem; line-height: 1; }
.portal-docs-back:hover { border-color: #91c1e3; background: #f3faff; box-shadow: 0 6px 16px rgba(11,39,69,.07); }
.portal-docs-back:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
.portal-docs-subpage h1 { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.portal-docs-subtitle { margin: .85rem 0 2.25rem; color: #647c90; line-height: 1.5; }
.portal-docs-detail-section { margin-top: 2.5rem; }
.portal-docs-bonus--detail { margin-top: 1rem; }
.portal-docs-months, .portal-docs-movements { border: 1px solid #e1eaf2; border-radius: .85rem; background: #fff; overflow: hidden; }
.portal-docs-months > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; padding: .65rem 1.1rem; color: #173755; font-size: .88rem; }
.portal-docs-months > div + div, .portal-docs-movement + .portal-docs-movement { border-top: 1px solid #edf2f6; }
.portal-docs-months strong { font-variant-numeric: tabular-nums; }
.portal-docs-footnote { max-width: 46rem; color: #71869a; font-size: .8rem; line-height: 1.55; }
.portal-docs-payslips, .portal-docs-loan-grid { display: grid; gap: .85rem; }
.portal-docs-payslip, .portal-docs-loan-card { padding: 1.35rem; border: 1px solid #e1eaf2; border-radius: .85rem; background: #fff; }
.portal-docs-payslip h3, .portal-docs-loan-card h3 { margin: 0; color: #0b2745; font-size: 1.08rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.portal-docs-payslip small { display: block; margin-top: .4rem; color: #71869a; }
.portal-docs-payslip dl, .portal-docs-loan-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1.25rem 0 .7rem; }
.portal-docs-loan-card dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portal-docs-payslip dt, .portal-docs-loan-card dt { color: #71869a; font-size: .74rem; }
.portal-docs-payslip dd, .portal-docs-loan-card dd { margin: .3rem 0 0; color: #173755; font-size: .93rem; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.portal-docs-tabs { display: flex; gap: .6rem; margin: .5rem 0 2rem; }
.portal-docs-tabs button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid #d8e5ee; border-radius: .55rem; background: #fff; color: #315d83; font-size: .84rem; font-weight: 700; cursor: pointer; }
.portal-docs-tabs button:hover { background: #eef6fb; }
.portal-docs-tabs button[aria-selected="true"] { border-color: #527eaa; background: #eaf3fb; color: #0b2745; }
.portal-docs-loan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-docs-loan-heading { display: flex; justify-content: space-between; gap: 1rem; }
.portal-docs-loan-heading > span { color: #527eaa; font-size: .76rem; font-weight: 800; }
.portal-docs-loan-card > a { display: inline-flex; gap: .4rem; align-items: center; min-height: 2.75rem; margin-top: .5rem; color: #315d83; font-size: .84rem; font-weight: 750; text-decoration: none; }
.portal-docs-loan-card > a:hover { text-decoration: underline; }
.portal-docs-statement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem; border: 1px solid #dbe8f2; border-radius: .85rem; background: #fff; }
.portal-docs-statement-summary > div { display: grid; gap: .4rem; }
.portal-docs-statement-summary span { color: #71869a; font-size: .75rem; }
.portal-docs-statement-summary strong { color: #0b2745; font-size: 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.portal-docs-movement { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .9rem 1.15rem; align-items: center; color: #173755; font-size: .85rem; }
.portal-docs-movement time, .portal-docs-movement small { color: #71869a; font-size: .76rem; }
.portal-docs-movement strong { font-variant-numeric: tabular-nums; }
.portal-docs-movement small { grid-column: 2 / -1; }
.portal-docs a:focus-visible { outline: 3px solid #7faed5; outline-offset: 3px; }
@media (max-width: 900px) {
  .portal-docs-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-docs-recent-row { grid-template-columns: 7rem minmax(0, 1fr) auto; }
  .portal-docs-recent-row time { grid-column: 2; grid-row: 2; }
  .portal-docs-recent-actions { grid-column: 3; grid-row: 1 / 3; }
  .portal-docs-loan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .portal-documents-page .portal-app-main { padding: 2rem 1.25rem calc(8rem + env(safe-area-inset-bottom)); }
  .portal-docs-hero { min-height: 0; margin-bottom: 1.8rem; }
  .portal-docs-hero::before { right: -5rem; width: 14rem; }
  .portal-docs-hero-art { display: none; }
  .portal-docs-hero h1 { font-size: clamp(2.35rem, 9vw, 3rem); }
  .portal-docs-hero > div:first-child > p:last-child { font-size: .91rem; }
  .portal-docs-bonus { display: block; padding: 1.3rem; }
  .portal-docs-bonus-value { margin-top: 1.25rem; font-size: clamp(2rem, 9vw, 2.8rem); }
  .portal-docs-links { grid-template-columns: 1fr; gap: .7rem; margin-top: .8rem; }
  .portal-docs-link { min-height: 0; padding: 1.1rem 3rem 1.1rem 1.1rem; }
  .portal-docs-link-icon { margin-bottom: .65rem; }
  .portal-docs-link small { padding-top: .65rem; }
  .portal-docs-recent-row { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .75rem; padding: 1rem; }
  .portal-docs-recent-type { grid-column: 1; }
  .portal-docs-recent-row strong { grid-column: 1; }
  .portal-docs-recent-row time { grid-column: 1; grid-row: auto; }
  .portal-docs-recent-actions { grid-column: 2; grid-row: 1 / 4; flex-direction: column; gap: 0; }
  .portal-docs-payslip dl, .portal-docs-loan-card dl, .portal-docs-statement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-docs-movement { grid-template-columns: 1fr auto; }
  .portal-docs-movement time { grid-column: 1 / -1; }
  .portal-docs-movement small { grid-column: 1 / -1; }
}

/* Employee reduction account: real applications are the primary figures. */
.portal-reductions-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; }
.portal-reductions-overview-item { display: grid; gap: .18rem; padding: 1rem 1.2rem; }
.portal-reductions-overview-item + .portal-reductions-overview-item { border-left: 1px solid #e5edf4; }
.portal-reductions-overview-item > span { color: #6c8499; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.portal-reductions-overview-item > strong { color: #0b2745; font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.portal-reductions-overview-item > small { color: #71869a; font-size: .72rem; }
.portal-reduction-amounts dd small { display: block; margin-top: .12rem; color: #71869a; font-size: .66rem; font-weight: 500; }
.portal-reduction-account-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: .2rem 0 1.2rem; overflow: hidden; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reduction-account-summary > div { display: grid; align-content: start; gap: .22rem; min-width: 0; padding: 1rem 1.1rem; }
.portal-reduction-account-summary > div + div { border-left: 1px solid #e6eef5; }
.portal-reduction-account-summary span { color: #6e879d; font-size: .69rem; }
.portal-reduction-account-summary strong { color: #0b2745; font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-reduction-account-summary small { color: #70879b; font-size: .68rem; }
.portal-reduction-detail-grid { display: grid; grid-template-columns: minmax(15rem, .75fr) minmax(0, 1.5fr); align-items: start; gap: 1rem; }
.portal-reduction-info { padding: 1rem 1.1rem; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reduction-info h2,.portal-reduction-related-payslip h2 { margin: 0 0 .8rem; color: #0b2745; font-size: .95rem; }
.portal-reduction-info dl { margin: 0; }
.portal-reduction-info dl > div { display: grid; grid-template-columns: minmax(6.5rem, .7fr) minmax(0, 1fr); gap: .6rem; padding: .55rem 0; border-top: 1px solid #edf2f6; font-size: .75rem; }
.portal-reduction-info dt { color: #71869a; }
.portal-reduction-info dd { margin: 0; color: #284a68; overflow-wrap: anywhere; }
.portal-reduction-statement-history { min-width: 0; padding: 1rem; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reduction-application-list { margin: 0; padding: 0; list-style: none; border: 1px solid #e7eef4; border-radius: .7rem; overflow: hidden; }
.portal-reduction-application-list li + li { border-top: 1px solid #e8eff5; }
.portal-reduction-application-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto 1rem; align-items: center; gap: .75rem; min-height: 3.7rem; padding: .65rem .8rem; color: #264864; text-decoration: none; }
.portal-reduction-application-row:hover { background: #f5fafe; }
.portal-reduction-application-row time,.portal-reduction-application-concept small { color: #6e879d; font-size: .69rem; }
.portal-reduction-application-concept { display: grid; gap: .18rem; min-width: 0; }
.portal-reduction-application-concept strong { color: #234461; font-size: .76rem; overflow-wrap: anywhere; }
.portal-reduction-application-amount { color: #0b2745; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-reduction-application-row > span:last-child { color: #1680c5; }
.portal-reduction-pagination { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-top: .8rem; color: #71869a; font-size: .72rem; }
.portal-reduction-pagination a { color: #176fa9; font-weight: 700; text-decoration: none; }
.portal-reduction-application-card { display: grid; gap: .25rem; margin-bottom: 1rem; padding: 1.15rem; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reduction-application-card > span { color: #6e879d; }
.portal-reduction-application-card > strong { color: #0b2745; font-size: clamp(1.5rem, 3vw, 2rem); font-variant-numeric: tabular-nums; }
.portal-reduction-single-info { max-width: 55rem; }
.portal-reduction-related-payslip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 1.1rem; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reduction-related-payslip p { margin: .2rem 0; color: #71869a; font-size: .74rem; }
.portal-reduction-related-payslip strong { color: #0b2745; font-size: .8rem; }
.portal-reduction-related-payslip .portal-action-button { flex: none; }
@media (max-width: 760px) {
  .portal-reduction-detail-grid { grid-template-columns: 1fr; }
  .portal-reduction-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-reduction-account-summary > div:nth-child(odd) { border-left: 0; }
  .portal-reduction-account-summary > div:nth-child(n+3) { border-top: 1px solid #e6eef5; }
}
@media (max-width: 640px) {
  .portal-reductions-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 0; overflow: visible; }
  .portal-reductions-tabs a { justify-content: center; flex-wrap: wrap; gap: .2rem; min-width: 0; padding: .45rem .12rem; font-size: .66rem; text-align: center; }
  .portal-reductions-tabs a span { flex: none; min-width: 1.05rem; height: 1.05rem; font-size: .6rem; }
  .portal-reductions-overview { grid-template-columns: 1fr 1fr; }
  .portal-reductions-overview-item { padding: .8rem; }
  .portal-reductions-overview-item > small { font-size: .64rem; }
  .portal-reduction-application-row { grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .6rem; padding: .75rem; }
  .portal-reduction-application-row time { grid-column: 1; }
  .portal-reduction-application-concept { grid-column: 1; }
  .portal-reduction-application-amount { grid-column: 2; grid-row: 1 / 3; }
  .portal-reduction-application-row > span:last-child { display: none; }
  .portal-reduction-related-payslip { align-items: flex-start; flex-direction: column; }
}

/* Compact screens keep the primary navigation within thumb reach. */
@media (max-width: 1279px) {
  .portal-navigation { display: block; position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; border-top: 1px solid #dbe6ef; border-bottom: 0; box-shadow: 0 -8px 25px rgba(11, 39, 69, .07); }
  .portal-navigation-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; max-width: 40rem; padding: .4rem .5rem max(env(safe-area-inset-bottom), .4rem); }
  .portal-navigation-link { flex-direction: column; justify-content: center; gap: .2rem; min-width: 0; min-height: 4.1rem; padding: .25rem .1rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: clamp(.67rem, 2.4vw, .75rem); line-height: 1.2; }
  .portal-navigation-icon { width: 2.25rem; height: 2rem; border-radius: .55rem; font-size: 1.12rem; }
  .portal-navigation-link.is-active { border-bottom-color: #3180c4; background: transparent; color: #3180c4; }
  .portal-navigation-link.is-active .portal-navigation-icon { background: transparent; color: #3180c4; }
  .portal-navigation-link:focus-visible { outline-offset: -2px; }
  .portal-app-main { padding-bottom: calc(8rem + env(safe-area-inset-bottom)); }
  .portal-app-page .portal-footer { display: none; }
}

@media (max-width: 900px) {
  .portal-quick-grid { grid-template-columns: 1fr; gap: .7rem; }
  .portal-quick-card { grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 5.2rem; padding: .9rem 1rem; }
  .portal-quick-card .portal-quick-icon { grid-column: auto; }
  .portal-home-bottom { grid-template-columns: 1fr; gap: .7rem; }
  .portal-home-info { min-height: 0; }
  .portal-privacy-note { min-height: 0; }
}

@media (max-width: 640px) {
  .portal-app-page .portal-header { padding: .8rem 1rem; }
  .portal-app-brand { flex-direction: column; align-items: flex-start; gap: .05rem; }
  .portal-app-brand img { width: 6.25rem; height: 2.25rem; }
  .portal-app-brand .portal-brand-caption { padding-left: .05rem; border: 0; font-size: .57rem; line-height: 1.3; }
  .portal-account-menu summary { gap: .4rem; }
  .portal-account-avatar { width: 2.1rem; height: 2.1rem; }
  .portal-account-name, .portal-account-menu summary > i { display: none; }
  .portal-app-page .portal-logout { min-height: 2.5rem; padding: .45rem .65rem; font-size: .72rem; }
  .portal-app-main { padding: 2.4rem 1.25rem calc(8rem + env(safe-area-inset-bottom)); }
  .portal-home h1,
  .portal-section h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .portal-home-intro { min-height: 0; padding-right: 2.6rem; }
  .portal-home-illustration { top: 1rem; right: -.1rem; width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }
  .portal-home-illustration::before, .portal-home-illustration::after { display: none; }
  .portal-quick-access { margin-top: 3rem; }
  .portal-quick-grid { grid-template-columns: 1fr; gap: .75rem; }
  .portal-quick-card,
  .portal-quick-card--wide { grid-column: auto; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .9rem; min-height: 6rem; padding: 1rem 1.1rem; }
  .portal-quick-card .portal-quick-icon { grid-column: auto; width: 2.6rem; height: 2.6rem; }
  .portal-quick-copy strong { font-size: .98rem; }
  .portal-quick-copy small { font-size: .76rem; }
  .portal-labor-info { margin-top: 3.5rem; }
  .portal-home-info { padding: .35rem 1.1rem; }
  .portal-home-info { display: block; }
  .portal-home-info div { display: grid; grid-template-columns: minmax(6rem, .65fr) minmax(0, 1fr); gap: .5rem; padding: .75rem 0; }
  .portal-home-info div + div { border-top: 1px solid #e7edf3; border-left: 0; }
  .portal-home-info dt { display: flex; align-items: center; gap: .5rem; }
  .portal-home-info dt i { width: 1.7rem; height: 1.7rem; flex: none; }
  .portal-home-info dd { align-self: center; margin: 0; }
  .portal-profile-identity { margin-top: 1.75rem; }
  .portal-profile-sections dl div { display: block; }
  .portal-profile-sections dd { margin-top: .2rem; text-align: left; }
  .portal-home-divider,
  .portal-section-divider { margin-top: 2.5rem; }
  .portal-app-page .portal-profile { grid-template-columns: 1fr; }
  .portal-app-page .portal-profile div,
  .portal-app-page .portal-profile div + div { padding: 1rem 0; border-left: 0; }
}

@media (max-width: 360px) {
  .portal-app-brand img { width: 5.5rem; }
  .portal-app-brand .portal-brand-caption { font-size: .51rem; }
  .portal-account-name { max-width: 4.5rem; }
  .portal-app-page .portal-logout { font-size: .68rem; }
}

/* Documents overview matched to the portal reference at each breakpoint. */
.portal-documents-page .portal-app-main { padding-top: clamp(1.8rem, 3vw, 2.7rem); }
.portal-docs-hero { min-height: 9.5rem; margin-bottom: 1.2rem; }
.portal-docs-hero::before { top: .25rem; right: 0; width: 17rem; height: 8.5rem; border: 0; border-radius: 0; background: #edf6fd; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .8; }
.portal-docs-hero::after { content: ""; position: absolute; z-index: -1; right: 9rem; bottom: .3rem; width: 10rem; height: 5.5rem; background: #e8f3fb; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .72; }
.portal-docs-hero h1 { font-size: clamp(2.15rem, 3.2vw, 2.9rem); line-height: 1.08; }
.portal-docs-hero > div:first-child > p:last-child { max-width: 31rem; margin-top: .75rem; font-size: .91rem; }
.portal-docs-hero-art { display: grid; place-items: center; flex: 0 0 8rem; width: 8rem; height: 8rem; margin-right: 6rem; border-radius: 50%; background: #e7f2fc; color: #315d83; opacity: 1; }
.portal-docs-hero-art svg { width: 4.2rem; height: 4.2rem; }
.portal-docs-bonus--overview { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; align-items: start; gap: 1rem; min-height: 0; padding: 1.2rem 1.4rem; background: #f0f8fe; box-shadow: none; }
.portal-docs-bonus-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #5a8cc0; color: #fff; }
.portal-docs-bonus-icon svg { width: 1.4rem; height: 1.4rem; }
.portal-docs-bonus--overview h2 { margin: 0; font-size: .9rem; font-weight: 720; letter-spacing: -.01em; }
.portal-docs-bonus--overview .portal-docs-bonus-value { margin: .2rem 0 0; font-size: clamp(1.65rem, 2.4vw, 2.15rem); line-height: 1.15; letter-spacing: -.04em; }
.portal-docs-bonus--overview .portal-docs-bonus-value small { font-size: .55em; vertical-align: .1em; }
.portal-docs-bonus--overview .portal-docs-bonus-period { margin-top: .4rem; font-size: .76rem; font-weight: 600; }
.portal-docs-bonus--overview .portal-docs-bonus-note { margin-top: .25rem; font-size: .72rem; }
.portal-docs-progress { display: flex; align-items: center; gap: .7rem; max-width: 29rem; margin-top: .5rem; }
.portal-docs-progress progress { display: block; flex: 1; width: 100%; height: .32rem; border: 0; border-radius: 1rem; appearance: none; background: #d8e5f1; }
.portal-docs-progress progress::-webkit-progress-bar { border-radius: 1rem; background: #d8e5f1; }
.portal-docs-progress progress::-webkit-progress-value { border-radius: 1rem; background: #3486cb; }
.portal-docs-progress progress::-moz-progress-bar { border-radius: 1rem; background: #3486cb; }
.portal-docs-progress strong { color: #527eaa; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.portal-docs-bonus--overview .portal-docs-bonus-cta { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; margin: 0; padding: .35rem .7rem; border-radius: 2rem; background: #e2f0fc; color: #315d83; font-size: .72rem; white-space: nowrap; }
.portal-docs-bonus--overview .portal-docs-bonus-cta:hover { background: #d2e8f8; text-decoration: none; }
.portal-docs-links { gap: .8rem; margin-top: .9rem; }
.portal-docs-link { display: grid; grid-template-columns: 2.55rem minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; gap: .25rem .9rem; min-height: 8.4rem; padding: 1.15rem; }
.portal-docs-link-icon { grid-column: 1; grid-row: 1 / 4; width: 2.55rem; height: 2.55rem; margin: 0; }
.portal-docs-link:nth-child(2) .portal-docs-link-icon { background: #dcf4e9; color: #17785c; }
.portal-docs-link:nth-child(3) .portal-docs-link-icon { background: #e8eafb; color: #445da0; }
.portal-docs-link strong { grid-column: 2; grid-row: 1; align-self: center; font-size: .91rem; }
.portal-docs-link > span:not(.portal-docs-link-icon) { grid-column: 2; grid-row: 2; margin: 0; font-size: .76rem; }
.portal-docs-link small { grid-column: 2; grid-row: 3; align-self: end; padding-top: .55rem; font-size: .7rem; }
.portal-docs-link b { position: static; grid-column: 3; grid-row: 1 / 4; align-self: center; }
.portal-docs-recent { margin-top: 1.65rem; }
.portal-docs-section-heading .portal-eyebrow { display: none; }
.portal-docs-section-heading h2 { margin-bottom: .8rem; font-size: 1.2rem; }
.portal-docs-recent-head, .portal-docs-recent-row { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(10rem, 1.55fr) minmax(6rem, .75fr) minmax(8rem, .75fr); gap: .8rem; align-items: center; }
.portal-docs-recent-head { min-height: 2.5rem; padding: .5rem 1.15rem; border-bottom: 1px solid #e6eef5; color: #71869a; font-size: .71rem; font-weight: 700; }
.portal-docs-recent-row { min-height: 3.25rem; padding: .45rem 1.15rem; }
.portal-docs-recent-type { display: flex; align-items: center; gap: .6rem; color: #173755; font-size: .76rem; }
.portal-docs-recent-symbol { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none; border-radius: .5rem; background: #eaf3fb; color: #315d83; }
.portal-docs-recent-symbol svg { width: 1rem; height: 1rem; }
.portal-docs-recent-row strong a { color: inherit; text-decoration: none; }
.portal-docs-recent-row strong a:hover { color: #315d83; text-decoration: underline; }
.portal-docs-recent-actions { gap: .2rem; }
.portal-docs-recent-actions a { min-height: 2rem; padding: .3rem .45rem; border-radius: .35rem; background: #eef6fd; font-size: .73rem; }
.portal-docs-recent-actions a:hover { background: #deedf9; text-decoration: none; }
.portal-docs-recent-download svg { width: .9rem; height: .9rem; margin-right: .2rem; }
@media (min-width: 760px) and (max-width: 900px) {
  .portal-documents-page .portal-docs-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-docs-link { grid-template-columns: 2.1rem minmax(0, 1fr) .5rem; gap: .2rem .55rem; min-height: 7.5rem; padding: .9rem; }
  .portal-docs-link-icon { width: 2.1rem; height: 2.1rem; }
  .portal-docs-link strong { font-size: .83rem; }
  .portal-docs-link > span:not(.portal-docs-link-icon) { font-size: .69rem; }
  .portal-docs-link small { font-size: .64rem; }
}
@media (max-width: 900px) {
  .portal-docs-hero-art { margin-right: 1.5rem; }
  .portal-docs-recent-head, .portal-docs-recent-row { grid-template-columns: minmax(7rem, 1fr) minmax(8rem, 1.3fr) minmax(5.5rem, .8fr) auto; }
  .portal-docs-recent-row time, .portal-docs-recent-actions { grid-column: auto; grid-row: auto; }
  .portal-docs-recent-actions { flex-wrap: nowrap; }
}
@media (max-width: 640px) {
  .portal-documents-page .portal-app-main { padding-top: 1.5rem; }
  .portal-docs-hero { margin-bottom: .9rem; }
  .portal-docs-hero::before, .portal-docs-hero::after { display: none; }
  .portal-docs-hero h1 { font-size: clamp(1.7rem, 7vw, 2.15rem); }
  .portal-docs-hero > div:first-child > p:last-child { font-size: .8rem; }
  .portal-docs-hero-art { display: none; }
  .portal-docs-bonus--overview { grid-template-columns: 2.35rem minmax(0, 1fr) auto; gap: .55rem; padding: .85rem; }
  .portal-docs-bonus-icon { width: 2.35rem; height: 2.35rem; }
  .portal-docs-bonus-icon svg { width: 1.15rem; height: 1.15rem; }
  .portal-docs-bonus--overview h2 { font-size: .73rem; }
  .portal-docs-bonus--overview .portal-docs-bonus-value { margin-top: .12rem; font-size: clamp(1.3rem, 5.5vw, 1.65rem); }
  .portal-docs-bonus--overview .portal-docs-bonus-period { font-size: .66rem; }
  .portal-docs-bonus--overview .portal-docs-bonus-note { font-size: .64rem; }
  .portal-docs-bonus--overview .portal-docs-bonus-cta { padding: .25rem .4rem; font-size: .63rem; }
  .portal-docs-progress { gap: .35rem; }
  .portal-docs-progress strong { font-size: .65rem; }
  .portal-docs-links { gap: .45rem; margin-top: .55rem; }
  .portal-docs-link { grid-template-columns: 2.25rem minmax(0, 1fr) auto; min-height: 0; padding: .75rem .9rem; }
  .portal-docs-link-icon { width: 2.25rem; height: 2.25rem; }
  .portal-docs-link strong { font-size: .84rem; }
  .portal-docs-link > span:not(.portal-docs-link-icon) { font-size: .72rem; }
  .portal-docs-link small { padding-top: .25rem; font-size: .67rem; }
  .portal-docs-recent { margin-top: 1.5rem; }
  .portal-docs-recent-head { display: none; }
  .portal-docs-recent-row { grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .45rem; min-height: 3.9rem; padding: .55rem .7rem; }
  .portal-docs-recent-type { grid-column: 1; grid-row: 1; font-size: .7rem; }
  .portal-docs-recent-symbol { width: 1.5rem; height: 1.5rem; }
  .portal-docs-recent-row strong { grid-column: 1; grid-row: 2; padding-left: 2.1rem; font-size: .71rem; }
  .portal-docs-recent-row time { grid-column: 1; grid-row: 3; padding-left: 2.1rem; font-size: .67rem; }
  .portal-docs-recent-actions { grid-column: 2; grid-row: 1 / 4; align-items: center; }
  .portal-docs-recent-view, .portal-docs-recent-download span { display: none !important; }
  .portal-docs-recent-actions .portal-docs-recent-download { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; }
  .portal-docs-recent-download svg { width: 1rem; height: 1rem; margin: 0; }
}

/* Employee payslips: compact financial records using the Documents visual system. */
.portal-payslips-layout { max-width: 72rem; }
.portal-payslips-hero { margin-bottom: 1.5rem; }
.portal-payslips-hero h1 { max-width: 36rem; }
.portal-payslips-latest { padding: 1.5rem 1.7rem; border: 1px solid #d8e8f4; border-radius: 1rem; background: #f0f8fe; }
.portal-payslips-latest-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.portal-payslips-latest-heading .portal-eyebrow { margin-bottom: .35rem; font-size: .66rem; }
.portal-payslips-latest-heading h2, .portal-payslips-history-heading h2, .portal-payslips-bonus h2 { margin: 0; color: #0b2745; font-size: 1.25rem; letter-spacing: -.03em; }
.portal-payslips-latest-heading p:last-child { margin: .3rem 0 0; color: #5b7288; font-size: .86rem; }
.portal-payslips-latest-heading a, .portal-payslips-item-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .5rem .8rem; border-radius: 2rem; background: #dfeefb; color: #225781; font-size: .78rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.portal-payslips-latest-heading a:hover, .portal-payslips-item-link:hover { background: #d0e7f8; }
.portal-payslips-latest-metrics { display: grid; grid-template-columns: 1.7fr 1.1fr repeat(2, 1fr) 1.25fr; gap: 1rem; margin-top: 1.35rem; padding-top: 1.2rem; border-top: 1px solid #dceaf5; }
.portal-payslips-latest-metrics > div { min-width: 0; }
.portal-payslips-latest-metrics span, .portal-payslip-detail-summary span, .portal-payslip-detail-total span { display: block; color: #637f96; font-size: .72rem; font-weight: 650; }
.portal-payslips-latest-metrics strong { display: block; margin-top: .35rem; color: #173755; font-size: .9rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-payslips-latest-net strong { color: #0b2745; font-size: 1.15rem; }
.portal-payslips-history { margin-top: 2.2rem; }
.portal-payslips-history-heading p { margin: .35rem 0 1.1rem; color: #6a8195; font-size: .85rem; }
.portal-payslips-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin-bottom: 1rem; }
.portal-payslips-filters label { color: #58748c; font-size: .76rem; font-weight: 700; }
.portal-payslips-filters input, .portal-payslips-filters select { min-height: 2.65rem; padding: .5rem .75rem; border: 1px solid #d9e5ef; border-radius: .55rem; background: #fff; color: #173755; font-size: .82rem; }
.portal-payslips-filters input { width: min(16rem, 100%); }
.portal-payslips-filters button { min-height: 2.65rem; padding: .5rem .9rem; border: 0; border-radius: .55rem; background: #143b5d; color: #fff; font-size: .8rem; font-weight: 750; cursor: pointer; }
.portal-payslips-filters a { color: #315d83; font-size: .8rem; font-weight: 700; }
.portal-payslips-list { display: grid; gap: .7rem; }
.portal-payslips-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) auto; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; border: 1px solid #e0eaf2; border-radius: .85rem; background: #fff; box-shadow: 0 7px 22px rgba(11,39,69,.025); }
.portal-payslips-item-period { margin: 0 0 .27rem; color: #46759b; font-size: .75rem; font-weight: 750; }
.portal-payslips-item h3 { margin: 0; color: #0b2745; font-size: .99rem; letter-spacing: -.015em; overflow-wrap: anywhere; }
.portal-payslips-item-date { margin: .3rem 0 0; color: #74889a; font-size: .73rem; }
.portal-payslips-item dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.portal-payslips-item dt { color: #71869a; font-size: .69rem; }
.portal-payslips-item dd { margin: .25rem 0 0; color: #173755; font-size: .82rem; font-weight: 720; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-payslips-item-net dd { color: #0b2745; font-size: .95rem; }
.portal-payslips-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.25rem 0; color: #627c92; font-size: .8rem; }
.portal-payslips-pagination a { color: #315d83; font-weight: 750; }
.portal-payslips-bonus { margin-top: 2.5rem; }
.portal-payslips-bonus h2 { margin-bottom: .9rem; }
.portal-payslips-item--bonus { grid-template-columns: minmax(0, 1fr) auto auto; }
.portal-payslips-bonus-amount { margin: 0; color: #0b2745; font-size: 1rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.portal-payslips-empty { display: grid; justify-items: center; padding: 4rem 2rem; border: 1px dashed #cddfeb; border-radius: 1rem; background: #fff; text-align: center; }
.portal-payslips-empty > span { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: #e9f3fb; color: #527eaa; }
.portal-payslips-empty svg { width: 2.5rem; height: 2.5rem; }
.portal-payslips-empty h2 { margin: 1.2rem 0 .4rem; color: #0b2745; font-size: 1.35rem; }
.portal-payslips-empty p { max-width: 30rem; margin: 0; color: #71869a; line-height: 1.55; }
.portal-payslip-detail-heading h1 { margin: 0; color: #0b2745; font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -.045em; }
.portal-payslip-detail-heading > p:last-child { margin: .7rem 0 1.7rem; color: #647c90; font-size: .9rem; }
.portal-payslip-detail-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 1.4rem; border: 1px solid #dbe8f2; border-radius: .85rem; background: #f0f8fe; }
.portal-payslip-detail-summary strong { display: block; margin-top: .4rem; color: #173755; font-size: clamp(1rem, 2vw, 1.4rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-payslip-detail-summary-net strong { color: #0b2745; }
.portal-payslip-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.portal-payslip-detail-concepts { padding: 1.35rem; border: 1px solid #e0eaf2; border-radius: .85rem; background: #fff; }
.portal-payslip-detail-concepts h2 { margin: 0 0 1rem; color: #0b2745; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.portal-payslip-detail-concepts dl { margin: 0; }
.portal-payslip-detail-concepts dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid #edf2f6; color: #173755; font-size: .84rem; }
.portal-payslip-detail-concepts dd { margin: 0; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.portal-payslip-detail-concepts > p { color: #71869a; font-size: .84rem; line-height: 1.5; }
.portal-payslip-detail-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.25rem 1.4rem; border-radius: .85rem; background: #eaf4fc; }
.portal-payslip-detail-total strong { color: #0b2745; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.portal-payslip-detail-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.portal-payslip-detail-actions a { display: inline-flex; align-items: center; gap: .8rem; min-height: 2.9rem; padding: .65rem 1rem; border: 1px solid #cbddec; border-radius: .6rem; background: #fff; color: #225781; font-size: .84rem; font-weight: 750; text-decoration: none; }
.portal-payslip-detail-actions a:last-child { background: #143b5d; border-color: #143b5d; color: #fff; }
.portal-payslip-detail-actions a:hover { box-shadow: 0 7px 20px rgba(11,39,69,.08); }
.portal-payslips-layout a:focus-visible, .portal-payslips-layout button:focus-visible, .portal-payslips-layout input:focus-visible, .portal-payslips-layout select:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
@media (max-width: 900px) {
  .portal-payslips-latest-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-payslips-item { grid-template-columns: minmax(0, 1fr) auto; }
  .portal-payslips-item dl { grid-column: 1 / -1; grid-row: 2; padding-top: .8rem; border-top: 1px solid #edf2f6; }
  .portal-payslips-item-link { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .portal-payslips-layout .portal-docs-back { margin: 0 0 1rem; }
  .portal-payslips-hero { min-height: 0; margin-bottom: 1.1rem; }
  .portal-payslips-hero h1 { max-width: 18rem; font-size: 1.9rem; }
  .portal-payslips-latest { padding: 1.1rem; }
  .portal-payslips-latest-heading { display: block; }
  .portal-payslips-latest-heading a { margin-top: .75rem; }
  .portal-payslips-latest-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
  .portal-payslips-latest-metrics > div:first-child, .portal-payslips-latest-net { grid-column: 1 / -1; }
  .portal-payslips-history { margin-top: 1.7rem; }
  .portal-payslips-filters label { width: 100%; }
  .portal-payslips-filters input, .portal-payslips-filters select { width: 100%; }
  .portal-payslips-item { display: block; padding: 1.1rem; }
  .portal-payslips-item dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1rem; padding-top: 1rem; }
  .portal-payslips-item-net { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid #edf2f6; }
  .portal-payslips-item-net dd { font-size: 1.2rem; }
  .portal-payslips-item-link { margin-top: 1rem; }
  .portal-payslips-item--bonus .portal-payslips-bonus-amount { margin-top: .8rem; }
  .portal-payslip-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-payslip-detail-summary-net { grid-column: 1 / -1; padding-top: .8rem; border-top: 1px solid #dceaf5; }
  .portal-payslip-detail-columns { grid-template-columns: 1fr; }
  .portal-payslip-detail-total strong { font-size: 1.15rem; }
}

/* Payslip list and detail refinements shared by desktop, tablet and mobile. */
.portal-payslips-latest { display: grid; grid-template-columns: 2.8rem minmax(13rem, 1.45fr) minmax(0, 2.5fr) auto; align-items: center; gap: 1.05rem; min-height: 6.4rem; padding: 1rem 1.2rem; background: #fff; box-shadow: 0 7px 25px rgba(11,39,69,.035); }
.portal-payslips-receipt-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #e7f2fc; color: #3978ae; }
.portal-payslips-receipt-icon svg { width: 1.45rem; height: 1.45rem; }
.portal-payslips-latest-heading { display: block; min-width: 0; }
.portal-payslips-latest-heading h2 { font-size: .76rem; }
.portal-payslips-latest-heading strong { display: block; margin-top: .3rem; color: #0b2745; font-size: .83rem; line-height: 1.35; }
.portal-payslips-latest-heading small { display: block; margin-top: .2rem; color: #71869a; font-size: .68rem; }
.portal-payslips-latest-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0; padding: 0; border: 0; }
.portal-payslips-latest-metrics dt { color: #71869a; font-size: .68rem; }
.portal-payslips-latest-metrics dd { margin: .26rem 0 0; color: #173755; font-size: .84rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-payslips-latest-metrics .portal-payslips-latest-net dd { color: #0b2745; font-size: .94rem; }
.portal-payslips-latest-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.3rem; padding: .45rem .7rem; border-radius: 2rem; background: #e2f0fc; color: #225781; font-size: .72rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.portal-payslips-latest-link:hover { background: #d0e7f8; }
.portal-payslips-history { margin-top: 1.55rem; }
.portal-payslips-history-heading { display: flex; justify-content: space-between; gap: 1rem; }
.portal-payslips-filters { justify-content: flex-end; margin: -3rem 0 1rem; }
.portal-payslips-filters label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.portal-payslips-filters input { width: 13rem; }
.portal-payslips-filters select { min-width: 6.2rem; }
.portal-payslips-filters button { min-height: 2.65rem; }
.portal-payslips-item { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) auto auto; gap: .75rem; min-height: 5rem; padding: .85rem 1.1rem; }
.portal-payslips-item-menu { position: relative; }
.portal-payslips-item-menu summary { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; color: #527eaa; font-size: 1.25rem; cursor: pointer; list-style: none; }
.portal-payslips-item-menu summary::-webkit-details-marker { display: none; }
.portal-payslips-item-menu summary:hover { background: #edf5fb; }
.portal-payslips-item-menu > div { position: absolute; z-index: 8; top: calc(100% + .3rem); right: 0; width: 10rem; padding: .35rem; border: 1px solid #dbe6ef; border-radius: .55rem; background: #fff; box-shadow: 0 10px 25px rgba(11,39,69,.12); }
.portal-payslips-item-menu a { display: block; padding: .55rem .6rem; border-radius: .35rem; color: #225781; font-size: .76rem; font-weight: 700; text-decoration: none; }
.portal-payslips-item-menu a:hover { background: #edf5fb; }
.portal-payslip-detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.portal-payslip-detail-heading .portal-eyebrow { margin-bottom: .35rem; }
.portal-payslip-detail-title { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.portal-payslip-detail-title h1 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.portal-payslip-detail-title > span { padding: .3rem .55rem; border-radius: 2rem; background: #e6f3ed; color: #297457; font-size: .67rem; font-weight: 750; }
.portal-payslip-detail-heading > div:first-child > p:last-child { margin: .55rem 0 0; color: #6d8295; font-size: .78rem; }
.portal-payslip-detail-actions { flex: none; align-self: center; margin: 0; }
.portal-payslip-detail-actions a { min-height: 2.5rem; padding: .5rem .8rem; border-radius: 2rem; font-size: .72rem; }
.portal-payslip-detail-summary { padding: 1.2rem 1.4rem; background: #fff; }
.portal-payslip-coverage { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 1rem; padding: 1rem 1.4rem; border: 1px solid #dbe8f2; border-radius: .85rem; background: #f0f8fe; }
.portal-payslip-coverage .portal-eyebrow { margin: 0 0 .3rem; }
.portal-payslip-coverage h2 { margin: 0 0 .3rem; color: #0b2745; font-size: .95rem; }
.portal-payslip-coverage p { margin: .2rem 0 0; color: #5b7590; font-size: .78rem; }
.portal-payslip-coverage-amount { flex: none; text-align: right; }
.portal-payslip-coverage-amount span { display: block; color: #5b7590; font-size: .72rem; }
.portal-payslip-coverage-amount strong { display: block; margin-top: .25rem; color: #0b2745; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.portal-payslip-detail-columns { margin-top: 1rem; }
.portal-payslip-detail-concepts { display: flex; flex-direction: column; min-height: 16rem; }
.portal-payslip-detail-concepts-heading { display: flex; align-items: center; gap: .55rem; margin-bottom: .7rem; }
.portal-payslip-detail-concepts-heading h2 { margin: 0; font-size: .86rem; letter-spacing: 0; text-transform: none; }
.portal-payslip-detail-concepts-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .6rem; }
.portal-payslip-detail-concepts-icon svg { width: 1.2rem; height: 1.2rem; }
.portal-payslip-detail-concepts-icon--income { background: #dcf4e9; color: #17785c; }
.portal-payslip-detail-concepts-icon--deduction { background: #fbe9ef; color: #a54a69; }
.portal-payslip-detail-concepts dl > div { padding: .7rem 0; }
.portal-payslip-detail-concepts-total { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid #e4edf3; color: #0b2745; font-size: .81rem; font-weight: 750; }
.portal-payslip-detail-concepts-total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.portal-payslip-detail-note { display: flex; align-items: center; gap: .7rem; margin: 1rem 0 0; padding: .85rem 1rem; border: 1px solid #e0ebf3; border-radius: .7rem; background: #f0f8fe; color: #5b7590; font-size: .76rem; line-height: 1.5; }
.portal-payslip-detail-note span { color: #3486cb; font-size: 1.1rem; }
@media (max-width: 900px) {
  .portal-payslips-latest { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
  .portal-payslips-latest-metrics { grid-column: 2 / -1; grid-row: 2; }
  .portal-payslips-latest-link { grid-column: 3; grid-row: 1; }
  .portal-payslips-filters { margin-top: -.4rem; }
  .portal-payslips-item { grid-template-columns: minmax(0, 1fr) auto auto; }
  .portal-payslips-item dl { grid-column: 1 / -1; grid-row: 2; }
  .portal-payslips-item-link { grid-column: 2; grid-row: 1; }
  .portal-payslips-item-menu { grid-column: 3; grid-row: 1; }
  .portal-payslip-detail-heading { flex-direction: column; }
  .portal-payslip-detail-actions { align-self: auto; }
}
@media (max-width: 640px) {
  .portal-payslips-latest { grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .55rem; padding: .8rem; }
  .portal-payslips-receipt-icon { width: 2.4rem; height: 2.4rem; }
  .portal-payslips-receipt-icon svg { width: 1.25rem; height: 1.25rem; }
  .portal-payslips-latest-heading h2 { font-size: .7rem; }
  .portal-payslips-latest-heading strong { font-size: .72rem; }
  .portal-payslips-latest-heading small { font-size: .62rem; }
  .portal-payslips-latest-link { padding: .35rem; font-size: 0; }
  .portal-payslips-latest-link span { font-size: .95rem; }
  .portal-payslips-latest-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; padding-top: .7rem; border-top: 1px solid #e5eef5; }
  .portal-payslips-latest-metrics dt { font-size: .58rem; }
  .portal-payslips-latest-metrics dd, .portal-payslips-latest-metrics .portal-payslips-latest-net dd { font-size: .69rem; }
  .portal-payslips-history { margin-top: 1.3rem; }
  .portal-payslips-filters { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: .35rem; margin: -.2rem 0 .7rem; }
  .portal-payslips-filters select, .portal-payslips-filters input { width: 100%; min-width: 0; padding: .45rem .5rem; font-size: .7rem; }
  .portal-payslips-filters button { padding: .45rem .55rem; font-size: .7rem; }
  .portal-payslips-filters a { grid-column: 1 / -1; }
  .portal-payslips-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem .35rem; }
  .portal-payslips-item-main { grid-column: 1; grid-row: 1; }
  .portal-payslips-item-menu { grid-column: 2; grid-row: 1; }
  .portal-payslips-item dl { grid-column: 1 / -1; grid-row: 2; margin: 0; }
  .portal-payslips-item-link { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 0; }
  .portal-payslip-detail-title h1 { font-size: 1.3rem; }
  .portal-payslip-detail-heading > div:first-child > p:last-child { font-size: .7rem; }
  .portal-payslip-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .portal-payslip-detail-actions a { justify-content: center; padding: .5rem; font-size: .66rem; }
  .portal-payslip-coverage { display: block; padding: .9rem 1rem; }
  .portal-payslip-coverage-amount { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid #dbe8f2; text-align: left; }
  .portal-payslip-detail-concepts { min-height: 0; }
  .portal-payslip-detail-note { align-items: flex-start; }
}

.portal-payslips-history-heading { display: block; }
.portal-payslips-history-heading p { max-width: 25rem; }
.portal-payslips-item { grid-template-columns: 2.3rem minmax(0, 1.3fr) minmax(0, 1.5fr) auto auto; }
.portal-payslips-item-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: #e7f2fc; color: #3978ae; }
.portal-payslips-item-icon svg { width: 1.15rem; height: 1.15rem; }
.portal-payslips-item--bonus { grid-template-columns: minmax(0, 1fr) auto auto; }
@media (max-width: 900px) {
  .portal-payslips-item { grid-template-columns: 2.3rem minmax(0, 1fr) auto auto; }
  .portal-payslips-item-icon { grid-column: 1; grid-row: 1; }
  .portal-payslips-item-main { grid-column: 2; grid-row: 1; }
  .portal-payslips-item dl { grid-column: 2 / -1; grid-row: 2; }
  .portal-payslips-item-link { grid-column: 3; grid-row: 1; }
  .portal-payslips-item-menu { grid-column: 4; grid-row: 1; }
  .portal-payslips-item--bonus { grid-template-columns: minmax(0, 1fr) auto auto; }
  .portal-payslips-item--bonus .portal-payslips-item-main { grid-column: 1; }
}
@media (max-width: 640px) {
  .portal-payslips-latest-metrics > div:first-child, .portal-payslips-latest-metrics .portal-payslips-latest-net { grid-column: auto; }
  .portal-payslips-history-heading p { max-width: none; }
  .portal-payslips-item { grid-template-columns: 2.15rem minmax(0, 1fr) auto; }
  .portal-payslips-item-icon { grid-column: 1; grid-row: 1; width: 2rem; height: 2rem; }
  .portal-payslips-item-main { grid-column: 2; grid-row: 1; }
  .portal-payslips-item-menu { grid-column: 3; grid-row: 1; }
  .portal-payslips-item dl { grid-column: 1 / -1; grid-row: 2; }
  .portal-payslips-item-link { grid-column: 1 / -1; grid-row: 3; }
  .portal-payslips-item--bonus { display: block; }
}

/* Quiet year and month controls with in-place history updates. */
.portal-payslips-filters { display: flex; gap: .55rem; justify-content: flex-end; margin: -3.2rem 0 1rem; }
.portal-payslips-filter-control { display: flex; align-items: center; gap: .5rem; min-width: 9.5rem; min-height: 3rem; padding: .35rem .65rem; border: 1px solid #d9e5ef; border-radius: .75rem; background: #fff; box-shadow: 0 5px 18px rgba(11,39,69,.025); transition: border-color .18s ease, box-shadow .18s ease; }
.portal-payslips-filter-control:nth-child(2) { min-width: 11rem; }
.portal-payslips-filter-control:hover, .portal-payslips-filter-control:focus-within { border-color: #9dc6e4; box-shadow: 0 6px 20px rgba(11,39,69,.06); }
.portal-payslips-filter-icon { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: .5rem; background: #eaf3fb; color: #3978ae; }
.portal-payslips-filter-icon svg { width: 1rem; height: 1rem; }
.portal-payslips-filter-control > div { min-width: 0; flex: 1; }
.portal-payslips-filters .portal-payslips-filter-control label { position: static; display: block; width: auto; height: auto; margin: 0 0 .05rem; clip: auto; color: #71869a; font-size: .59rem; font-weight: 750; line-height: 1.1; text-transform: uppercase; letter-spacing: .05em; }
.portal-payslips-filters .portal-payslips-filter-control select { display: block; width: 100%; min-width: 0; min-height: 1.3rem; height: 1.3rem; padding: 0; border: 0; border-radius: 0; outline: 0; appearance: none; background: transparent; color: #173755; font-size: .78rem; font-weight: 750; line-height: 1.2; cursor: pointer; }
.portal-payslips-filter-chevron { align-self: center; color: #527eaa; font-size: 1.15rem; line-height: 1; pointer-events: none; }
#portal-payslips-results { transition: opacity .18s ease, transform .18s ease; }
#portal-payslips-results.is-loading { opacity: .45; transform: translateY(3px); }
.portal-payslips-filter-error { margin: 0 0 .7rem; padding: .65rem .85rem; border: 1px solid #efc3c3; border-radius: .6rem; background: #fff7f7; color: #963a3a; font-size: .78rem; }
@media (max-width: 900px) { .portal-payslips-filters { margin-top: -.25rem; } }
@media (max-width: 640px) {
  .portal-payslips-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: -.15rem 0 .8rem; }
  .portal-payslips-filter-control, .portal-payslips-filter-control:nth-child(2) { min-width: 0; }
  .portal-payslips-filter-icon { width: 1.6rem; height: 1.6rem; }
  .portal-payslips-filters .portal-payslips-filter-control select { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  #portal-payslips-results, .portal-payslips-filter-control { transition: none; }
}

/* Branded year and month menus; the native selects remain as a no-JS fallback. */
.portal-payslips-filter-control.is-enhanced { position: relative; padding: 0; border: 0; background: transparent; box-shadow: none; }
.portal-payslips-filter-control.is-enhanced > .portal-payslips-filter-icon,
.portal-payslips-filter-control.is-enhanced > div:not(.portal-payslips-filter-menu),
.portal-payslips-filter-control.is-enhanced > .portal-payslips-filter-chevron { display: none; }
.portal-payslips-filters .portal-payslips-filter-trigger { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 3.05rem; padding: .38rem .72rem; border: 1px solid #d4e5f2; border-radius: .78rem; background: #fdfefe; color: #0b3053; box-shadow: 0 5px 17px rgba(15,58,92,.04); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.portal-payslips-filters .portal-payslips-filter-trigger:hover,
.portal-payslips-filter-control.is-open .portal-payslips-filter-trigger { border-color: #85b5dc; background: #f8fcff; box-shadow: 0 8px 22px rgba(21,88,140,.1); }
.portal-payslips-filter-trigger:focus-visible { outline: 2px solid #2775b5; outline-offset: 3px; }
.portal-payslips-filter-trigger-icon { display: grid; place-items: center; flex: none; width: 1.85rem; height: 1.85rem; border-radius: .54rem; background: #eaf4fc; color: #317bb6; }
.portal-payslips-filter-trigger-icon svg { width: 1rem; height: 1rem; }
.portal-payslips-filter-trigger-copy { display: grid; gap: .05rem; flex: 1; min-width: 0; }
.portal-payslips-filter-trigger-copy > span { color: #6c8499; font-size: .59rem; font-weight: 750; letter-spacing: .075em; line-height: 1.15; text-transform: uppercase; }
.portal-payslips-filter-trigger-copy strong { overflow: hidden; color: #123756; font-size: .78rem; font-weight: 750; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.portal-payslips-filter-trigger > svg { flex: none; width: .9rem; height: .9rem; color: #3b7fb3; transition: transform .18s ease; }
.portal-payslips-filter-control.is-open .portal-payslips-filter-trigger > svg { transform: rotate(180deg); }
.portal-payslips-filter-menu { position: absolute; z-index: 20; top: calc(100% + .42rem); right: 0; width: max(100%, 12rem); max-height: min(20rem, 55vh); overflow-y: auto; padding: .34rem; border: 1px solid #d6e8f5; border-radius: .85rem; background: #fff; box-shadow: 0 15px 38px rgba(11,48,83,.16); }
.portal-payslips-filter-menu[hidden] { display: none; }
.portal-payslips-filters .portal-payslips-filter-option { display: block; width: 100%; min-height: 2.05rem; padding: .44rem .7rem; border: 0; border-radius: .5rem; background: transparent; color: #234661; font-size: .78rem; font-weight: 650; text-align: left; cursor: pointer; }
.portal-payslips-filters .portal-payslips-filter-option:hover,
.portal-payslips-filters .portal-payslips-filter-option:focus-visible { outline: 0; background: #edf6fc; color: #0c578c; }
.portal-payslips-filters .portal-payslips-filter-option[aria-pressed="true"] { background: #e3f1fb; color: #0d5e97; font-weight: 800; }
@media (max-width: 640px) {
  .portal-payslips-filter-menu { width: max(100%, 10.5rem); }
  .portal-payslips-filter-control:nth-child(2) .portal-payslips-filter-menu { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-payslips-filter-trigger, .portal-payslips-filter-trigger > svg { transition: none; }
}

/* Employee loan account: personal balances and payment history. */
.portal-loans-layout { max-width: 72rem; }
.portal-loans-hero { margin-bottom: 1.3rem; }
.portal-loans-hero .portal-docs-hero-art svg { width: 3.8rem; height: 3.8rem; }
.portal-loans-overview { display: grid; grid-template-columns: minmax(11rem, .8fr) repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0 2.25rem; border: 1px solid #d7e8f5; border-radius: 1rem; background: linear-gradient(110deg, #f3f9fe, #fff 65%); box-shadow: 0 10px 25px rgba(20,65,101,.035); }
.portal-loans-overview > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 7.2rem; padding: 1.3rem 1.65rem; }
.portal-loans-overview > div + div { border-left: 1px solid #e2edf5; }
.portal-loans-overview > div:only-child { grid-column: 1 / -1; }
.portal-loans-overview span { color: #5f7c93; font-size: .77rem; font-weight: 650; }
.portal-loans-overview strong { display: block; margin-top: .32rem; color: #0b3053; font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 760; line-height: 1.18; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-loans-overview-count strong { font-size: clamp(1.9rem, 3.3vw, 2.8rem); }
.portal-loans-overview-count p { max-width: 33rem; margin: .55rem 0 0; color: #6c8295; font-size: .82rem; line-height: 1.5; }
.portal-loans-tabs { display: inline-flex; gap: .15rem; margin-bottom: 1.2rem; padding: .22rem; border: 1px solid #dceaf4; border-radius: .75rem; background: #f2f7fb; }
.portal-loans-tabs :is(button,a) { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-width: 7.5rem; min-height: 2.6rem; padding: .5rem .9rem; border: 0; border-radius: .56rem; background: transparent; color: #57738a; font: inherit; font-size: .83rem; font-weight: 740; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.portal-loans-tabs :is(button,a):hover { color: #0b4f80; }
.portal-loans-tabs :is(button,a)[aria-selected="true"] { background: #fff; color: #123f64; box-shadow: 0 3px 11px rgba(14,61,98,.1); }
.portal-loans-tabs :is(button,a):focus-visible { outline: 2px solid #287ab7; outline-offset: 2px; }
.portal-loans-tabs :is(button,a) span { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .28rem; border-radius: .4rem; background: #e3eff8; color: #3c6f97; font-size: .71rem; font-variant-numeric: tabular-nums; }
.portal-loans-panel[hidden] { display: none; }
.portal-loans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.portal-loan-card { display: flex; flex-direction: column; min-width: 0; padding: 1.45rem 1.55rem 1.2rem; border: 1px solid #dfebf4; border-radius: 1rem; background: #fff; box-shadow: 0 9px 24px rgba(18,59,91,.035); }
.portal-loan-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.portal-loan-card-top .portal-eyebrow { margin: 0 0 .48rem; color: #4f80a6; font-size: .65rem; }
.portal-loan-card h3 { margin: 0; color: #102e4a; font-size: 1.2rem; line-height: 1.27; letter-spacing: -.025em; overflow-wrap: anywhere; }
.portal-loan-card-currency { padding: .28rem .42rem; border-radius: .4rem; background: #f0f6fa; color: #6b8396; font-size: .65rem; font-weight: 750; }
.portal-loan-card-balance { display: grid; gap: .25rem; margin-top: 1.45rem; }
.portal-loan-card-balance span, .portal-loan-card-facts dt { color: #71889b; font-size: .75rem; }
.portal-loan-card-balance strong { color: #0b3053; font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 760; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-loan-card-facts { display: grid; gap: 0; margin: 1.15rem 0 0; border-top: 1px solid #edf3f7; }
.portal-loan-card-facts > div { display: flex; justify-content: space-between; gap: .8rem; padding: .57rem 0; }
.portal-loan-card-facts > div + div { border-top: 1px solid #f1f5f8; }
.portal-loan-card-facts dd { margin: 0; color: #183b59; font-size: .83rem; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-loan-progress { display: grid; gap: .5rem; margin-top: 1rem; }
.portal-loan-progress-track { height: .34rem; overflow: hidden; border-radius: 1rem; background: #e7f0f7; }
.portal-loan-progress-track span { display: block; height: 100%; border-radius: inherit; background: #4b91c7; }
.portal-loan-progress small { color: #648199; font-size: .72rem; }
.portal-loan-estimate { display: grid; justify-items: center; gap: .08rem; margin-top: .25rem; color: #285d85; text-align: center; }
.portal-loan-estimate-heading { display: inline-flex; align-items: center; gap: .3rem; }
.portal-loan-estimate-icon { display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: .35rem; background: #e9f3fb; }
.portal-loan-estimate-icon svg { width: .82rem; height: .82rem; }
.portal-loan-estimate small { color: #648199; font-size: .69rem; }
.portal-loan-estimate strong { color: #102e4a; font-size: .84rem; font-weight: 780; line-height: 1.25; }
.portal-loan-reference { margin: .9rem 0 0; color: #7b8fa0; font-size: .72rem; }
.portal-loan-card-link { display: inline-flex; align-items: center; align-self: flex-end; gap: .5rem; min-height: 2.5rem; margin-top: 1.1rem; color: #126096; font-size: .83rem; font-weight: 760; text-decoration: none; }
.portal-loan-card-link:hover { color: #0b3b61; text-decoration: underline; }
.portal-loans-panel-empty, .portal-loans-empty { padding: 2rem; border: 1px dashed #cddfeb; border-radius: .9rem; background: #fff; }
.portal-loans-panel-empty strong, .portal-loans-empty h2 { margin: 0; color: #123451; font-size: 1rem; }
.portal-loans-panel-empty p, .portal-loans-empty p { max-width: 31rem; margin: .5rem 0 0; color: #6d8294; font-size: .85rem; line-height: 1.55; }
.portal-loans-empty { display: grid; justify-items: start; min-height: 15rem; padding: 2.3rem; }
.portal-loans-empty-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .8rem; border-radius: .9rem; background: #eaf4fb; color: #387fb2; }
.portal-loans-empty-icon svg { width: 2rem; height: 2rem; }
.portal-loans-empty h2 { font-size: 1.3rem; }
.portal-loan-status { display: inline-block; padding: .25rem .55rem; border: 1px solid #d9e9f4; border-radius: .45rem; background: #f0f7fc; color: #285d85; font-size: .77rem; font-weight: 750; line-height: 1.3; }
.portal-loan-hero-separator { padding: 0 .2rem; color: #a2b2c0; }
.portal-loan-statement-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0 3rem; border: 1px solid #dce9f3; border-radius: 1rem; background: #fff; }
.portal-loan-statement-summary > div { display: grid; align-content: center; gap: .4rem; min-width: 0; min-height: 6.6rem; padding: 1.2rem 1.35rem; }
.portal-loan-statement-summary > div + div { border-left: 1px solid #e7eff5; }
.portal-loan-statement-summary span { color: #6e879b; font-size: .75rem; }
.portal-loan-statement-summary strong { color: #123756; font-size: clamp(.98rem, 1.5vw, 1.25rem); font-weight: 760; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-loan-statement-balance { background: #f4f9fd; }
.portal-loan-statement-history-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.1rem; }
.portal-loan-statement-history-heading .portal-eyebrow { margin-bottom: .35rem; }
.portal-loan-statement-history-heading h2 { margin: 0; color: #0b3053; font-size: 1.4rem; letter-spacing: -.035em; }
.portal-loan-statement-history-heading p:last-child { margin: .35rem 0 0; color: #6e879b; font-size: .84rem; }
.portal-loan-statement-history-heading > span { color: #7590a3; font-size: .76rem; white-space: nowrap; }
.portal-loan-movements { margin: 0; padding: 0; border: 1px solid #e0eaf2; border-radius: 1rem; background: #fff; list-style: none; overflow: hidden; }
.portal-loan-movement { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 5.6rem; padding: .9rem 1.2rem; }
.portal-loan-movement + .portal-loan-movement { border-top: 1px solid #edf2f6; }
.portal-loan-movement-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .65rem; background: #eaf4fb; color: #3278ad; }
.portal-loan-movement-icon svg { width: 1.1rem; height: 1.1rem; }
.portal-loan-movement-main { display: grid; gap: .13rem; min-width: 0; }
.portal-loan-movement-main time, .portal-loan-movement-main small { color: #71889c; font-size: .73rem; }
.portal-loan-movement-main strong { color: #1b405e; font-size: .88rem; font-weight: 720; }
.portal-loan-movement-amount { display: grid; gap: .3rem; text-align: right; }
.portal-loan-movement-amount > strong { color: #153d5b; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-loan-movement-amount small { color: #71889c; font-size: .71rem; }
.portal-loan-movement-amount b { color: #315d7f; font-weight: 760; font-variant-numeric: tabular-nums; }
.portal-loan-pagination { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; color: #6d8498; font-size: .78rem; }
.portal-loan-pagination a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .5rem .7rem; border: 1px solid #d8e8f3; border-radius: .55rem; background: #fff; color: #27618e; font-weight: 730; text-decoration: none; }
@media (max-width: 900px) {
  .portal-loans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-loans-overview > div { padding-inline: 1.1rem; }
  .portal-loan-statement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-loan-statement-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid #e7eff5; }
  .portal-loan-statement-summary > div:nth-child(4) { border-top: 1px solid #e7eff5; }
}
@media (max-width: 700px) {
  .portal-loans-grid { grid-template-columns: 1fr; }
  .portal-loans-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: .8rem 0 1.35rem; }
  .portal-loans-overview-count { grid-column: 1 / -1; }
  .portal-loans-overview > div { min-height: 5.5rem; padding: 1rem 1.15rem; }
  .portal-loans-overview > div + div { border-left: 0; border-top: 1px solid #e2edf5; }
  .portal-loans-overview > div:nth-child(odd):not(:first-child) { border-left: 1px solid #e2edf5; }
  .portal-loans-overview strong { font-size: 1.22rem; }
  .portal-loans-overview-count strong { font-size: 2rem; }
  .portal-loan-statement-summary { margin-bottom: 2rem; }
}
@media (max-width: 420px) {
  .portal-loans-tabs { display: flex; width: 100%; }
  .portal-loans-tabs :is(button,a) { flex: 1; min-width: 0; }
  .portal-loan-card { padding: 1.2rem; }
  .portal-loan-movement { grid-template-columns: 2rem minmax(0, 1fr); gap: .65rem; }
  .portal-loan-movement-icon { width: 2rem; height: 2rem; }
  .portal-loan-movement-amount { grid-column: 2; text-align: left; }
  .portal-loan-movement-amount > strong { font-size: 1rem; }
  .portal-loan-pagination { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .portal-loans-tabs :is(button,a) { transition: none; } }

/* Compact loan cards and a ledger that adapts from columns to touch rows. */
.portal-loans-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.55rem; background: #fff; }
.portal-loans-overview > div { min-height: 6.2rem; }
.portal-loans-overview > div + div { border-left: 1px solid #e2edf5; }
.portal-loans-overview-item { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 1rem; }
.portal-loans-overview-item > div { min-width: 0; }
.portal-loans-overview-item > div > span { display: block; }
.portal-loans-overview-icon { display: grid; place-items: center; flex: none; width: 3.1rem; height: 3.1rem; border-radius: 50%; }
.portal-loans-overview-icon svg { width: 1.45rem; height: 1.45rem; }
.portal-loans-overview-icon--active { background: #e5f6f2; color: #16796c; }
.portal-loans-overview-icon--finished { background: #e9f1fb; color: #316daa; }
.portal-loans-overview-item strong { display: inline-block; margin-right: .45rem; font-size: 1.55rem; }
.portal-loans-overview-item small { color: #8294a3; font-size: .75rem; }
.portal-loans-tabs { display: flex; width: 100%; gap: 0; margin-bottom: .75rem; padding: 0; border: 0; border-bottom: 1px solid #dce9f2; border-radius: 0; background: transparent; }
.portal-loans-tabs :is(button,a) { min-width: 8.4rem; min-height: 2.9rem; padding: .55rem 1.15rem; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none !important; }
.portal-loans-tabs :is(button,a)[aria-selected="true"] { border-bottom-color: #1980cc; background: transparent; color: #0866a7; }
.portal-loans-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
.portal-loan-card { display: grid; grid-template-columns: 2.75rem minmax(10rem, 1.1fr) minmax(0, 2.8fr) auto; align-items: center; gap: .65rem 1rem; min-height: 8.3rem; padding: 1.05rem 1.25rem; border-radius: .85rem; }
.portal-loan-card-icon { display: grid; place-items: center; grid-column: 1; grid-row: 1 / 3; width: 2.65rem; height: 2.65rem; border-radius: 50%; background: #e4f1fc; color: #2581c8; }
.portal-loan-card-icon svg { width: 1.55rem; height: 1.55rem; }
.portal-loan-card-identity { grid-column: 2; grid-row: 1 / 3; min-width: 0; }
.portal-loan-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.portal-loan-card-title h3 { font-size: .91rem; }
.portal-loan-card-title > span { padding: .17rem .42rem; border-radius: .45rem; background: #e7f7f2; color: #177768; font-size: .62rem; font-weight: 750; }
.portal-loan-card:not(.portal-loan-card--active) .portal-loan-card-title > span { background: #eaf1f8; color: #426b8c; }
.portal-loan-card-identity p { margin: .35rem 0 0; color: #6e879b; font-size: .7rem; line-height: 1.35; }
.portal-loan-card-facts { display: grid; grid-column: 3; grid-row: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 0; border: 0; }
.portal-loan-card-facts > div { display: grid; justify-content: start; gap: .3rem; min-width: 0; padding: .1rem .6rem; }
.portal-loan-card-facts > div + div { border: 0; border-left: 1px solid #e7eff5; }
.portal-loan-card-facts dt { font-size: .69rem; }
.portal-loan-card-facts dd { font-size: .81rem; text-align: left; }
.portal-loan-progress { grid-column: 3; grid-row: 2; display: flex; align-items: center; gap: .55rem; margin: 0 .6rem; }
.portal-loan-estimate { grid-column: 3; grid-row: 3; margin: -.3rem .6rem 0; }
.portal-loan-progress-track { flex: 1; }
.portal-loan-progress small { flex: none; }
.portal-loan-card-link { grid-column: 4; grid-row: 1 / 3; align-self: center; margin: 0; padding: .35rem .6rem; border-radius: .5rem; background: #e9f3fb; font-size: .72rem; white-space: nowrap; }
.portal-loan-card-link:hover { background: #dceefa; text-decoration: none; }
.portal-loan-ledger { border: 1px solid #e0eaf2; border-radius: .85rem; background: #fff; overflow: hidden; }
.portal-loan-ledger-head, .portal-loan-movement { display: grid; grid-template-columns: 8rem minmax(0, 1fr) 10rem 10rem; align-items: center; gap: .8rem; }
.portal-loan-ledger-head { min-height: 2.5rem; padding: .5rem 1rem; border-bottom: 1px solid #e2ebf3; color: #71889c; font-size: .69rem; font-weight: 700; }
.portal-loan-ledger-head span:nth-child(n+3) { text-align: right; }
.portal-loan-movements { border: 0; border-radius: 0; }
.portal-loan-movement { min-height: 3.45rem; padding: .55rem 1rem; font-size: .78rem; }
.portal-loan-movement time { color: #607d94; font-size: .74rem; }
.portal-loan-movement-concept { display: flex; align-items: center; gap: .55rem; min-width: 0; color: #284c69; }
.portal-loan-movement-concept strong { font-size: .77rem; font-weight: 650; }
.portal-loan-movement-icon { display: grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #e8f7f2; color: #19836d; font-size: .7rem; font-weight: 800; }
.portal-loan-movement--disbursement .portal-loan-movement-icon { background: #e9f3fb; color: #2376ae; }
.portal-loan-movement-amount, .portal-loan-movement-balance { display: block; color: #183b59; font-size: .78rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.portal-loan-movement-balance { font-weight: 740; }
.portal-loan-mobile-label { display: none; }
@media (max-width: 1050px) {
  .portal-loan-card { grid-template-columns: 2.5rem minmax(8rem, .9fr) minmax(0, 2.6fr); }
  .portal-loan-card-link { grid-column: 3; grid-row: 4; justify-self: end; }
  .portal-loan-card-icon { grid-row: 1 / 3; }
  .portal-loan-card-identity { grid-row: 1 / 3; }
  .portal-loan-ledger-head, .portal-loan-movement { grid-template-columns: 6rem minmax(0, 1fr) 7rem 7rem; gap: .5rem; }
}
@media (max-width: 700px) {
  .portal-loans-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-loans-overview > div { min-height: 5.4rem; padding: .8rem; }
  .portal-loans-overview > div + div { border-top: 0; border-left: 1px solid #e2edf5; }
  .portal-loans-overview-icon { width: 2.2rem; height: 2.2rem; }
  .portal-loans-overview-icon svg { width: 1.1rem; height: 1.1rem; }
  .portal-loans-overview-item { gap: .5rem; }
  .portal-loans-overview-item > div > span { display: block; font-size: .64rem; }
  .portal-loans-overview-item strong { font-size: 1.3rem; }
  .portal-loans-overview-item small { font-size: .6rem; }
  .portal-loans-tabs :is(button,a) { flex: 1; min-width: 0; }
  .portal-loan-card { grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; padding: 1rem; }
  .portal-loan-card-icon { grid-column: 1; grid-row: 1; width: 2.35rem; height: 2.35rem; }
  .portal-loan-card-identity { grid-column: 2; grid-row: 1; }
  .portal-loan-card-facts { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .portal-loan-card-facts > div { padding: 0; }
  .portal-loan-card-facts > div + div { border: 0; }
  .portal-loan-card-facts dd { font-size: .84rem; }
  .portal-loan-progress { grid-column: 1 / -1; grid-row: 3; margin: 0; }
  .portal-loan-estimate { grid-column: 1 / -1; grid-row: 4; margin: -.5rem 0 0; }
  .portal-loan-card-link { grid-column: 1 / -1; grid-row: 5; justify-self: stretch; justify-content: center; min-height: 2.4rem; margin-top: .15rem; border: 1px solid #c7e0f3; background: #fff; }
  .portal-loan-ledger-head { display: none; }
  .portal-loan-movement { grid-template-columns: minmax(0, 1fr) auto; gap: .24rem .6rem; padding: .8rem .9rem; }
  .portal-loan-movement time { grid-column: 1; grid-row: 1; }
  .portal-loan-movement-concept { grid-column: 1; grid-row: 2; }
  .portal-loan-movement-amount { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .portal-loan-movement-balance { grid-column: 1 / -1; grid-row: 3; margin-left: 1.8rem; color: #47708e; font-size: .72rem; text-align: left; }
  .portal-loan-mobile-label { display: inline; margin-right: .4rem; color: #8296a6; font-weight: 500; }
}
@media (max-width: 390px) {
  .portal-loans-overview-icon { display: none; }
  .portal-loan-movement-amount { font-size: .72rem; }
}
.portal-loan-pdf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1rem; }
.portal-loan-pdf-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid #9bc4e1; border-radius: .6rem; background: #fff; color: #1a6397; font-size: .78rem; font-weight: 750; text-align: center; text-decoration: none; }
.portal-loan-pdf-actions a:last-child { border-color: #143d60; background: #143d60; color: #fff; }
.portal-loan-pdf-actions a:hover { box-shadow: 0 4px 12px rgba(15,61,95,.12); }
.portal-loan-statement-summary small { color: #7890a2; font-size: .71rem; }
@media (max-width: 420px) { .portal-loan-pdf-actions { grid-template-columns: 1fr; } }

/* Aguinaldo personal: resumen, aportes mensuales e historial. */
.portal-annual-layout { width: min(100%, 68rem); }
.portal-annual-hero { min-height: 9rem; margin-bottom: 1rem; }
.portal-annual-hero h1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.portal-annual-hero .portal-docs-hero-art svg { width: 4rem; height: 4rem; }
.portal-annual-card { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border: 1px solid #d9e8f3; border-radius: 1rem; background: linear-gradient(135deg,#fff 25%,#f3f9fe 100%); box-shadow: 0 12px 32px rgba(19,64,99,.045); }
.portal-annual-card-main { padding: clamp(1.15rem, 2.5vw, 1.8rem); }
.portal-annual-card-main .portal-eyebrow { margin: 0 0 1rem; }
.portal-annual-amount { margin: 0; color: #0b2745; font-size: clamp(2.4rem, 4.2vw, 3.35rem); font-weight: 780; letter-spacing: -.065em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-annual-caption { margin: .55rem 0 0; color: #52718b; font-size: .88rem; }
.portal-annual-period { display: grid; gap: .35rem; margin-top: 1.35rem; }
.portal-annual-period > span, .portal-annual-updated > span { color: #7790a4; font-size: .76rem; }
.portal-annual-period strong { color: #173d5b; font-size: .96rem; font-weight: 720; }
.portal-annual-period strong span { color: #8fa9bb; margin-inline: .2rem; }
.portal-annual-card-aside { display: flex; flex-direction: column; padding: clamp(1.15rem, 2.5vw, 1.8rem); border-left: 1px solid #e1edf5; background: rgba(239,247,253,.45); }
.portal-annual-aside-title { margin: 0 0 1.15rem; color: #194367; font-size: .86rem; font-weight: 740; }
.portal-annual-progress-label { display: flex; justify-content: space-between; gap: 1rem; color: #315d83; font-size: .78rem; font-weight: 680; }
.portal-annual-progress-label strong { font-variant-numeric: tabular-nums; }
.portal-annual-progress progress { display: block; width: 100%; height: .42rem; margin: .7rem 0 .35rem; border: 0; border-radius: 1rem; appearance: none; background: #d7e6f2; }
.portal-annual-progress progress::-webkit-progress-bar { border-radius: 1rem; background: #d7e6f2; }
.portal-annual-progress progress::-webkit-progress-value { border-radius: 1rem; background: #3289d0; }
.portal-annual-progress progress::-moz-progress-bar { border-radius: 1rem; background: #3289d0; }
.portal-annual-progress small, .portal-annual-updated small { display: block; color: #7891a5; font-size: .69rem; line-height: 1.45; }
.portal-annual-updated { display: grid; gap: .25rem; margin-top: 1.15rem; }
.portal-annual-updated strong { color: #173d5b; font-size: .91rem; }
.portal-annual-detail-link { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; color: #1672b2; font-size: .83rem; font-weight: 750; text-decoration: none; }
.portal-annual-detail-link:hover, .portal-annual-history-row a:hover { text-decoration: underline; }
.portal-annual-lower { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.portal-annual-lower--single, .portal-annual-lower.is-detailed { grid-template-columns: minmax(0,1fr); }
.portal-annual-lower > .portal-annual-section { min-width: 0; margin-top: 0; padding: 1.1rem; border: 1px solid #dfeaf3; border-radius: .85rem; background: #fff; box-shadow: 0 8px 24px rgba(19,64,99,.025); }
.portal-annual-lower > .portal-annual-empty { min-width: 0; }
.portal-annual-section { margin-top: 2.5rem; scroll-margin-top: 2rem; }
.portal-annual-section-heading .portal-eyebrow { margin: 0 0 .45rem; }
.portal-annual-section-heading h1, .portal-annual-section-heading h2 { margin: 0; color: #0b2745; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.035em; }
.portal-annual-section-heading > p:last-child { margin: .45rem 0 1rem; color: #678096; font-size: .83rem; line-height: 1.5; }
.portal-annual-section-heading--with-action { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-annual-section-heading--with-action > div > p:last-child { margin: .45rem 0 0; color: #678096; font-size: .83rem; line-height: 1.5; }
.portal-annual-toggle { flex: none; min-height: 2.5rem; padding: .5rem .85rem; border: 1px solid #bfdaf0; border-radius: .6rem; background: #edf6fd; color: #17699f; font: inherit; font-size: .78rem; font-weight: 750; cursor: pointer; }
.portal-annual-toggle:hover, .portal-annual-toggle[aria-pressed="true"] { border-color: #91c5e9; background: #dfeffc; }
.portal-annual-toggle:focus-visible { outline: 2px solid #3289d0; outline-offset: 2px; }
.portal-annual-breakdown, .portal-annual-history-list, .portal-annual-history-breakdown { overflow: hidden; border: 1px solid #dfeaf3; border-radius: .9rem; background: #fff; box-shadow: 0 8px 24px rgba(19,64,99,.025); }
.portal-annual-lower .portal-annual-breakdown, .portal-annual-lower .portal-annual-history-list { border-radius: .55rem; box-shadow: none; }
.portal-annual-breakdown-head, .portal-annual-breakdown-row, .portal-annual-breakdown-total { display: grid; grid-template-columns: minmax(8rem,1.1fr) repeat(2,minmax(10rem,1fr)); align-items: center; gap: 1rem; padding: .8rem 1.25rem; }
.portal-annual-lower:not(.is-detailed) .portal-annual-breakdown-head, .portal-annual-lower:not(.is-detailed) .portal-annual-breakdown-row, .portal-annual-lower:not(.is-detailed) .portal-annual-breakdown-total { grid-template-columns: minmax(6rem,1fr) minmax(7rem,1fr) minmax(7rem,1fr); gap: .45rem; padding: .65rem .7rem; }
.portal-annual-breakdown.is-detailed .portal-annual-breakdown-head, .portal-annual-breakdown.is-detailed .portal-annual-breakdown-row, .portal-annual-breakdown.is-detailed .portal-annual-breakdown-total { grid-template-columns: minmax(7rem,1.1fr) repeat(4,minmax(6rem,1fr)); gap: .65rem; }
.portal-annual-breakdown.is-detailed.has-maternity-ccss .portal-annual-breakdown-head, .portal-annual-breakdown.is-detailed.has-maternity-ccss .portal-annual-breakdown-row, .portal-annual-breakdown.is-detailed.has-maternity-ccss .portal-annual-breakdown-total { grid-template-columns: minmax(7rem,1.1fr) repeat(5,minmax(5.5rem,1fr)); }
.portal-annual-detail-col, .portal-annual-breakdown.is-detailed .portal-annual-summary-col { display: none; }
.portal-annual-breakdown.is-detailed .portal-annual-detail-col { display: block; }
.portal-annual-breakdown-head { color: #8195a5; font-size: .71rem; font-weight: 750; }
.portal-annual-breakdown-head span:not(:first-child) { text-align: right; }
.portal-annual-breakdown-row { min-height: 3.3rem; border-top: 1px solid #edf3f7; color: #294e6b; font-size: .84rem; }
.portal-annual-breakdown-row strong { color: #163c5b; font-weight: 700; }
.portal-annual-breakdown-row span, .portal-annual-breakdown-total span { text-align: right; font-variant-numeric: tabular-nums; }
.portal-annual-breakdown-row small, .portal-annual-breakdown-total small { display: none; }
.portal-annual-breakdown-total { border-top: 1px solid #dce9f2; background: #f4f9fd; color: #0d3555; font-size: .89rem; font-weight: 760; }
.portal-annual-rounding { margin: .65rem 0 0; color: #7b91a2; font-size: .75rem; line-height: 1.5; }
.portal-annual-empty { display: flex; align-items: flex-start; gap: 1.25rem; padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid #dceaf4; border-radius: 1rem; background: #fff; }
.portal-annual-empty-icon { display: grid; place-items: center; flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #e8f3fc; color: #3e83b8; }
.portal-annual-empty-icon svg { width: 1.8rem; height: 1.8rem; }
.portal-annual-empty h2 { margin: .15rem 0 .45rem; color: #113a59; font-size: 1.3rem; }
.portal-annual-empty p:not(.portal-eyebrow) { margin: 0 0 1rem; color: #6d859a; font-size: .86rem; line-height: 1.5; }
.portal-annual-empty small { color: #66849b; }
.portal-annual-history-head, .portal-annual-history-row { display: grid; grid-template-columns: 3rem minmax(0,1fr) auto; align-items: center; gap: .35rem .6rem; padding: .7rem .75rem; }
.portal-annual-history-head { color: #8095a6; font-size: .69rem; font-weight: 750; }
.portal-annual-history-head span:last-child { text-align: right; }
.portal-annual-history-row { border-top: 1px solid #edf3f7; }
.portal-annual-history-year { color: #2b78b0; font-size: .78rem; font-weight: 780; }
.portal-annual-history-period { display: grid; gap: .3rem; min-width: 0; }
.portal-annual-history-period > strong { color: #315a78; font-size: .69rem; font-weight: 620; }
.portal-annual-history-period > small { justify-self: start; padding: .15rem .4rem; border-radius: 1rem; background: #e8f5f4; color: #217768; font-size: .62rem; font-weight: 700; }
.portal-annual-history-amount { color: #103957; font-size: .83rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.portal-annual-history-row a { grid-column: 3; justify-self: end; color: #1876b7; font-size: .72rem; font-weight: 740; text-decoration: none; white-space: nowrap; }
.portal-annual-history-detail .portal-annual-section-heading h1 { font-size: clamp(2rem,4vw,3rem); }
.portal-annual-history-summary { display: grid; gap: .4rem; padding: 1.8rem 2rem; border: 1px solid #dceaf4; border-radius: 1rem; background: linear-gradient(135deg,#fff,#eff7fd); }
.portal-annual-history-summary > span { color: #567c9a; font-size: .8rem; font-weight: 700; }
.portal-annual-history-summary strong { color: #0b2745; font-size: clamp(2.5rem,5vw,4rem); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.portal-annual-history-summary small { color: #67869d; }
.portal-annual-history-breakdown { margin: 0; }
.portal-annual-history-breakdown > div { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; color: #315b79; font-size: .85rem; }
.portal-annual-history-breakdown > div + div { border-top: 1px solid #edf3f7; }
.portal-annual-history-breakdown dd { margin: 0; color: #153c5a; font-weight: 730; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portal-annual-history-breakdown .portal-annual-history-final { background: #f1f8fd; font-weight: 760; }
.portal-annual-pdf-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.8rem; margin-top: 1.1rem; padding: .5rem 1rem; border-radius: .6rem; background: #123e60; color: #fff; font-size: .82rem; font-weight: 730; text-decoration: none; }
.portal-annual-pdf-link:hover { background: #205a82; }
.portal-docs-bonus-value--empty { font-size: 1.25rem !important; letter-spacing: -.02em; }
@media (max-width: 850px) {
  .portal-annual-lower { grid-template-columns: minmax(0,1fr); }
  .portal-annual-card { grid-template-columns: 1fr; }
  .portal-annual-card-aside { border-top: 1px solid #e1edf5; border-left: 0; }
  .portal-annual-card-aside { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; }
  .portal-annual-aside-title { grid-column: 1 / -1; margin-bottom: .7rem; }
  .portal-annual-detail-link { grid-column: 1 / -1; padding-top: .6rem; }
}
@media (max-width: 640px) {
  .portal-annual-hero { min-height: auto; margin-bottom: 1rem; }
  .portal-annual-card-main, .portal-annual-card-aside { padding: 1.2rem; }
  .portal-annual-card-aside { display: flex; gap: 0; }
  .portal-annual-aside-title { margin-bottom: 1rem; }
  .portal-annual-amount { font-size: clamp(2.4rem,11vw,3.4rem); }
  .portal-annual-period { margin-top: 1.65rem; }
  .portal-annual-period strong { font-size: .82rem; }
  .portal-annual-detail-link { min-height: 2.6rem; align-items: center; padding-top: .6rem; }
  .portal-annual-section { margin-top: 2rem; }
  .portal-annual-lower > .portal-annual-section { padding: .9rem; }
  .portal-annual-section-heading--with-action { align-items: flex-start; flex-wrap: wrap; }
  .portal-annual-breakdown-head { display: none; }
  .portal-annual-breakdown-row, .portal-annual-breakdown-total { grid-template-columns: minmax(0,1fr) auto; gap: .45rem 1rem; padding: .8rem 1rem; }
  .portal-annual-lower:not(.is-detailed) .portal-annual-breakdown-row, .portal-annual-lower:not(.is-detailed) .portal-annual-breakdown-total { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-annual-breakdown.is-detailed .portal-annual-breakdown-row, .portal-annual-breakdown.is-detailed .portal-annual-breakdown-total { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .portal-annual-breakdown.is-detailed.has-maternity-ccss .portal-annual-breakdown-row, .portal-annual-breakdown.is-detailed.has-maternity-ccss .portal-annual-breakdown-total { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-annual-breakdown-row > strong, .portal-annual-breakdown-total > strong { grid-column: 1 / -1; }
  .portal-annual-breakdown-row span, .portal-annual-breakdown-total span { text-align: left; font-size: .78rem; }
  .portal-annual-breakdown-row > span:nth-child(3), .portal-annual-breakdown-total > span:nth-child(3) { text-align: right; }
  .portal-annual-breakdown.is-detailed .portal-annual-detail-col { text-align: left; }
  .portal-annual-breakdown-row small, .portal-annual-breakdown-total small { display: block; margin-bottom: .2rem; color: #7c92a3; font-size: .64rem; font-weight: 500; }
  .portal-annual-history-row { grid-template-columns: 2.7rem minmax(0,1fr) auto; gap: .35rem; }
  .portal-annual-history-head { display: none; }
  .portal-annual-history-row a { min-height: 2rem; display: inline-flex; align-items: center; }
  .portal-annual-empty { gap: .8rem; padding: 1.2rem; }
  .portal-annual-empty-icon { width: 2.7rem; height: 2.7rem; }
  .portal-annual-history-breakdown > div { padding: .8rem 1rem; }
}

/* Private employee document library. */
.portal-other-documents-page { overflow-x: hidden; }
.portal-other-documents-page .portal-shell,
.portal-other-documents-page .portal-main,
.portal-other-layout { min-width: 0; max-width: 100%; }
.portal-other-layout { width: min(100%, 68rem); }
.portal-other-hero { min-height: 10rem; margin-bottom: 1.25rem; }
.portal-other-hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.portal-other-hero .portal-docs-hero-art svg { width: 3.8rem; height: 3.8rem; }
.portal-other-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.portal-other-stats > div { display: flex; align-items: center; gap: .8rem; min-width: 0; min-height: 5.4rem; padding: 1rem 1.1rem; border: 1px solid #dfeaf3; border-radius: .8rem; background: #fff; }
.portal-other-stats > div > span:last-child { display: grid; gap: .15rem; color: #6d879b; font-size: .75rem; }
.portal-other-stats strong { color: #0d3455; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.portal-other-stat-icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #e6f2fd; color: #2580c2; }
.portal-other-stat-icon--contract { background: #e5f5f1; color: #218476; }
.portal-other-stat-icon--certificate { background: #ecf0fc; color: #536fac; }
.portal-other-stat-icon svg { width: 1.45rem; height: 1.45rem; }
.portal-other-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.portal-other-categories { display: flex; gap: .15rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.portal-other-categories a { display: inline-flex; gap: .3rem; align-items: center; flex: none; min-height: 2.8rem; padding: .55rem .8rem; border-bottom: 2px solid transparent; color: #54748f; font-size: .78rem; font-weight: 680; text-decoration: none; }
.portal-other-categories a:hover,.portal-other-categories a.is-active { color: #0871bd; }
.portal-other-categories a.is-active { border-bottom-color: #1683d4; }
.portal-other-categories a span { color: #8aa0b0; font-size: .7rem; }
.portal-other-search { display: flex; align-items: center; gap: .4rem; flex: 0 0 17rem; min-height: 2.35rem; margin-bottom: .25rem; padding: .2rem .3rem .2rem .6rem; border: 1px solid #dce8f1; border-radius: .65rem; background: #fff; }
.portal-other-search svg { flex: none; width: 1rem; height: 1rem; color: #7d98ad; }
.portal-other-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #183d5c; font: inherit; font-size: .75rem; }
.portal-other-search button { flex: none; min-height: 1.8rem; padding: .25rem .55rem; border: 0; border-radius: .4rem; background: #e8f3fc; color: #176b9f; font: inherit; font-size: .7rem; font-weight: 740; cursor: pointer; }
.portal-other-search:focus-within { outline: 2px solid #93c7eb; }
.portal-other-list { overflow: visible; border: 1px solid #e0eaf3; border-radius: .8rem; background: #fff; }
.portal-other-row { display: grid; grid-template-columns: 2.3rem minmax(0,1.5fr) minmax(5rem,.7fr) minmax(6rem,.65fr) 3.8rem 1.75rem; align-items: center; gap: .7rem; min-height: 4.25rem; padding: .65rem .9rem; }
.portal-other-row + .portal-other-row { border-top: 1px solid #edf2f6; }
.portal-other-row-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #e7f3fb; color: #2180bd; }
.portal-other-row-icon--pdf { background: #fcebef; color: #b64962; }
.portal-other-row-icon svg { width: 1.25rem; height: 1.25rem; }
.portal-other-row-name { min-width: 0; }
.portal-other-row-name a { display: block; overflow: hidden; color: #123a59; font-size: .82rem; font-weight: 740; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.portal-other-row-name a:hover { text-decoration: underline; }
.portal-other-row-name small { display: block; overflow: hidden; margin-top: .2rem; color: #7b92a5; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.portal-other-row-category { justify-self: start; padding: .25rem .55rem; border-radius: 1rem; background: #eaf4fc; color: #2772a7; font-size: .69rem; font-weight: 700; }
.portal-other-row-meta { display: grid; gap: .2rem; color: #53718c; font-size: .73rem; }
.portal-other-row-meta small { color: #8a9fae; font-size: .68rem; }
.portal-other-row-view { display: inline-flex; justify-content: center; align-items: center; gap: .2rem; min-height: 2rem; border-radius: 2rem; background: #eaf4fc; color: #176fa8; font-size: .73rem; font-weight: 750; text-decoration: none; }
.portal-other-row-view:hover { background: #dceefd; }
.portal-other-row-menu { position: relative; }
.portal-other-row-menu summary { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .4rem; color: #527994; font-size: 1.25rem; line-height: 1; cursor: pointer; list-style: none; }
.portal-other-row-menu summary::-webkit-details-marker { display: none; }
.portal-other-row-menu summary:hover { background: #edf5fa; }
.portal-other-row-menu > div { position: absolute; z-index: 3; right: 0; top: 100%; display: grid; min-width: 10rem; padding: .35rem; border: 1px solid #dbe8f1; border-radius: .6rem; background: #fff; box-shadow: 0 12px 25px rgba(14,55,83,.13); }
.portal-other-row-menu a { padding: .5rem .6rem; border-radius: .35rem; color: #285778; font-size: .75rem; text-decoration: none; }
.portal-other-row-menu a:hover { background: #edf6fc; }
.portal-other-pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.2rem 0; color: #71899c; font-size: .76rem; }
.portal-other-pagination a { color: #176fa8; font-weight: 700; text-decoration: none; }
.portal-other-empty { max-width: 34rem; margin: 1.5rem auto 0; text-align: center; }
.portal-other-empty p { margin-inline: auto; }
.portal-other-detail-header { margin-bottom: 1.3rem; }
.portal-other-detail-header h1 { margin: 0; color: #0b2745; font-size: clamp(2rem,3.8vw,2.9rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.portal-other-detail-header > p:last-child { margin: .5rem 0 0; color: #648098; font-size: .86rem; }
.portal-other-detail-grid { display: grid; grid-template-columns: minmax(14rem,.8fr) minmax(0,1.2fr); gap: .9rem; align-items: start; }
.portal-other-info,.portal-other-preview { min-width: 0; border: 1px solid #e0eaf3; border-radius: .85rem; background: #fff; }
.portal-other-info { padding: 1.2rem; }
.portal-other-info h2,.portal-other-preview h2 { margin: 0; color: #123958; font-size: .94rem; }
.portal-other-info dl { margin: .8rem 0 0; }
.portal-other-info dl > div { padding: .72rem 0; border-top: 1px solid #edf2f6; }
.portal-other-info dt { color: #7f95a5; font-size: .71rem; }
.portal-other-info dd { margin: .22rem 0 0; color: #173f5d; font-size: .83rem; font-weight: 670; overflow-wrap: anywhere; }
.portal-other-preview { padding: .7rem; }
.portal-other-preview h2 { padding: .45rem .45rem .75rem; }
.portal-other-preview iframe { display: block; width: 100%; height: min(67vh,43rem); border: 0; border-radius: .45rem; background: #e8eef3; }
.portal-other-preview-fallback { display: grid; place-items: center; min-height: 20rem; padding: 1.5rem; border-radius: .45rem; background: #f4f8fc; color: #254e6d; text-align: center; }
.portal-other-preview-fallback > span { font-size: 2rem; color: #75a4c6; }
.portal-other-preview-fallback strong { font-size: .9rem; }
.portal-other-preview-fallback p { max-width: 20rem; margin: .35rem 0 0; color: #7990a2; font-size: .78rem; }
.portal-other-detail-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin-top: .9rem; }
.portal-other-detail-actions a { display: inline-flex; justify-content: center; align-items: center; min-height: 2.8rem; padding: .5rem .8rem; border: 1px solid #a8cce7; border-radius: .6rem; color: #236b9e; font-size: .8rem; font-weight: 740; text-decoration: none; }
.portal-other-detail-actions .portal-other-download { border-color: #123e60; background: #123e60; color: #fff; }
.portal-other-detail-actions a:hover { box-shadow: 0 5px 15px rgba(14,55,83,.1); }
.portal-other-layout .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:850px) {
  .portal-other-toolbar { flex-wrap: wrap; }
  .portal-other-categories { width: 100%; }
  .portal-other-search { flex: 1 1 100%; }
  .portal-other-row { grid-template-columns: 2.2rem minmax(0,1.5fr) minmax(5rem,.6fr) minmax(5rem,.65fr) 3.5rem 1.75rem; gap: .45rem; }
  .portal-other-detail-grid { grid-template-columns: 1fr; }
  .portal-other-preview iframe { height: min(60vh,38rem); }
}
@media(max-width:640px) {
  .portal-other-hero { min-height: auto; }
  .portal-other-stats { gap: .35rem; }
  .portal-other-stats > div { flex-direction: column; align-items: flex-start; gap: .25rem; min-height: 5.2rem; padding: .65rem; }
  .portal-other-stat-icon { width: 1.7rem; height: 1.7rem; }
  .portal-other-stat-icon svg { width: 1rem; height: 1rem; }
  .portal-other-stats > div > span:last-child { font-size: .62rem; }
  .portal-other-stats strong { font-size: 1.25rem; }
  .portal-other-toolbar { gap: .45rem; margin-top: 1rem; }
  .portal-other-search { order: -1; }
  .portal-other-categories a { min-height: 2.7rem; padding: .5rem .65rem; }
  .portal-other-list { border-radius: .7rem; }
  .portal-other-row { grid-template-columns: 2.2rem minmax(0,1fr) auto; gap: .15rem .6rem; min-height: 5.2rem; padding: .75rem; }
  .portal-other-row-icon { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .portal-other-row-name { grid-column: 2; grid-row: 1; }
  .portal-other-row-name a { white-space: normal; }
  .portal-other-row-name small { white-space: normal; }
  .portal-other-row-category { grid-column: 2; grid-row: 2; padding: 0; background: none; font-size: .68rem; }
  .portal-other-row-meta { grid-column: 2; grid-row: 3; display: flex; gap: .4rem; font-size: .67rem; }
  .portal-other-row-view { grid-column: 3; grid-row: 1 / 4; width: 2rem; height: 2rem; background: transparent; }
  .portal-other-row-view > span { font-size: 1.1rem; }
  .portal-other-row-view { font-size: 0; }
  .portal-other-row-menu { display: none; }
  .portal-other-detail-header h1 { font-size: 1.8rem; }
  .portal-other-info { padding: .9rem; }
  .portal-other-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .75rem; }
  .portal-other-info dl > div { min-width: 0; padding: .55rem 0; }
  .portal-other-info dl > div:nth-child(3) { grid-column: 1 / -1; }
  .portal-other-preview iframe { height: min(48vh, 28rem); }
  .portal-other-detail-actions { grid-template-columns: 1fr; }
}

/* Employee home: a compact personal summary using the portal's existing palette. */
.portal-home-page .portal-app-main { padding-top: clamp(2rem, 4vw, 3rem); }
.portal-home-dashboard { width: min(100%, 68rem); }
.portal-home-dashboard .portal-home-intro { min-height: 0; padding: .2rem 0 1.75rem; }
.portal-home-dashboard .portal-home-intro::before { content: ""; position: absolute; right: 5%; top: 0; width: 25%; height: 9rem; background: #edf6fd; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .6; pointer-events: none; }
.portal-home-dashboard .portal-home-intro::after { content: ""; display: block; position: absolute; right: 0; top: 3rem; width: 20%; height: 6rem; border: 0; border-radius: 0; background: #eaf4fb; clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .55; pointer-events: none; }
.portal-home-dashboard .portal-home-intro > * { position: relative; }
.portal-home-dashboard h1 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: clamp(2.1rem, 3.5vw, 3rem); }
.portal-home-dashboard .portal-intro { max-width: 35rem; margin-top: .55rem; font-size: .94rem; }
.portal-home-dashboard .portal-eyebrow { color: #316b9e; }
.portal-home-dashboard .portal-greeting-icon { display: inline-flex; flex: none; width: clamp(2.6rem, 3.4vw, 3rem); height: clamp(2.6rem, 3.4vw, 3rem); margin: 0; vertical-align: 0; color: #e8bd3e; transform: translateY(.08rem); }
.portal-home-dashboard .portal-greeting-icon svg { width: 100%; height: 100%; }
.portal-home-dashboard .portal-greeting-icon--afternoon { color: #efbd45; }
.portal-home-dashboard .portal-greeting-icon--night { color: #587aa2; }
.portal-home-summary > .portal-eyebrow { margin: 0 0 .65rem; }
.portal-home-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #d9e8f3; border-radius: .8rem; background: #fff; box-shadow: 0 8px 24px rgba(12, 48, 75, .035); }
.portal-home-summary-card { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 12rem; }
.portal-home-summary-card + .portal-home-summary-card { border-left: 1px solid #e3edf5; }
.portal-home-summary-main { display: flex; align-items: flex-start; gap: .85rem; padding: 1.2rem 1.15rem .9rem; }
.portal-home-summary-icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #e7f3fd; color: #137ccb; }
.portal-home-summary-card--bonus .portal-home-summary-icon { background: #def6f0; color: #149488; }
.portal-home-summary-card--loans .portal-home-summary-icon { background: #eeedfc; color: #645bd0; }
.portal-home-summary-icon svg { width: 1.45rem; height: 1.45rem; }
.portal-home-summary-copy { display: grid; align-content: start; gap: .2rem; min-width: 0; }
.portal-home-summary-copy h3 { margin: .15rem 0 0; color: #0b2745; font-size: .93rem; line-height: 1.25; }
.portal-home-summary-copy p { margin: .1rem 0 0; color: #64809a; font-size: .76rem; }
.portal-home-summary-copy .portal-home-summary-value { display: block; margin-top: .25rem; color: #0a2d50; font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.portal-home-summary-copy small { margin-top: .35rem; color: #617f99; font-size: .71rem; line-height: 1.3; }
.portal-home-summary-copy .portal-home-salary-coverage { color: #264e70; font-weight: 600; overflow-wrap: anywhere; }
.portal-home-summary-copy .portal-home-summary-empty { margin-top: .75rem; color: #355a78; font-size: .84rem; line-height: 1.4; }
.portal-home-summary-card > a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 2.6rem; padding: .65rem 1.15rem; border-top: 1px solid #e8f0f6; color: #0b72bc; font-size: .77rem; font-weight: 740; text-decoration: none; transition: background .18s ease; }
.portal-home-summary-card > a:hover { background: #f0f8fe; }
.portal-home-summary-card > a:focus-visible,.portal-home-action:focus-visible,.portal-home-activity-row[href]:focus-visible { outline: 3px solid #7faed5; outline-offset: -3px; }
.portal-home-summary-card > a span { font-size: 1.05rem; }
.portal-home-actions,.portal-home-activity { margin-top: 1.85rem; }
.portal-home-actions h2,.portal-home-activity h2 { margin: 0 0 .7rem; color: #0b2745; font-size: 1.1rem; font-weight: 750; letter-spacing: -.025em; }
.portal-home-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.portal-home-action { display: grid; grid-template-columns: 2.8rem minmax(0,1fr) 1.9rem; align-items: center; gap: .9rem; min-height: 5.5rem; padding: .9rem 1rem; border: 1px solid #d9e8f3; border-radius: .8rem; background: #fff; color: #0b2745; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.portal-home-action:hover { border-color: #a6cae4; box-shadow: 0 8px 20px rgba(12,48,75,.06); transform: translateY(-2px); }
.portal-home-action-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: #e7f3fd; color: #177abd; }
.portal-home-action:nth-child(2) .portal-home-action-icon { background: #dff7f2; color: #159487; }
.portal-home-action-icon svg { width: 1.5rem; height: 1.5rem; }
.portal-home-action strong,.portal-home-action small { display: block; }
.portal-home-action strong { font-size: .95rem; }
.portal-home-action small { margin-top: .2rem; color: #64809a; font-size: .76rem; line-height: 1.35; }
.portal-home-action-arrow { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #e8f4fc; color: #167ac3; font-size: 1.1rem; }
.portal-home-activity-list { overflow: hidden; border: 1px solid #d9e8f3; border-radius: .8rem; background: #fff; }
.portal-home-activity-row { display: grid; grid-template-columns: 2.1rem minmax(0,1fr) auto 1rem; align-items: center; gap: .8rem; min-height: 4rem; padding: .65rem 1rem; color: #0b2745; text-decoration: none; }
.portal-home-activity-row + .portal-home-activity-row { border-top: 1px solid #e9f0f6; }
.portal-home-activity-row[href]:hover { background: #f6fafe; }
.portal-home-activity-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #e7f3fd; color: #177abd; font-size: 1.2rem; }
.portal-home-activity-icon--vacation { background: #ddf5eb; color: #138c67; }
.portal-home-activity-copy strong,.portal-home-activity-copy small { display: block; }
.portal-home-activity-copy strong { font-size: .8rem; }
.portal-home-activity-copy small { margin-top: .2rem; color: #64809a; font-size: .74rem; }
.portal-home-activity-row time { color: #6e88a0; font-size: .73rem; white-space: nowrap; }
.portal-home-activity-arrow { color: #127bcc; font-size: 1.15rem; }
.portal-home-activity-empty { margin: .3rem 0 0; padding: .9rem 0; border-top: 1px solid #d9e8f3; color: #71889d; font-size: .81rem; }
@media(max-width:850px) {
  .portal-home-summary-grid { grid-template-columns: 1fr 1fr; }
  .portal-home-summary-card--pay { grid-column: 1 / -1; min-height: 0; }
  .portal-home-summary-card--bonus { border-left: 0 !important; border-top: 1px solid #e3edf5; }
  .portal-home-summary-card--loans { border-top: 1px solid #e3edf5; }
  .portal-home-summary-card { min-height: 10.5rem; }
}
@media(max-width:640px) {
  .portal-home-dashboard .portal-home-intro { padding-bottom: 1.35rem; padding-right: 0; }
  .portal-home-dashboard .portal-home-intro::before,.portal-home-dashboard .portal-home-intro::after { display: none; }
  .portal-home-dashboard h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .portal-home-dashboard .portal-greeting-icon { width: 2.15rem; height: 2.15rem; }
  .portal-home-dashboard .portal-intro { font-size: .84rem; line-height: 1.45; }
  .portal-home-summary-card { min-height: 10rem; }
  .portal-home-summary-card--pay { min-height: 9rem; }
  .portal-home-summary-main { gap: .6rem; padding: .9rem .75rem; }
  .portal-home-summary-icon { width: 2.15rem; height: 2.15rem; }
  .portal-home-summary-icon svg { width: 1.2rem; height: 1.2rem; }
  .portal-home-summary-copy h3 { font-size: .77rem; }
  .portal-home-summary-copy p,.portal-home-summary-copy small { font-size: .65rem; }
  .portal-home-summary-copy .portal-home-summary-value { font-size: clamp(.96rem, 4.2vw, 1.3rem); }
  .portal-home-summary-copy .portal-home-summary-empty { font-size: .72rem; }
  .portal-home-summary-card > a { padding: .55rem .75rem; font-size: .71rem; }
  .portal-home-action-grid { grid-template-columns: 1fr; gap: .55rem; }
  .portal-home-action { min-height: 4.6rem; }
  .portal-home-actions,.portal-home-activity { margin-top: 1.45rem; }
  .portal-home-activity-row { grid-template-columns: 2rem minmax(0,1fr) 1rem; gap: .55rem; padding: .6rem .7rem; }
  .portal-home-activity-row time { grid-column: 2; grid-row: 2; margin-top: -.4rem; font-size: .66rem; }
  .portal-home-activity-arrow { grid-column: 3; grid-row: 1 / 3; }
}

.portal-home-dashboard .portal-home-employer { color: #6689a5; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.portal-company-choice { width: min(100%, 42rem); margin-inline: auto; }
.portal-company-choice h1 { margin: 0; color: #0b2745; font-size: clamp(2rem, 4vw, 2.7rem); letter-spacing: -.04em; }
.portal-company-choice > p:not(.portal-eyebrow) { max-width: 34rem; margin: .55rem 0 1.5rem; color: #607b91; font-size: .9rem; line-height: 1.5; }
.portal-company-choice-list { display: grid; gap: .65rem; }
.portal-company-choice-list form { margin: 0; }
.portal-company-choice-list button { display: grid; grid-template-columns: 2.6rem minmax(0,1fr) auto; align-items: center; gap: .85rem; width: 100%; min-height: 5rem; padding: .8rem 1rem; border: 1px solid #d9e8f3; border-radius: .8rem; background: #fff; color: #0b2745; font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease; }
.portal-company-choice-list button:hover { border-color: #8ec3e5; box-shadow: 0 8px 20px rgba(12,48,75,.06); }
.portal-company-choice-list button:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
.portal-company-choice-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #e8f4fc; color: #177abd; font-weight: 800; }
.portal-company-choice-list strong,.portal-company-choice-list small { display: block; }
.portal-company-choice-list strong { font-size: .94rem; }
.portal-company-choice-list small { margin-top: .2rem; color: #6c879d; font-size: .74rem; }
.portal-company-choice-list button > span:last-child { color: #1479be; font-size: 1.2rem; }
.portal-header-actions { display: flex; align-items: center; gap: .7rem; min-width: 0; }
@media(max-width:850px) {
  .portal-header-actions { gap: .4rem; }
}
@media(max-width:640px) {
  .portal-app-page .portal-header-inner { gap: .35rem; }
  .portal-company-choice { padding-top: .3rem; }
  .portal-company-choice-list button { min-height: 4.6rem; padding: .7rem; gap: .65rem; }
  .portal-company-choice-list small { font-size: .7rem; }
}
.portal-documents-page .portal-docs-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-documents-page .portal-docs-link--reductions .portal-docs-link-icon { background: #fff0e5; color: #a75a23; }
.portal-reductions-overview { display: flex; align-items: center; gap: .85rem; margin: .2rem 0 1.2rem; padding: 1rem 1.25rem; border: 1px solid #dceaf5; border-radius: .85rem; background: #fff; }
.portal-reductions-overview-icon { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; background: #fff0e5; color: #a75a23; }
.portal-reductions-overview-icon svg { width: 1.35rem; height: 1.35rem; }
.portal-reductions-overview > div { display: grid; gap: .12rem; }
.portal-reductions-overview > div span { color: #71869a; font-size: .72rem; }
.portal-reductions-overview > div strong { color: #0b2745; font-size: 1.35rem; line-height: 1.1; }
.portal-reductions-overview > small { margin-left: auto; color: #71869a; font-size: .74rem; }
.portal-reductions-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 .85rem; }
.portal-reductions-tabs { display: flex; align-items: center; gap: .2rem; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.portal-reductions-tabs a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.65rem; padding: .55rem .75rem; border-bottom: 2px solid transparent; color: #587897; font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.portal-reductions-tabs a span { display: grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .25rem; border-radius: 2rem; background: #edf4fa; color: #52718e; font-size: .65rem; }
.portal-reductions-tabs a:hover, .portal-reductions-tabs a.is-active { border-color: #2484c7; color: #176ca9; }
.portal-reductions-tabs a.is-active span { background: #e1f1fc; color: #176ca9; }
.portal-reductions-search { display: flex; align-items: center; gap: .5rem; min-height: 2.65rem; padding: .25rem .35rem .25rem .65rem; border: 1px solid #d9e5ef; border-radius: .7rem; background: #fff; }
.portal-reductions-search svg { flex: none; width: 1rem; height: 1rem; color: #71869a; }
.portal-reductions-search input { width: min(14rem, 24vw); min-width: 5rem; border: 0; outline: 0; background: transparent; color: #173755; font-size: .75rem; }
.portal-reductions-search button { min-height: 2rem; padding: .3rem .65rem; border: 0; border-radius: .5rem; background: #0c3157; color: #fff; font-size: .7rem; font-weight: 700; }
.portal-reductions-list { display: grid; gap: .65rem; }
.portal-reduction-card { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) minmax(16rem, auto); align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid #dfebf4; border-radius: .85rem; background: #fff; box-shadow: 0 6px 20px rgba(11,39,69,.025); }
.portal-reduction-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .75rem; background: #eaf3fb; color: #315d83; }
.portal-reduction-icon svg { width: 1.25rem; height: 1.25rem; }
.portal-reduction-icon--embargo { background: #fff0e5; color: #a75a23; }
.portal-reduction-icon--pension { background: #e5f6f0; color: #19775b; }
.portal-reduction-icon--otro { background: #eeedfb; color: #5e5ca1; }
.portal-reduction-main { min-width: 0; }
.portal-reduction-title { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: #6c8499; font-size: .66rem; font-weight: 700; }
.portal-reduction-status { padding: .2rem .5rem; border-radius: 2rem; background: #e0f4ea; color: #18734f; font-size: .63rem; }
.portal-reduction-status--suspendida { background: #fff2d9; color: #916218; }
.portal-reduction-status--finalizada { background: #edf1f5; color: #62788b; }
.portal-reduction-main h2 { margin: .2rem 0; color: #0b2745; font-size: .94rem; line-height: 1.3; }
.portal-reduction-main p, .portal-reduction-main small { display: block; margin: .1rem 0 0; color: #71869a; font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.portal-reduction-amounts { display: grid; grid-template-columns: repeat(2, minmax(7rem, 1fr)); gap: .75rem; margin: 0; }
.portal-reduction-amounts div { display: grid; gap: .2rem; }
.portal-reduction-amounts dt { color: #71869a; font-size: .66rem; }
.portal-reduction-amounts dd { margin: 0; color: #0b2745; font-size: .86rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.portal-reductions-note { margin: .7rem 0 0; color: #71869a; font-size: .69rem; }
.portal-reductions-empty { margin-top: .5rem; }
.portal-reductions-empty > span { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: .6rem; border-radius: .9rem; background: #fff0e5; color: #a75a23; }
.portal-reductions-empty svg { width: 2rem; height: 2rem; }
.portal-reduction-account-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .45rem; color: #1e6c9f; font-size: .72rem; font-weight: 750; text-decoration: none; }
.portal-reduction-account-link:hover { color: #0b4773; text-decoration: underline; }
.portal-reduction-statement-summary { margin-bottom: 2rem; }
.portal-reduction-statement-status { display: inline-flex; align-items: center; padding: .25rem .55rem; border-radius: 2rem; background: #e0f4ea; color: #18734f; font-size: .74rem; font-weight: 750; }
.portal-reduction-statement-status--neutral { background: #edf1f5; color: #62788b; }
.portal-reduction-statement-status--active { background: #fff2d9; color: #916218; }
.portal-reduction-ledger .portal-loan-ledger-head,
.portal-reduction-ledger .portal-reduction-movement { grid-template-columns: 7rem minmax(0, 1fr) 10rem; }
.portal-reduction-ledger--balance .portal-loan-ledger-head,
.portal-reduction-ledger--balance .portal-reduction-movement { grid-template-columns: 7rem minmax(0, 1fr) 9rem 9rem; }
.portal-reduction-ledger .portal-loan-ledger-head span:nth-child(n+3) { text-align: right; }
.portal-reduction-movement-concept { display: grid !important; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .08rem .55rem !important; }
.portal-reduction-movement-concept .portal-loan-movement-icon { grid-column: 1; grid-row: 1 / 3; }
.portal-reduction-movement-concept strong,
.portal-reduction-movement-concept small { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.portal-reduction-movement-concept small { color: #71889c; font-size: .68rem; }
.portal-reduction-movement--opening .portal-loan-movement-icon { background: #e9f3fb; color: #2376ae; }
.portal-reduction-empty-movements { padding: 1.2rem; color: #71889c; font-size: .82rem; }
@media (max-width: 1050px) {
  .portal-reduction-ledger .portal-loan-ledger-head,
  .portal-reduction-ledger .portal-reduction-movement { grid-template-columns: 6rem minmax(0, 1fr) 7rem; gap: .5rem; }
  .portal-reduction-ledger--balance .portal-loan-ledger-head,
  .portal-reduction-ledger--balance .portal-reduction-movement { grid-template-columns: 6rem minmax(0, 1fr) 7rem 7rem; }
}
@media (max-width: 700px) {
  .portal-reduction-statement-summary { margin-bottom: 1.5rem; }
  .portal-reduction-ledger .portal-loan-ledger-head { display: none; }
  .portal-reduction-ledger .portal-reduction-movement,
  .portal-reduction-ledger--balance .portal-reduction-movement { grid-template-columns: minmax(0, 1fr) auto; gap: .24rem .6rem; padding: .8rem .9rem; }
  .portal-reduction-movement time { grid-column: 1; grid-row: 1; }
  .portal-reduction-movement-concept { grid-column: 1; grid-row: 2; }
  .portal-reduction-movement .portal-loan-movement-amount { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .portal-reduction-movement .portal-loan-movement-balance { grid-column: 1 / -1; grid-row: 3; margin-left: 1.8rem; text-align: left; }
}
@media (max-width: 1100px) {
  .portal-documents-page .portal-docs-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .portal-documents-page .portal-docs-links { grid-template-columns: 1fr; }
  .portal-reductions-overview { gap: .65rem; padding: .85rem; }
  .portal-reductions-overview > small { max-width: 8rem; text-align: right; font-size: .65rem; }
  .portal-reductions-toolbar { align-items: stretch; flex-direction: column; gap: .6rem; }
  .portal-reductions-tabs { margin: 0 -.2rem; }
  .portal-reductions-tabs a { padding-inline: .55rem; font-size: .72rem; }
  .portal-reductions-search input { width: auto; flex: 1; }
  .portal-reduction-card { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .6rem; padding: .85rem; }
  .portal-reduction-icon { width: 2.2rem; height: 2.2rem; }
  .portal-reduction-main h2 { font-size: .86rem; }
  .portal-reduction-amounts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .65rem; border-top: 1px solid #edf2f6; }
  .portal-reduction-amounts dd { font-size: .8rem; }
}

@media (max-width: 640px) {
  .portal-reductions-toolbar { min-width: 0; }
  .portal-reductions-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 0; overflow: visible; }
  .portal-reductions-tabs a { justify-content: center; flex-wrap: wrap; gap: .2rem; min-width: 0; padding: .45rem .12rem; font-size: .66rem; text-align: center; white-space: normal; }
  .portal-reductions-tabs a span { flex: none; min-width: 1.05rem; height: 1.05rem; font-size: .6rem; }
}

/* Mis documentos: one document per row, with the same markup at every width. */
.portal-sidebar { display: none; }

.portal-other-documents-page .portal-other-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: center; gap: .4rem 1.5rem; padding: 1.15rem 1.4rem; border: 1px solid #dfeaf3; border-radius: .8rem; background: #fff; }
.portal-other-documents-page .portal-shell { background: linear-gradient(145deg, #f8fbfe, #fff 48%, #f3f9fd); }
.portal-other-documents-page .portal-other-stats .portal-eyebrow { grid-column: 1 / -1; margin: 0; }
.portal-other-documents-page .portal-other-stats > div { flex-direction: row; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.portal-other-documents-page .portal-other-stat-total { display: flex; align-items: center; gap: .4rem; min-width: 0; color: #59748b; font-size: .91rem; }
.portal-other-documents-page .portal-other-stat-total strong { color: #0d3455; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.portal-other-documents-page .portal-other-stat-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; color: #59748b; font-size: .76rem; }
.portal-other-documents-page .portal-other-stat-details span { display: grid; gap: .2rem; padding-left: 1rem; border-left: 1px solid #e5edf4; }
.portal-other-documents-page .portal-other-stat-details strong { color: #0d3455; font-size: 1.3rem; }
.portal-other-documents-page .portal-other-toolbar { flex-direction: column; align-items: stretch; min-width: 0; gap: .55rem; }
.portal-other-documents-page .portal-other-categories { flex: 1 1 auto; min-width: 0; scrollbar-width: none; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.portal-other-documents-page .portal-other-categories::-webkit-scrollbar { display: none; }
.portal-other-documents-page .portal-other-search { flex: none; width: 100%; min-width: 0; min-height: 2.8rem; margin: 0; }
.portal-other-documents-page .portal-other-list { min-width: 0; overflow: hidden; }
.portal-other-documents-page .portal-other-list-head,
.portal-other-documents-page .portal-other-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1.6fr) minmax(5rem, .7fr) minmax(5.7rem, .55fr) minmax(7rem, .65fr); align-items: center; gap: .75rem; padding-inline: 1rem; }
.portal-other-documents-page .portal-other-list-head { min-height: 2.8rem; border-bottom: 1px solid #e5edf4; color: #54748f; font-size: .73rem; font-weight: 800; }
.portal-other-documents-page .portal-other-list-head span:first-child { grid-column: 2; }
.portal-other-documents-page .portal-other-row { min-height: 4.5rem; padding-block: .7rem; }
.portal-other-documents-page .portal-other-row-name { min-width: 0; }
.portal-other-documents-page .portal-other-row-name strong { display: block; color: #123a59; font-size: .82rem; overflow-wrap: break-word; }
.portal-other-documents-page .portal-other-row-name small { display: block; margin-top: .2rem; color: #7b92a5; font-size: .7rem; overflow-wrap: break-word; }
.portal-other-documents-page .portal-other-row-name .portal-other-row-signed { color: #218476; font-weight: 700; }
.portal-other-documents-page .portal-other-row-category { min-width: 0; overflow-wrap: break-word; }
.portal-other-documents-page .portal-other-row-date { color: #53718c; font-size: .76rem; white-space: nowrap; }
.portal-other-documents-page .portal-other-row-view { min-width: 0; min-height: 2.35rem; padding: .35rem .65rem; white-space: nowrap; }
.portal-other-documents-page .portal-other-row-view span { margin-left: .25rem; font-size: 1rem; }

/* Keep the four primary links at the bottom on phones and tablets. */
@media (max-width: 900px) {
  .portal-app-page .portal-sidebar { display: none; }
  .portal-app-page .portal-navigation { display: block; position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; width: 100%; }
  .portal-app-page .portal-navigation-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .portal-other-documents-page .portal-app-main { padding-right: 1rem; padding-left: 1rem; }
  .portal-other-documents-page .portal-other-stats { grid-template-columns: minmax(0, 1fr); gap: .55rem; padding: 1rem; }
  .portal-other-documents-page .portal-other-stats .portal-eyebrow { grid-column: 1; }
  .portal-other-documents-page .portal-other-stat-total { font-size: 1rem; }
  .portal-other-documents-page .portal-other-stat-icon { display: none; }
  .portal-other-documents-page .portal-other-stat-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .portal-other-documents-page .portal-other-stat-details { padding-top: .55rem; border-top: 1px solid #e5edf4; }
  .portal-other-documents-page .portal-other-stat-details span { display: grid; gap: .15rem; min-width: 0; padding: 0; border: 0; color: #59748b; font-size: .66rem; white-space: nowrap; }
  .portal-other-documents-page .portal-other-stat-details span + span { padding-left: .5rem; border-left: 1px solid #e5edf4; }
  .portal-other-documents-page .portal-other-stat-details strong { margin: 0; font-size: .9rem; }
  .portal-other-documents-page .portal-other-toolbar { flex-direction: column; align-items: stretch; gap: .65rem; }
  .portal-other-documents-page .portal-other-search { order: -1; flex: none; width: 100%; min-height: 2.8rem; margin: 0; }
  .portal-other-documents-page .portal-other-categories { flex: none; width: 100%; max-width: 100%; padding-inline: .15rem; }
  .portal-other-documents-page .portal-other-list { border: 0; border-top: 1px solid #e0eaf3; border-radius: 0; background: transparent; }
  .portal-other-documents-page .portal-other-list-head { display: none; }
  .portal-other-documents-page .portal-other-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 1.6rem; gap: .25rem .7rem; min-width: 0; min-height: 0; padding: 1rem .15rem; border-bottom: 1px solid #e0eaf3; }
  .portal-other-documents-page .portal-other-row-icon { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .portal-other-documents-page .portal-other-row-name { grid-column: 2; grid-row: 1; }
  .portal-other-documents-page .portal-other-row-name strong { font-size: .87rem; line-height: 1.4; }
  .portal-other-documents-page .portal-other-row-category { grid-column: 2; grid-row: 2; padding: 0; background: transparent; color: #53718c; font-size: .72rem; }
  .portal-other-documents-page .portal-other-row-date { grid-column: 2; grid-row: 3; font-size: .72rem; }
  .portal-other-documents-page .portal-other-row-view { grid-column: 3; grid-row: 1 / 4; justify-self: center; width: 1.6rem; min-height: 2.6rem; margin: 0; padding: 0; background: transparent; font-size: 0; }
  .portal-other-documents-page .portal-other-row-view:hover { background: transparent; text-decoration: underline; }
  .portal-other-documents-page .portal-other-row-view span { margin: 0; font-size: 1.3rem; }
}

/* Show the selected employer's identity throughout the signed-in portal. */
.portal-app-brand { flex: 1; min-width: 0; }
.portal-company-brand-mark { position: relative; display: grid; place-items: center; flex: none; width: 10rem; height: 4.5rem; overflow: hidden; border-radius: .45rem; background: #eaf3fb; color: #236b9e; font-size: 1.7rem; font-weight: 800; }
.portal-app-brand .portal-company-brand-mark img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.portal-company-brand-name { display: block; min-width: 0; max-width: 30rem; color: #0b2745; font-size: .95rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .portal-app-brand { flex-direction: row; align-items: center; gap: .6rem; }
  .portal-company-brand-mark { width: clamp(5rem, 26vw, 6.25rem); height: 4.5rem; font-size: 1.4rem; }
  .portal-company-brand-name { max-width: none; font-size: 1rem; line-height: 1.25; }
  .portal-header-actions { flex: none; }
}
@media (max-width: 360px) {
  .portal-company-brand-name { font-size: .9rem; }
}

.portal-profile-company-heading { display: grid; gap: .12rem; min-width: 0; }
.portal-profile-company-heading small { color: #71869a; font-size: .72rem; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.portal-profile-company-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .8rem; min-height: 3.8rem; padding: .6rem .2rem; border-bottom: 1px solid #e2eaf2; color: #173755; font-size: .9rem; font-weight: 650; }
.portal-profile-company-row--link { text-decoration: none; cursor: pointer; }
.portal-profile-company-row--link:hover { background: #f1f8fd; }
.portal-profile-company-row--link:focus-visible { outline: 3px solid #7faed5; outline-offset: -3px; }
.portal-profile-company-action { display: inline-flex; align-items: center; gap: .4rem; justify-self: end; min-height: 2.5rem; color: #1d78b8; font-size: .77rem; font-weight: 750; white-space: nowrap; }
.portal-profile-company-row--link:hover .portal-profile-company-action { color: #0c578c; text-decoration: underline; }
@media (max-width: 400px) {
  .portal-profile-company-row { gap: .55rem; }
  .portal-profile-company-action { font-size: .76rem; }
}

/* Projection uses the existing annual bonus breakdown. */
.portal-annual-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.portal-annual-actions a { display: inline-flex; align-items: center; text-decoration: none; }
.portal-annual-breakdown-row strong .portal-annual-projected-label { display: block; color: #17699f; font-size: .65rem; font-weight: 600; margin-top: .25rem; }

/* One header row on roomy tablets and desktops; bottom navigation below it. */
.portal-header-navigation, .portal-header-company { display: none; }
@media (min-width: 1280px) {
  .portal-app-page .portal-shell { max-width: 96rem; }
  .portal-app-page .portal-header { padding-inline: clamp(1.25rem, 2vw, 2rem); }
  .portal-app-page .portal-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 1.25rem; width: 100%; max-width: none; }
  .portal-app-page .portal-app-brand { flex-direction: row; align-items: center; gap: .85rem; min-width: 0; }
  .portal-app-page .portal-company-brand-mark { width: 6.5rem; height: 3.5rem; }
  .portal-app-page .portal-company-brand-name { min-width: 0; font-size: .88rem; }
  .portal-header-navigation { display: block; min-width: 0; }
  .portal-header-links { display: flex; align-items: center; gap: .25rem; }
  .portal-header-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .55rem .7rem; border-radius: .7rem; color: #58728b; font-size: .78rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
  .portal-header-link .portal-navigation-icon { width: 1.1rem; height: 1.1rem; font-size: .9rem; }
  .portal-header-link:hover { background: #f0f6fb; color: #175f98; }
  .portal-header-link.is-active { background: #e8f3fd; color: #096db9; }
  .portal-app-page .portal-header-actions { display: flex; align-items: center; gap: .6rem; min-width: 0; grid-column: -2 / -1; }
  .portal-header-company { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid #dbe6ef; border-radius: .7rem; background: #fff; color: #315d83; font: inherit; font-size: .75rem; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; }
  .portal-header-company:hover { background: #f0f6fb; border-color: #a9cce6; }
  .portal-header-link:focus-visible, .portal-header-company:focus-visible { outline: 3px solid #7faed5; outline-offset: 2px; }
  .portal-app-page .portal-account-name { display: none; }
  .portal-app-page .portal-navigation { display: none; }
  .portal-app-page .portal-app-main { padding-bottom: 2.5rem; }
  .portal-app-page .portal-footer { display: block; }
}
