body:has(.inbox-workspace) { background: #f7f8f5; }
.inbox-workspace { width: min(1080px, calc(100% - 64px)); margin: auto; padding: 24px 0 56px; color: #24382f; }
.inbox-workspace h1 { font: 600 clamp(2.5rem, 7vw, 4rem)/1.15 var(--font-ui); letter-spacing: -.055em; max-width: none; overflow-wrap: anywhere; }
.inbox-workspace a { color: inherit; }
.inbox-topbar { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #dce2db; padding-bottom: 20px; }
.inbox-topbar > a { font-weight: 750; letter-spacing: .12em; text-decoration: none; }
.inbox-topbar > span { margin-left: auto; color: #58695f; font-size: .8rem; overflow-wrap: anywhere; }
.inbox-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; }
.inbox-caption { color: #58695f; line-height: 1.7; margin: 18px 0 30px; }
.inbox-primary, .inbox-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 7px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .16s, box-shadow .16s; }
.inbox-workspace .inbox-primary { color: white; background: #23573e; border: 1px solid #23573e; }
.inbox-secondary { border: 1px solid #cad3c9; background: transparent; }
.inbox-workspace .inbox-primary:hover { background: #163f2b; }
.inbox-secondary:hover { background: #eaf0e8; }
.inbox-search { display: flex; gap: 10px; }
.inbox-search input[type=search] { min-width: 0; flex: 1; padding: 14px 16px; border: 1px solid #cad3c9; border-radius: 7px; background: white; color: inherit; font: inherit; }
.inbox-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inbox-workspace :focus-visible { outline: 3px solid #458663; outline-offset: 3px; }
.inbox-filters { display: flex; align-items: center; gap: 22px; margin-top: 24px; border-bottom: 1px solid #dce2db; }
.inbox-filters a { padding: 16px 0; min-height: 48px; text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; transition: border-color .16s; }
.inbox-filters a[aria-current=page] { border-color: #23573e; font-weight: 700; }
.inbox-filters > span { margin-left: auto; font-size: .85rem; white-space: nowrap; }
.inbox-table-label { display: flex; justify-content: space-between; color: #66766b; font-size: .75rem; padding: 12px 24px 0 0; }
.inbox-documents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; padding: 0; margin: 28px 0 0; list-style: none; }
.inbox-document { display: flex; flex-direction: column; gap: 12px; height: 100%; padding-bottom: 16px; border-bottom: 1px solid #dce2db; text-decoration: none; }
.inbox-thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; background: #e9ede6; border: 1px solid #dce2db; overflow: hidden; transition: border-color .16s, background .16s; }
.inbox-document:hover .inbox-thumbnail { border-color: #7a9983; background: #e1e8dd; }
.inbox-thumbnail img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.inbox-thumbnail img[hidden], .inbox-thumbnail-fallback[hidden] { display: none; }
.inbox-thumbnail-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; }
.inbox-thumbnail-fallback small { font-size: .75rem; color: #66766b; }
.inbox-page-count { position: absolute; bottom: 8px; right: 8px; background: #f7f8f5; border: 1px solid #dce2db; border-radius: 4px; padding: 3px 6px; font-size: .7rem; }
.inbox-detail-thumbnail { display: block; width: min(100%, 320px); margin-top: 28px; }
.inbox-file-icon { border: 1px solid #bccdbd; border-radius: 3px; padding: 14px 4px; color: #386248; text-align: center; font-size: .65rem; font-weight: 700; }
.inbox-document-name { min-width: 0; }
.inbox-document-name strong { font-size: .98rem; line-height: 1.55; overflow-wrap: anywhere; }
.inbox-document small { display: block; margin-top: 7px; font-size: .78rem; color: #66766b; }
.inbox-document-date { display: flex; gap: 12px; margin-top: auto; font-size: .75rem; white-space: nowrap; color: #66766b; }
.inbox-document-date small { margin-top: 0; }
.inbox-footnote { font-size: .76rem; color: #66766b; line-height: 1.8; margin-top: 36px; }
.inbox-pagination { display: flex; gap: 24px; justify-content: flex-end; margin-top: 24px; }
.inbox-pagination a { padding: 12px; }
.inbox-empty { padding: 48px 0; color: #58695f; }
.inbox-empty h2 { font-size: 1.2rem; }
.inbox-file-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.inbox-login { max-width: 520px; padding-top: 18vh; }
.inbox-login > p { line-height: 1.8; }
.inbox-login .inbox-primary { margin-top: 24px; }
@media (max-width: 600px) {
  .inbox-workspace { width: calc(100% - 32px); padding-top: 16px; }
  .inbox-topbar { flex-wrap: wrap; gap: 8px 12px; }
  .inbox-topbar > span { order: 3; flex-basis: 100%; }
  .inbox-topbar > form { margin-left: auto; }
  .inbox-heading { margin-top: 32px; }
  .inbox-caption { font-size: .85rem; }
  .inbox-filters { gap: 16px; }
  .inbox-filters a { font-size: .8rem; }
  .inbox-table-label span { display: none; }
  .inbox-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .inbox-document { gap: 8px; }
  .inbox-document-name strong { font-size: .85rem; }
  .inbox-document-date { flex-wrap: wrap; gap: 4px 8px; font-size: .7rem; }
  .inbox-thumbnail img { padding: 6px; }
  .inbox-file-actions > a { flex: 1; white-space: nowrap; }
  .inbox-login { padding-top: 14vh; }
}
@media (max-width: 350px) { .inbox-documents { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .inbox-workspace * { transition: none !important; } }
