/* Patient report workspace: independent scrolling, normal desktop density. */
.patient-report-workspace{position:fixed;inset:0;z-index:1200;padding:20px;background:rgb(15 23 42 / 45%);display:grid;place-items:center;color:#191919;font-size:14px}
.patient-report-workspace *{box-sizing:border-box;min-width:0}
.patient-report-workspace .pr-dialog{width:min(1320px,100%);height:min(920px,calc(100dvh - 40px));background:#fff;border-radius:16px;box-shadow:0 24px 100px #0003;display:flex;flex-direction:column;overflow:hidden}
.patient-report-workspace .pr-header{position:static;background:#fff;color:#191919;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 24px;border-bottom:3px solid #ffcc00;box-shadow:none}
.patient-report-workspace .pr-header small{font-size:11px;letter-spacing:.06em;color:#555}
.patient-report-workspace h2{font-size:21px;line-height:1.3;margin:5px 0 0}
.patient-report-workspace h3{font-size:16px;margin:0 0 12px}
.patient-report-workspace .pr-toolbar{display:flex;gap:14px;align-items:end;padding:12px 24px;background:#fff}
.patient-report-workspace .pr-toolbar label{display:grid;gap:5px;font-size:12px;font-weight:600}
.patient-report-workspace .pr-toolbar label:first-child{flex:1;max-width:550px}
.patient-report-workspace select,.patient-report-workspace button{font-size:13px;line-height:1.3;min-height:36px;padding:8px 12px;border-radius:8px;margin:0}
.patient-report-workspace button{background:#191919;color:#fff;border:1px solid transparent;box-shadow:none}
.patient-report-workspace button.ghost{background:#f5f5f5;color:#191919;border-color:#ddd}
.patient-report-workspace button:disabled{opacity:.4;cursor:not-allowed}
.patient-report-workspace button:focus-visible,.patient-report-workspace select:focus-visible,.patient-report-workspace textarea:focus-visible,.patient-report-workspace summary:focus-visible{outline:3px solid #ffcc00;outline-offset:2px}
.patient-report-workspace [data-pr-version]{font-size:12px;align-self:center;white-space:nowrap}
.patient-report-workspace .pr-message{margin:0 24px 10px;padding:9px 12px;border-left:3px solid #ffcc00;background:#fafafa;font-size:13px;line-height:1.5}
.patient-report-workspace .pr-comparison{padding:12px;border:1px solid #ddd;border-left:3px solid #ffcc00;border-radius:8px;margin:12px 0 18px;font-size:12px;line-height:1.6}
.patient-report-workspace .pr-comparison p{margin:5px 0}
.patient-report-workspace .pr-comparison article{padding:8px 0;border-top:1px solid #ddd}
.patient-report-workspace .pr-warning{color:#8a3a16}
.patient-report-workspace [data-pr-qualification]{font-size:12px;line-height:1.5;color:#80520c}
.patient-report-workspace .pr-draft-actions{flex-wrap:wrap}
.patient-report-workspace .pr-message.is-error{border-color:#de2617;color:#a51c10}
.patient-report-workspace .pr-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.88fr);border-top:1px solid #e6e6e6}
.patient-report-workspace .pr-editor,.patient-report-workspace .pr-preview{overflow:auto;min-height:0;padding:20px 24px;overscroll-behavior:contain}
.patient-report-workspace .pr-preview{background:#f8f8f8;border-left:1px solid #e6e6e6}
.patient-report-workspace p{font-size:13px;line-height:1.6;margin:0 0 14px;color:#555}
.patient-report-workspace .pr-draft-actions{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.patient-report-workspace small{font-size:11px;line-height:1.5;color:#606060}
.patient-report-workspace .pr-section{margin:0 0 20px}
.patient-report-workspace .pr-section>label{display:flex;flex-direction:row;align-items:center;text-align:left;gap:9px;font-size:15px;font-weight:700;margin-bottom:9px}
.patient-report-workspace .pr-section>label span{font-size:12px;color:#ad2115}
.patient-report-workspace textarea{display:block;width:100%;font:inherit;line-height:1.65;min-height:112px;resize:vertical;border:1px solid #bdbdbd;border-radius:9px;padding:12px;background:#fff;color:#191919}
.patient-report-workspace details{border:0;background:transparent;box-shadow:none;margin:8px 0;padding:0}
.patient-report-workspace summary{font-size:12px;line-height:1.5;color:#555;padding:6px 0;cursor:pointer;font-weight:500}
.patient-report-workspace pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:12px/1.6 system-ui,sans-serif;max-height:350px;overflow:auto;background:#f5f5f5;padding:12px;border-radius:8px}
.patient-report-workspace .pr-history{border-top:1px solid #ddd;padding-top:9px}
.patient-report-workspace .pr-highlights{border-top:3px solid #ffcc00;padding-top:9px;margin-bottom:20px}
.patient-report-workspace [data-pr-highlights]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.patient-report-workspace .pr-highlight-label{display:grid;gap:7px;text-align:left;font-size:12px;line-height:1.5;font-weight:500}
.patient-report-workspace .pr-highlight-label textarea{min-height:76px;padding:9px;font-size:13px}
@media(max-width:1100px){.patient-report-workspace [data-pr-highlights]{grid-template-columns:minmax(0,1fr)}}
.patient-report-workspace [data-pr-preview-content] a{display:block;font-size:12px;color:#17418b;margin:0 0 12px}
.patient-report-workspace iframe{display:block;border:1px solid #ddd;width:100%;height:65vh;min-height:350px;background:#fff}
.patient-report-workspace .pr-footer{padding:12px 24px;border-top:1px solid #ddd;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px}
.patient-report-workspace .pr-review{display:grid;gap:5px}
.patient-report-workspace .pr-review label{display:flex;flex-direction:row;align-items:start;gap:8px;font-size:12px;line-height:1.5}
.patient-report-workspace input[type=checkbox]{width:16px;height:16px;margin:2px 0 0;flex-shrink:0;accent-color:#191919}
.patient-report-workspace .pr-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
@media(max-width:1000px){.patient-report-workspace .pr-footer{align-items:stretch;flex-direction:column;gap:8px}.patient-report-workspace .pr-body{grid-template-columns:minmax(0,1fr) minmax(300px,.8fr)}}
@media(max-width:760px){.patient-report-workspace{padding:8px}.patient-report-workspace .pr-dialog{height:calc(100dvh - 16px)}.patient-report-workspace .pr-header{padding:12px 16px}.patient-report-workspace h2{font-size:17px}.patient-report-workspace .pr-toolbar{padding:10px 16px;flex-wrap:wrap}.patient-report-workspace .pr-body{display:block;overflow:auto}.patient-report-workspace .pr-editor,.patient-report-workspace .pr-preview{overflow:visible;padding:16px}.patient-report-workspace .pr-message{margin:0 16px 8px}.patient-report-workspace .pr-footer{padding:10px 16px}.patient-report-workspace .pr-actions button{flex:1}.patient-report-workspace .pr-draft-actions{flex-wrap:wrap}}
