*{box-sizing:border-box}body{margin:0;background:#eef3f6;color:#183042;font:16px/1.55 system-ui,sans-serif}header{background:#102738;color:white;padding:26px max(20px,calc((100vw - 1120px)/2))}header h1{margin:0}header p{letter-spacing:.14em;font-size:12px}a{color:inherit}main{max-width:1160px;margin:24px auto;padding:0 20px}.notice{background:#fff9dd;padding:16px;border-radius:8px}form{max-width:470px;background:white;padding:22px;border-radius:10px}label{display:block;margin:10px 0;font-weight:600}input,select,button{font:inherit;padding:10px;border:1px solid #9fb0bc;border-radius:6px}input{display:block;width:100%;margin-top:5px}button{cursor:pointer;background:#143c54;color:white;margin:5px 5px 5px 0}button:disabled{opacity:.5;cursor:not-allowed}.actions{margin:20px 0}.inbox-layout{display:grid;grid-template-columns:320px 1fr;gap:20px}.inbox-layout section{background:white;border-radius:10px;padding:22px;min-width:0}ul{list-style:none;padding:0}li button{width:100%;text-align:left;background:#edf4f7;color:#183042}dt{font-weight:700;margin-top:15px}dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#inbox-status{font-weight:600}button:focus-visible,a:focus-visible{outline:3px solid #c49b46;outline-offset:3px}@media(max-width:720px){.inbox-layout{grid-template-columns:1fr}header{padding:20px}main{padding:0 12px}}
/* Only the fixed white inbox masthead text. */
body>header h1{font-size:clamp(32px,5vw,42px);font-weight:800;line-height:1.15;overflow-wrap:anywhere}
body>header p{font-size:clamp(13px,1.65vw,15px);font-weight:750}
body>header nav a{font-size:clamp(16px,1.8vw,19px);font-weight:800}

/* Inbox organization and notes. The signed-out workspace stays hidden. */
[hidden]{display:none!important}
.inbox-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.65rem}
.inbox-filters select,#application-detail select,#application-detail textarea{display:block;width:100%;margin-top:.35rem;max-width:100%}
.inbox-new-folder{padding:0;margin:0 0 1.2rem}#application-count{margin:.75rem 0;color:#385368}
#application-list button{display:block;min-height:44px;white-space:normal;overflow-wrap:anywhere}
#application-list button[aria-current="true"]{background:#153d55;color:white}
.application-list-meta{display:block;font-size:.87em;margin-top:.25rem;font-weight:600}
.inbox-unviewed{font-weight:800}
.inbox-detail-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.8rem;margin:1rem 0}
.inbox-notes{border-top:1px solid #cfdae1;padding-top:.85rem;margin-top:1rem}
.inbox-notes textarea{font:inherit;border:1px solid #778c9a;border-radius:.4rem;padding:.65rem;min-height:6rem;resize:vertical}
#inbox-workspace :is(select,textarea,input):focus-visible{outline:3px solid #236489;outline-offset:2px}
.inbox-detail-controls button{align-self:end;justify-self:start}

.inbox-layout{grid-template-columns:minmax(10rem,13rem) minmax(15rem,1fr) minmax(18rem,1.35fr);gap:1rem}
.inbox-folder-panel{background:white;border-radius:10px;padding:1rem;min-width:0;align-self:start}
.inbox-folder-panel h2,.inbox-job-group h3{margin-top:0}
#inbox-folder-list button{min-height:44px;margin:0 0 .4rem;overflow-wrap:anywhere}
#inbox-folder-list button[aria-current="true"]{background:#153d55;color:white}
.inbox-job-group{margin-bottom:1rem}
.inbox-job-group h3{font-size:1rem;margin-bottom:.35rem;padding-bottom:.35rem;border-bottom:1px solid #cfdae1}
.inbox-detail-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.inbox-detail-actions p{flex-basis:100%;order:2;margin:0;color:#385368;font-size:.875rem}
.inbox-danger{background:#83332b;color:#fff}
.inbox-notes{background:#f3f8fc;padding:.75rem;border:1px solid #9ab1bf;border-radius:.5rem}
.inbox-notes h3,.inbox-notes p{margin:0 0 .5rem}
@media(max-width:1000px){.inbox-layout{grid-template-columns:minmax(10rem,13rem) minmax(0,1fr)}#application-detail{grid-column:1/-1}}
@media(max-width:580px){.inbox-layout{grid-template-columns:minmax(0,1fr)}.inbox-folder-panel,.inbox-layout section{padding:1rem}}
.inbox-folder-hint{font-size:.875rem;color:#385368;margin:0 0 1rem}
/* Open and download are independent actions, with space to wrap on a narrow inbox. */
.inbox-application-row{display:flex;flex-wrap:wrap;gap:.3rem .45rem;align-items:stretch;margin:.35rem 0 .65rem}
#application-list .inbox-application-open{flex:1 1 9rem;margin:0;width:auto;min-width:0}
#application-list .inbox-row-download{flex:0 1 8rem;margin:0;width:auto;min-width:0;min-height:44px;background:#e2eff5;color:#153d55;border-color:#668398;font-size:.86rem;font-weight:750;text-align:center;line-height:1.25}
#application-list .inbox-row-download:hover:not(:disabled){background:#153d55;color:#fff}
