:root{--navy:#174f73;--border:#d0d8e0;--muted:#596474;--copper:#c46c25}
.portal-page{font-family:"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;color:#1e2835;background:#f8fafc;margin:0}
.portal-page *{box-sizing:border-box}.portal-page a{color:#075c9f;text-decoration:none}.portal-page a:hover{text-decoration:underline}
.portal-page button,.portal-page input{font:inherit}.portal-page a:focus-visible,.portal-page button:focus-visible,.portal-page input:focus-visible{outline:3px solid #bc5a10;outline-offset:3px}
.portal-page .skip-link:not(:focus){position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}.portal-page .skip-link:focus{position:fixed;top:8px;left:8px;padding:12px;background:white;z-index:20}
.portal-shared-header.portal-header{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:20px;min-height:68px;padding:8px 20px 0;border-bottom:3px solid #174f73;background:#fff;color:#1e2835;font-family:"Segoe UI",Arial,sans-serif;font-size:15px}
.portal-shared-header .brand{display:block;flex:0 1 260px;max-width:260px;min-width:160px;margin:0;padding:0 0 8px}
.portal-shared-header .brand img{display:block;width:100%;height:auto;max-height:none;max-width:260px;object-fit:contain}
.portal-shared-header .portal-nav{display:flex;align-self:stretch;align-items:stretch;gap:4px;margin:0}
.portal-shared-header .portal-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:0;border-bottom:3px solid transparent;color:#26384a;font-weight:500;text-decoration:none;white-space:nowrap}
.portal-shared-header .portal-nav a:hover{background:#f1f5f9}.portal-shared-header .portal-nav a[aria-current]{border-bottom-color:#c46c25;color:#174f73}
.portal-shared-header .session-nav{display:flex;align-items:center;gap:16px;margin-left:auto;padding:0 0 8px;white-space:nowrap;font-size:.85rem;color:#596474}
.portal-shared-header .session-nav span{display:flex;align-items:center;gap:7px;color:#596474}.portal-shared-header .icon{width:18px;height:18px;flex-shrink:0}
.portal-shared-header .session-nav>a{display:flex;align-items:center;min-height:44px;padding:0 0 0 16px;border-left:1px solid #d0d8e0;color:#075c9f}
.portal-main{max-width:1800px;margin:0 auto;padding:24px 24px 12px}.portal-main h1{margin:0;color:#174f73;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.3}.portal-main h2{font-size:1.15rem;color:#174f73;margin:0 0 8px}.portal-main p{margin:8px 0 0}.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.portal-heading p{color:#596474}.portal-client-logo{max-width:160px;max-height:64px;object-fit:contain}.portal-card{padding:22px;border:1px solid #d0d8e0;border-radius:5px;background:#fff}.portal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.portal-card p{color:#596474}.portal-card .portal-button{margin-top:20px}.portal-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 16px;background:#fff;border:1px solid #98adc0;border-radius:4px;color:#075c9f;font-weight:600}.portal-button.primary{background:#174f73;color:#fff;border-color:#174f73}.portal-support{margin-top:20px;display:flex;gap:20px;justify-content:space-between;align-items:center}.portal-support p{max-width:75ch}.portal-support a{display:inline-block;padding-block:10px}.portal-page .portal-footer{padding:18px 20px;text-align:center;font-size:.82rem;color:#596474}.portal-page .portal-footer span{margin:0 6px}
.portal-signin{max-width:460px;margin:32px auto}.portal-signin form{display:grid;gap:12px;margin-top:24px}.portal-signin label{font-weight:600}.portal-signin input{width:100%;min-height:46px;padding:10px 12px;border:1px solid #98adc0;border-radius:4px;color:#1e2835;background:#fff}.portal-signin button{margin-top:8px;cursor:pointer}.portal-alert{padding:16px;border:1px solid #d7a79b;background:#fff7f4;border-radius:4px;color:#803c21;margin:16px 0}.portal-signin .portal-alert:empty{display:none}
.portal-case-summary{display:flex;align-items:center;gap:24px;margin-bottom:16px}.portal-case-summary p{margin:0}.portal-case-summary strong{color:#174f73}.portal-case-summary>div{min-width:0}.portal-case-summary .portal-button{margin-left:auto;flex-shrink:0}.portal-case-tabs{display:flex;gap:4px;margin-bottom:16px;border-bottom:1px solid #d0d8e0}.portal-case-tabs a{padding:10px 16px;min-height:44px}.portal-case-tabs a[aria-current]{border-bottom:3px solid #174f73;font-weight:600}.portal-ledger{padding:0;overflow:hidden}.portal-ledger table{width:100%;border-collapse:collapse;table-layout:fixed}.portal-ledger th,.portal-ledger td{padding:12px 16px;text-align:right;border-bottom:1px solid #d0d8e0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.portal-ledger th{background:#e8eef3;color:#174f73;font-weight:600}.portal-ledger tbody tr:nth-child(even){background:#f2f5f8}.portal-ledger th:first-child,.portal-ledger td:first-child{text-align:left}.portal-ledger .mobile-label{display:none}.portal-ledger-count{padding:14px 16px;color:#596474;font-size:.9rem}.portal-resource-list{display:grid;gap:12px;margin:16px 0 0;padding:0;list-style:none}.portal-resource-list a{display:block;padding:14px;border:1px solid #d0d8e0;border-radius:4px}
/* Bring existing case search and intake into the same visual shell. */
body:has(.portal-shared-header){background:#f8fafc;color:#1e2835;font-family:"Segoe UI",Arial,sans-serif}
body:has(.portal-shared-header) .page-heading h1{font-size:2rem;color:#174f73}body:has(.portal-shared-header) .page-heading p{letter-spacing:0;font-weight:400}
body:has(.portal-shared-header) .status-filter a[aria-current]{background:#174f73}
body:has(.portal-shared-header) .page-shell{padding-top:24px}body:has(.portal-shared-header) .portal-footer{color:#596474;background:transparent}
@media(max-width:1100px){.portal-shared-header.portal-header{gap:12px;flex-wrap:wrap}.portal-shared-header .portal-nav{order:3;flex-basis:100%}.portal-shared-header .session-nav{margin-left:auto}.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.portal-shared-header.portal-header{padding:10px 14px 0;gap:0 12px}.portal-shared-header .brand{flex:1;min-width:0;max-width:230px}.portal-shared-header .session-nav span{display:none}.portal-shared-header .session-nav>a{padding-left:8px;border:0}.portal-shared-header .portal-nav{justify-content:space-between;gap:0}.portal-shared-header .portal-nav a{padding:8px 10px}.portal-main{padding:18px 14px 8px}.portal-grid{grid-template-columns:1fr;gap:14px}.portal-card{padding:18px}.portal-support,.portal-case-summary{align-items:flex-start;flex-direction:column;gap:12px}.portal-case-summary .portal-button{margin-left:0}.portal-heading{gap:12px}.portal-client-logo{max-width:85px;max-height:48px}.portal-signin{margin:14px auto}.portal-ledger{padding:0}.portal-ledger table,.portal-ledger tbody{display:block}.portal-ledger thead{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.portal-ledger tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:10px;border-bottom:1px solid #d0d8e0}.portal-ledger td{display:block;text-align:right!important;padding:0;border:0;min-width:0}.portal-ledger td:first-child{grid-column:1/-1;text-align:left!important;font-weight:600}.portal-ledger .mobile-label{display:block;font-size:.78rem;color:#596474;font-weight:400}.portal-case-tabs a{padding:10px}.portal-page .portal-footer{line-height:1.8}}
@media print{.portal-shared-header.portal-header,.portal-page .portal-footer,.portal-button,.portal-case-tabs{display:none!important}.portal-main{padding:0;max-width:none}.portal-card{box-shadow:none}.portal-ledger{overflow:visible}.portal-ledger table{display:table}.portal-ledger thead{display:table-header-group;position:static;clip-path:none;width:auto;height:auto}.portal-ledger tbody{display:table-row-group}.portal-ledger tr{display:table-row;break-inside:avoid}.portal-ledger th,.portal-ledger td{display:table-cell;padding:8px}.portal-ledger .mobile-label{display:none}}
