.clinical-workspace-dialog { width: min(1180px, 94vw); max-height: 90vh; border: 1px solid #dce5e8; border-radius: 12px; padding: 0; color: #233648; background: white; font: 16px/1.65 "Alibaba PuHuiTi 2.0", sans-serif; box-shadow: 0 18px 70px #172d4933; }
.clinical-workspace-dialog::backdrop { background: #18334855; }
.clinical-workspace-dialog[open] { display: flex; flex-direction: column; height: min(850px, 90vh); overflow: hidden; }
.cw-heading, .cw-tabs, .cw-notice { flex-shrink: 0; }
.cw-heading { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #edf1f4; }
.cw-heading h2 { margin: 0; font-size: 22px; }
.clinical-workspace-dialog button, .clinical-workspace-dialog input, .clinical-workspace-dialog select, .clinical-workspace-dialog textarea { font: inherit; }
.clinical-workspace-dialog button { padding: 6px 13px; border: 1px solid #d6e2e7; border-radius: 6px; background: #fff; color: #315064; cursor: pointer; }
.clinical-workspace-dialog button:hover { border-color: #00858e; color: #00858e; }
.clinical-workspace-dialog button:disabled { opacity: .45; cursor: default; }
.clinical-workspace-dialog .cw-primary { color: white; background: #087e87; border-color: #087e87; }
.cw-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cw-tabs { display: flex; gap: 20px; padding: 0 24px; border-bottom: 1px solid #e5ebef; overflow: auto; }
.cw-tabs button { padding: 14px 3px; border: none; border-radius: 0; white-space: nowrap; border-bottom: 3px solid transparent; }
.cw-tabs button[aria-selected="true"] { color: #087e87; border-bottom-color: #087e87; font-weight: 600; }
.cw-content { padding: 22px 24px 28px; flex: 1; min-height: 0; overflow: auto; }
.cw-content h3 { font-size: 18px; margin: 16px 0 12px; }
.cw-muted { color: #6e8291; font-size: 14px; }
.cw-notice { min-height: 24px; margin: 0; color: #b42318; padding: 0 24px; }
.cw-live-risk { flex-shrink: 0; margin: 0; padding: 8px 24px; color: #b42318; background: #fff8f3; }
.cw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.cw-grid label { display: grid; gap: 4px; font-size: 14px; color: #627789; }
.cw-content input, .cw-content select, .cw-content textarea { padding: 7px 9px; border: 1px solid #d7e1e8; border-radius: 5px; color: #233648; background: white; min-width: 0; width: 100%; box-sizing: border-box; }
.cw-content textarea { min-height: 220px; resize: vertical; }
.cw-actions input[type="file"] { width: 280px; max-width: 100%; }
.cw-search { display: flex; gap: 10px; margin-bottom: 15px; }
.cw-search input { flex: 1; }
.cw-search select { width: 170px; }
.cw-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cw-table th, .cw-table td { border-bottom: 1px solid #e8edf1; padding: 12px 9px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.cw-table th { font-weight: 500; background: #f6f9fa; color: #546b7c; font-size: 14px; }
.cw-table td { font-size: 16px; }
.cw-table small { display: block; color: #728694; font-size: 13px; }
.cw-issue { padding: 14px 0; border-bottom: 1px solid #edf1f4; }
.cw-issue p { margin: 0 0 7px; }
.cw-issue.is-urgent > p, .cw-abnormal { color: #b42318; font-weight: 600; }
.cw-issue a { color: #087e87; font-size: 14px; }
.cw-quote { display: block; color: #64788a; font-size: 14px; padding: 6px 0; }
.cw-coding-review { padding: 14px 16px; margin: 12px 0; border: 1px solid #dce7ea; border-radius: 8px; }
.cw-coding-review p { margin: 6px 0; }
.cw-review-heading { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.cw-review-status { display: inline-block; font-size: 13px; color: #795322; background: #fff6e8; border-radius: 4px; padding: 2px 7px; }
.cw-missing-information { margin: 6px 0 12px; padding-left: 22px; color: #885119; }
.cw-content details { margin: 10px 0; }
.cw-content summary { cursor: pointer; color: #315b69; }
.cw-knowledge-search { background: #f6f9fa; padding: 12px 16px; border-radius: 8px; }
.cw-reference { padding: 12px 0; border-top: 1px solid #e4ebef; overflow-wrap: anywhere; }
.cw-reference p { margin: 6px 0; }
.cw-reference-text { white-space: pre-wrap; font-size: 14px; max-height: 260px; overflow: auto; }
.cw-reference a { color: #087e87; font-size: 14px; }
.cw-rule-evaluation { margin: 16px 0; padding: 14px 16px; border: 1px solid #d8e5e8; border-radius: 8px; background: #f6fafb; }
.cw-rule-evaluation h3 { margin-top: 0; }
.cw-rule-finding { margin: 12px 0; padding: 14px; border: 1px solid #e1e8eb; border-radius: 6px; background: white; }
.cw-rule-finding.has-conflict { border-left: 3px solid #b26b29; }
.cw-rule-finding p { margin: 6px 0; }
.cw-rule-question { color: #704819; font-weight: 600; }
.cw-rule-warning { color: #b42318; }
.cw-rule-sources a { color: #087e87; font-size: 14px; display: inline-block; margin-right: 10px; }
.cw-rx { background: #f8fafb; padding: 14px 16px; border: 1px solid #e6edf1; border-radius: 8px; margin: 15px 0; }
.cw-rx .cw-grid { grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }
.cw-trend { width: 100%; height: 80px; max-width: 360px; display: block; }
.cw-trend polyline { fill: none; stroke: #0c8991; stroke-width: 2; }
.cw-trend circle { fill: #0c8991; }
.clinical-alert { margin: 0 10px 9px; padding: 9px 12px; background: #fff6f1; color: #a94620; border: 1px solid #f3d9cc; border-radius: 6px; cursor: pointer; font: 14px/1.5 "Alibaba PuHuiTi 2.0", sans-serif; text-align: left; }
.cw-check { width: auto !important; margin-right: 8px; }
@media(max-width:700px) { .cw-content { padding: 15px; } .cw-table { display: block; overflow: auto; } .cw-heading { padding: 12px; } .cw-tabs { gap: 12px; padding: 0 15px; } }
