/* Patient-only layout: preserve the identity strip and bound the sticky rail. */
.patient-progress>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:17px;font-weight:700;min-height:44px;list-style:revert}
.patient-progress>summary small{font-size:11px;font-weight:500;text-align:right}
.patient-progress-jump{display:none}
.review-workspace .source-column{min-width:0}
.review-workspace .review-area,.review-workspace .source-intro{scroll-margin-top:var(--patient-rail-top,96px)}
.review-workspace .insurance-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.policy-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}
.policy-cards .card-download{display:flex;width:100%;max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:center;padding:9px 10px;line-height:1.4}
.combined-card-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
.combined-card-actions>.button,.combined-card-actions button{height:auto;min-height:44px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.combined-card-actions form,.combined-card-actions select{min-width:0;max-width:100%}
@media(min-width:851px){
 .review-workspace .task-side{position:sticky;top:var(--patient-rail-top,96px);max-height:calc(100dvh - var(--patient-rail-top,96px) - 16px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 2px 2px}
 .review-workspace .task-side:focus-visible{outline-offset:1px}
 .patient-progress>summary{position:sticky;top:-2px;background:white;z-index:1;padding:6px 0}
}
@media(max-width:850px){
 .patient-progress-jump{display:inline-flex;align-items:center;min-height:36px}
 .review-workspace .task-side{display:block;position:static;max-height:none;overflow:visible}
 .review-workspace .task-side>.panel{margin-bottom:12px}
 .patient-progress>summary{font-size:15px}
 .patient-progress{scroll-margin-top:var(--patient-rail-top,150px)}
 .review-workspace .review-map a{min-height:44px}
}
@media print{.patient-progress-jump{display:none!important}}

/* Patient context first; optional source metadata stays out of the daily path. */
.patient-heading{margin:12px 0;gap:16px;align-items:start}
.patient-heading h1{font-size:clamp(22px,2.2vw,30px);margin:4px 0 8px}
.patient-heading p{margin:6px 0}
.patient-source-details{margin-top:8px;font-size:13px}
.patient-source-details>summary{min-height:36px;cursor:pointer;color:var(--muted,#536579)}
.patient-source-details .appointment-stamp{margin-top:8px}
.review-workspace .source-intro{padding:14px 18px}
.review-workspace .source-intro h2{font-size:18px;margin-bottom:6px}
.review-workspace .source-context{font-size:12px;margin:8px 0}
.patient-jump-links{gap:12px;font-size:12px}
#patient-message-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d5e1ec;border-radius:18px;padding:22px;color:#17334b}
#patient-message-dialog::backdrop{background:rgba(16,36,57,.5)}
#patient-message-dialog h2{margin:0 0 10px;font-size:21px}
#patient-message-dialog form{display:grid;gap:10px}
#patient-message-dialog p{margin:4px 0;font-size:13px}
#patient-message-dialog label{margin:0}
#patient-message-dialog fieldset{margin:0}
#patient-message-dialog label:not(.check){display:grid;gap:5px}
#patient-message-dialog input:not([type=checkbox]),#patient-message-dialog textarea{width:100%;min-width:0;box-sizing:border-box}
.patient-message-recipients{max-height:180px;overflow:auto;border:1px solid #d5e1ec;border-radius:10px;padding:10px}
.patient-message-recipients .check{min-height:44px;margin:0}
#patient-message-dialog [data-patient-message-close]{margin-top:12px;min-height:44px}
[data-patient-message-feedback]{color:#23684a;font-size:13px}

.queue-progress-detail{font-size:12px;margin-top:5px}.queue-progress-detail summary{cursor:pointer;min-height:28px;color:#536579}.queue-progress-detail small{display:block;margin-top:4px}#queue-summary .stat{padding:12px 14px}#queue-summary .stat strong{font-size:26px}#queue-summary .stat small{font-size:11px}
