html{scroll-behavior:smooth}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b89455;outline-offset:3px}header{flex-wrap:wrap;gap:12px}header .brand{margin-right:auto}.layout nav{position:sticky;top:12px;align-self:start}.preferences .consent{display:flex;align-items:flex-start;gap:12px;line-height:1.6;margin:16px 0}.preferences input[type=checkbox]{width:20px;height:20px;flex-shrink:0;margin-top:3px;accent-color:#193640}.notification-choice{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}footer{flex-wrap:wrap}body{overflow-wrap:anywhere}@media(max-width:760px){header{padding:16px!important}.portal-label{display:none}header button{min-height:44px}.layout{display:block!important}.layout nav{position:static;display:flex;overflow-x:auto;gap:8px;padding:12px 16px;scroll-snap-type:x proximity}.layout nav button{flex:0 0 auto;white-space:nowrap;min-height:44px;scroll-snap-align:start}.layout nav>a{display:none}.dashboard{padding:20px 16px!important}.intake{padding:24px 16px!important}.row{flex-wrap:wrap}.card{min-width:0}h1{font-size:clamp(30px,7vw,48px)}input,select,textarea{font-size:16px!important}nav button.selected{background:#193640;color:#fff}}

footer{flex-wrap:wrap;gap:16px}.technology-provider{display:flex;align-items:center;gap:16px;padding:12px 20px;background:#101c27;color:#fff;border-radius:12px;max-width:100%;flex-wrap:wrap}.technology-provider img{display:block;width:170px;height:auto;max-width:100%;object-fit:contain}.technology-provider span{font-size:12px;line-height:1.5}@media(max-width:640px){.technology-provider{width:100%;justify-content:center;text-align:center}}

*,*::before,*::after{box-sizing:border-box}img{max-width:100%;height:auto}.layout,.dashboard,.intake,.card,main{min-width:0}header>*{min-width:0}table{max-width:100%}@media(max-width:760px){header .brand{width:100%;max-width:100%}header button{flex:1 1 130px;white-space:normal}header #refresh-status{flex-basis:100%}.grid,.cards,.form-grid{grid-template-columns:minmax(0,1fr)!important}.row>*{min-width:0}.card{padding:20px!important}.layout nav{max-width:100%;overscroll-behavior-x:contain}button,a.button{min-height:44px}input,select,textarea{width:100%;max-width:100%}footer{padding:24px 16px!important}.technology-provider img{width:125px}.notice{overflow-wrap:anywhere}}

/* Transparent technology-provider footer; keep the supplied wordmark readable. */
.technology-provider{background:transparent;color:inherit;border:0;border-radius:0;padding:0;box-shadow:none}.technology-provider img{filter:invert(1) hue-rotate(180deg)}

.portal-stat{display:block;text-align:left;color:inherit;background:#fff;cursor:pointer}.portal-stat:focus-visible{outline:3px solid #477154}.portal-stat p{color:#6c7a77}

.policy-viewer{position:fixed;inset:0;z-index:1000;background:#f7f6f2;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);height:100dvh;box-sizing:border-box}.policy-viewer header,.policy-viewer footer{flex:none;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:#fff;border-bottom:1px solid #daddd6}.policy-viewer article{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;max-width:900px;width:100%;box-sizing:border-box;margin:auto;line-height:1.65}.policy-viewer article h1{font-size:clamp(24px,6vw,36px)}.policy-viewer button{min-height:44px;white-space:normal;flex-shrink:0}.policy-viewer footer{border-top:1px solid #daddd6}.policy-viewer footer button{width:100%}

#account-security{max-width:min(560px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #d7dad6}#account-security::backdrop{background:rgba(18,35,42,.6)}#account-security form{display:grid;gap:12px}#account-security label{display:grid;gap:6px;margin:8px 0}

.layout nav button,
header #preferences-link, header #enable-alerts, header #account-security-link,
header #refresh-app, header #install-app, header #logout,
#preferences-back, #preferences-notifications {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #193640;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .27em;
  min-height: 44px;
}
.layout nav button.selected, .layout nav button:hover {
  background: transparent;
  color: #193640;
  text-decoration-thickness: .16em;
}
.layout nav button.selected { font-weight: 750; }
.request-year > summary { cursor: pointer; font-weight: 700; padding-block: 12px; }
.request-details { white-space: pre-wrap; }

#app > header { padding: .6rem clamp(.85rem, 3vw, 2rem); gap: .65rem; }
#app > header .brand { width: auto; flex: 1 1 auto; }
#app > header #refresh-status { flex-basis: auto; }
.portal-account { position: relative; flex: none; }
.portal-account summary {
  display: grid; place-items: center; min-height: 44px; padding: .45rem .85rem;
  border: 1px solid #9db5b7; border-radius: .55rem; color: #193640; background: #fff; cursor: pointer;
  font-weight: 700; list-style: none;
}
.portal-account summary::-webkit-details-marker { display: none; }
.portal-account summary:focus-visible { outline: 3px solid #b89455; outline-offset: 3px; }
.portal-account-menu {
  position: absolute; right: 0; top: calc(100% + .35rem); z-index: 5; display: grid;
  min-width: min(14rem, 80vw); padding: .3rem; border-radius: .65rem; background: #fff;
  border: 1px solid #cbdcda; box-shadow: 0 .35rem 1.25rem #19364022;
}
#app > header .portal-account-menu button { text-align: left; text-decoration: none; padding: .45rem .7rem; }
#app > header .portal-account-menu button:hover { background: #edf4f4; }
#app .layout nav { gap: .3rem; }
#app .layout nav button { text-decoration: none; border-radius: .5rem; padding: .5rem .72rem; }
#app .layout nav button.selected { background: #193640; color: #fff; }
#app .dashboard, #app .intake { padding-block: 1rem 1.5rem !important; }
#app .dashboard .card, #app .intake .card { padding: .9rem 1rem !important; margin-bottom: .65rem; }
#app .dashboard .stats { gap: .55rem; margin-bottom: .9rem; }
#app .dashboard h1, #app .intake h1 { margin-block: .3rem .65rem; }
.policy-acceptance { display: flex; align-items: flex-start; gap: .65rem; margin-block: .75rem; }
.policy-acceptance input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: .2rem 0 0; accent-color: #193640; }
.policy-acceptance a { text-decoration: underline; }
