/* Shared usability layer: preserve the existing four themes. */
html body { font-size: 1rem; }
html .page-shell p { font-size: 1rem; line-height: 1.5; }
html .page-shell :is(label span, .inactive-label, .missing-label, .section-label span) { font-size: .875rem; }
html .page-shell :is(label, small, .workflow-pill, .workspace-tabs a, .admin-tabs a, .data-table th, .data-table td, .eyebrow, .matrix-status) { font-size: max(.875rem, 14px); line-height: 1.5; }
html .page-shell :is(input, select, textarea, button, .button-secondary) { font-size: 1rem; }
html .page-shell :is(input, select, textarea) { max-width: 100%; min-width: 0; }
.page-shell [hidden] { display: none !important; }
.page-shell :is(p, label, td, dd, .document-card, .workflow-pill) { overflow-wrap: anywhere; }
.page-shell :is(.form-grid, .document-grid) > * { min-width: 0; }
.page-shell .workspace-tabs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.page-shell .workspace-tabs .workspace-tab-disabled { display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;color:#667085;background:#eef1f4;border:1px solid #d0d5dd;border-radius:8px;cursor:not-allowed; }
.next-steps { border-left: 6px solid var(--navy); }
.next-step-list { margin: 0; padding: 0; list-style: none; }
.next-step-list li { display: grid; grid-template-columns: minmax(170px, 1fr) 3fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.next-step-list a { font-weight: 700; }
.document-filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin-block: 16px; }
.document-filters label { display: grid; gap: 6px; }
.category-progress { display: block; font-size: .875rem; font-weight: 400; }
.document-category-section progress { width: 100%; height: 10px; margin-bottom: 12px; accent-color: var(--green); }
.page-shell .bulk-upload-actions { bottom: max(8px, env(safe-area-inset-bottom)); }
.page-shell .bulk-upload-actions button { white-space: normal; min-height: 44px; }
.bulk-upload-actions button:disabled { cursor: default; opacity: .6; }
.document-deadline { margin-block: 8px; }
.save-status { padding: 10px 12px; background: #edf4fa; color: #173b63; border-left: 4px solid #315779; }
[data-save-state] { font-weight: 700; }
.field-error-summary h2 { font-size: 1.2rem; margin-bottom: 8px; }
.field-error-summary a, .field-error { color: #94232b; }
.field-error { display: block; font-size: .875rem; font-weight: 600; }
.page-shell [aria-invalid="true"] { border: 2px solid #b2292e; }
.page-shell :is([id^="field-"], [id^="document-"], [id^="review-"]) { scroll-margin-block: 24px 180px; }
.review-links { display: flex; gap: 10px; flex-wrap: wrap; }
.review-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; font-weight: 700; }
.private-registration summary { cursor: pointer; font-size: 1.125rem; font-weight: 700; padding-block: 8px; }
.private-registration[open] summary { margin-bottom: 16px; }
.page-shell :focus-visible { outline: 3px solid #136fa6; outline-offset: 3px; }
@media (max-width: 760px) {
  .next-step-list li { grid-template-columns: 1fr; gap: 2px; }
  .page-shell .document-grid { grid-template-columns: minmax(0, 1fr); }
  .page-shell .workspace-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-shell .workspace-tabs a { min-height: 44px; }
  .page-shell .bulk-upload-actions { padding: 10px; gap: 8px; }
  .page-shell .mobile-cards { display: block; width: 100%; min-width: 0; }
  .mobile-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-cards tbody { display: grid; gap: 16px; }
  .mobile-cards tbody tr { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; }
  .page-shell .mobile-cards tbody :is(td, th) { display: block; width: auto; min-width: 0; text-align: left; padding: 8px 0; border: 0; white-space: normal; }
  .mobile-cards tbody :is(td, th)::before { content: attr(data-label); display: block; font-size: .875rem; font-weight: 700; color: #40566b; margin-bottom: 4px; }
  .mobile-cards .form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-cards :is(button, .button-secondary, select, input:not([type="checkbox"])) { min-height: 44px; max-width: 100%; }
  .mobile-cards.has-sort-controls thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; display: block; margin-bottom: 12px; }
  .mobile-cards.has-sort-controls thead tr { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-cards.has-sort-controls thead th { display: none; }
  .mobile-cards.has-sort-controls thead th.mobile-sort-control { display: block; padding: 0; }
}
@media print { .bulk-upload-actions { position: static; } }

/* Personal replacement marker: separate from the shared review outcome/count. */
.matrix-change-legend { display:inline-flex; align-items:center; gap:8px; font-size:.875rem; }
.matrix-change-legend b, .matrix-table .matrix-change-badge { color:#fff; background:#164e94; border:2px solid #fff; border-radius:4px; font-size:1rem; line-height:1; padding:2px 4px; }
.matrix-table .matrix-change-badge { position:absolute; left:-8px; bottom:-9px; min-width:23px; min-height:23px; display:grid; place-items:center; font-weight:900; box-shadow:0 0 0 1px #164e94; }
.matrix-table a[data-updated-since-review] { outline:2px solid #164e94; outline-offset:2px; }
.matrix-change-help { color:var(--ink); }
.upload-receipt { display:grid; gap:4px; padding:12px; border-left:4px solid #18774b; background:#eefaf2; color:#163c29; overflow-wrap:anywhere; }
.upload-receipt strong { font-size:1rem; }
.upload-receipt span { font-size:.875rem; }

/* The PDF viewer is intentionally absent until a reviewer requests it. */
.pdf-review-frame[hidden], [data-load-pdf-preview][hidden] { display: none !important; }

/* Registration journey: shared landing-page explanation and team-only progress. */
.registration-journey, .team-journey { margin-block: 24px; }
.registration-journey > h2, .team-journey > h2 { margin: 4px 0 8px; }
.registration-journey > p, .team-journey > p { max-width: 850px; }
.journey-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.journey-steps li { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--line); border-top: 4px solid #25659a; background: #fff; }
.journey-steps .journey-number { width: 30px; height: 30px; border-radius: 50%; background: #0d4776; color: #fff; display: inline-grid; place-items: center; font-weight: 800; }
.journey-steps h3 { margin: 12px 0 5px; font-size: 1.05rem; line-height: 1.3; }
.journey-steps p { margin: 0; font-size: .875rem !important; line-height: 1.4; }
.journey-steps a { color: inherit; text-decoration: underline; }
.journey-steps .journey-state { margin-top: auto; padding-top: 12px; color: #1a567b; font-weight: 800; font-size: .875rem; }
.journey-steps .journey-done { border-top-color: #287b53; }
.journey-steps .journey-done .journey-number { background: #287b53; }
.journey-steps .journey-done .journey-state { color: #236c4b; }
.journey-steps .journey-current { border-top-color: #e5af19; }
.journey-steps .journey-current .journey-number { background: #9b7108; }
.journey-steps .journey-upcoming { border-top-color: #a8b4bc; }
.journey-steps .journey-upcoming .journey-number { background: #677d8c; }
.journey-mail-note { margin: 17px 0 0; padding: 12px 15px; border-left: 4px solid #d5a61d; background: #fff8dd; }
@media (max-width: 800px) { .journey-steps { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .journey-steps { grid-template-columns: minmax(0,1fr); } .journey-steps li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 0 12px; padding: 13px; } .journey-steps h3 { margin: 0; } .journey-steps p, .journey-steps .journey-state { grid-column: 2; } .journey-steps .journey-state { padding-top: 6px; } }

.document-guidance{background:#eef5fb;border-left:4px solid #1c709e;padding:11px 12px;margin:10px 0 13px;color:#14213d}.document-guidance strong{font-size:13px}.document-guidance ul{padding-left:19px;margin:6px 0 0}.document-guidance li+li{margin-top:4px}.document-card label:has(input[type="checkbox"]){display:flex;align-items:center;gap:8px}.document-card input[type="checkbox"]{width:auto}

.matrix-status.not_applicable{background:#e5edf5;color:#264766}
