:root{color:#1b2533;background:#f4f7f8;font-family:Microsoft YaHei,PingFang SC,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}html,#app{min-height:100vh}button{font:inherit}.medical-shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.medical-shell--winform-embed{grid-template-columns:minmax(0,1fr);height:100vh;min-height:0;overflow:hidden}.medical-sidebar{display:flex;flex-direction:column;gap:28px;padding:24px;color:#f7fbfc;background:#17202d}.brand-block{display:flex;gap:14px;align-items:center}.brand-mark{display:grid;width:48px;height:48px;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:8px;color:#9fe0ce;font-weight:700}.brand-block h1,.medical-topbar h2,.panel h2,.preview-band h3,.consistency-band h3{margin:0;letter-spacing:0}.brand-block h1{font-size:18px}.brand-block p,.medical-topbar p,.panel__header p{margin:4px 0 0;color:#778391;font-size:13px}.brand-block p{color:#aab7c4}.medical-nav{display:grid;gap:10px}.nav-button,.list-row,.command-button,.tab-button{border:0;cursor:pointer}.nav-button{display:grid;gap:5px;width:100%;padding:14px;border-radius:8px;color:#c8d4de;text-align:left;background:transparent}.nav-button span{font-size:12px}.nav-button--active{color:#fff;background:#23566f}.medical-main{min-width:0;padding:22px}.medical-shell--winform-embed .medical-main{min-height:0;height:100vh;overflow:hidden;padding:0}.medical-topbar{display:flex;gap:16px;align-items:center;justify-content:space-between;padding-bottom:20px}.medical-topbar h2{font-size:24px}.context-badges,.command-group,.toolbar-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.context-badges span{padding:6px 10px;border:1px solid #d8e0e6;border-radius:8px;background:#fff;color:#385466;font-size:12px}.workspace-grid{display:grid;gap:16px}.workspace-grid--templates,.workspace-grid--inpatient{grid-template-columns:minmax(240px,320px) minmax(0,1fr)}.workspace-grid--winform-embed{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:0;align-items:stretch;height:100vh;min-height:0;overflow:hidden}.workspace-grid--winform-embed-single{grid-template-columns:minmax(0,1fr);gap:0;align-items:stretch;height:100vh;min-height:0;overflow:hidden}.workspace-grid--dashboard{grid-template-columns:minmax(0,1fr)}.panel{min-width:0;padding:16px;border:1px solid #dce4e8;border-radius:8px;background:#fff}.panel--wide{overflow:hidden}.panel--winform-embed{display:flex;flex-direction:column;min-height:0;height:100vh;overflow:hidden;padding:10px;border-radius:0}.panel--embed-prompts{height:100vh;min-height:0;max-height:100vh;overflow:auto;border-width:0 1px 0 0;border-radius:0}.panel__header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}.panel__header h2{font-size:18px}.panel__header span{color:#697786;font-size:13px}.panel__header--stacked{margin-top:18px}.panel__header--compact{margin-bottom:8px}.list-row{display:flex;width:100%;min-height:68px;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:12px;border:1px solid #e1e8ec;border-radius:8px;color:#1f2b37;text-align:left;background:#fbfcfd}.list-row--active{border-color:#2e7d6d;background:#edf7f4}.list-row strong,.list-row small{display:block}.list-row small{margin-top:4px;color:#667586;word-break:break-all}.command-button{min-height:36px;padding:0 14px;border-radius:8px;color:#fff;background:#2f6f79}.command-button--secondary{color:#2f4f5c;background:#dfe8ec}.command-button:disabled{cursor:not-allowed;opacity:.48}.data-table{width:100%;border-collapse:collapse;overflow:hidden;border:1px solid #dce4e8;border-radius:8px}.data-table th,.data-table td{padding:12px;border-bottom:1px solid #e8eef1;text-align:left;font-size:14px}.data-table th{color:#596879;background:#f5f8fa}.data-table tr:last-child td{border-bottom:0}.data-table__row--active td{background:#eef7f8}.prompt-list{display:grid;gap:0;border-top:1px solid #e1e8ec}.prompt-list--embed{border-top:0}.prompt-list__section{display:grid;gap:0}.prompt-list__section-title{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 4px 12px;color:#667586;font-size:12px;font-weight:700}.prompt-list__section-count{color:#8a98a8;font-weight:500}.prompt-list__other-toggle{width:calc(100% - 20px);margin:8px 10px;padding:7px 10px;border:1px solid #d7e3e8;border-radius:6px;color:#405565;background:#f8fbfc;cursor:pointer;text-align:left;font-size:13px}.prompt-list__other-toggle:hover,.prompt-list__other-toggle[aria-expanded=true]{border-color:#afcdd0;color:#2f6f79;background:#f1faf9}.prompt-list__item{display:grid;gap:5px;width:100%;padding:8px 0 8px 10px;border-bottom:1px solid #e8eef1;border-left:3px solid transparent;color:inherit;text-align:left;background:transparent}.prompt-list__item:hover,.prompt-list__item--active{border-left-color:#2f6f79;background:#eef7f8}.prompt-list--embed .prompt-list__item{gap:6px;padding:8px 0 8px 10px}.prompt-list--embed .prompt-list__item:not(.prompt-list__item--actionable):not(.prompt-list__item--active){background:#fff}.prompt-list__item--actionable{border-left-color:#2f6f79;background:#eef9fb}.prompt-list__header{display:flex;gap:6px;align-items:flex-start}.prompt-list__focus{display:grid;gap:5px;width:100%;min-width:0;padding:0;border:0;color:inherit;text-align:left;background:transparent;cursor:pointer}.prompt-list__focus:focus-visible{outline:2px solid rgba(47,111,121,.28);outline-offset:-2px}.prompt-list__details-toggle{flex:none;display:inline-grid;width:24px;height:24px;place-items:center;border:1px solid #cfd9df;border-radius:999px;color:#405565;background:#fff;cursor:pointer;font-size:12px;font-weight:700}.prompt-list__details-toggle:hover,.prompt-list__details-toggle[aria-expanded=true]{color:#2f6f79;border-color:#9fc3c7;background:#f4fbfa}.prompt-list__title{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.prompt-list__badges{display:inline-flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.prompt-list__item strong{color:#1f2b37;font-size:14px}.prompt-list__badge{flex:none;padding:2px 6px;border-radius:6px;color:#7c2531;background:#f7dce1;font-size:12px}.prompt-list__badge--muted{color:#405565;background:#e7edf1}.prompt-list__item p{margin:0;color:#405565;font-size:13px;line-height:1.55}.prompt-list__details{display:grid;gap:5px;padding-right:4px}.prompt-list__item small{color:#667586;font-size:12px;line-height:1.45}.clinical-source-preview{display:grid;gap:6px;margin:4px 4px 0 0}.clinical-source-preview__summary{width:calc(100% - 4px);margin:2px 4px 0 0;padding:6px 8px;border:1px solid #d7e6e7;border-radius:6px;color:#405565;background:#f7fbfc;cursor:pointer;text-align:left;font-size:12px;line-height:1.45}.clinical-source-preview__summary:hover{border-color:#afcdd0;color:#2f6f79;background:#f1faf9}.clinical-source-preview__item{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;padding:7px 8px;border:1px solid #d7e6e7;border-radius:6px;background:#f4fbfa}.clinical-source-preview__item div{display:grid;gap:3px;min-width:0}.clinical-source-preview__item strong{font-size:12px}.clinical-source-preview__button{flex:none;min-height:28px;padding:0 8px;border:1px solid #b7d0d1;border-radius:6px;color:#2f6f79;background:#fff;cursor:pointer;font-size:12px;white-space:nowrap}.clinical-source-preview__item small{color:#405565}.status-pill{display:inline-flex;min-width:52px;justify-content:center;padding:4px 8px;border-radius:999px;color:#1f2b37;background:#e9eef2;font-size:12px;white-space:nowrap}.status-pill[data-status=published],.status-pill[data-status=succeeded],.status-pill[data-status=fresh]{color:#155143;background:#dcefe9}.status-pill[data-status=draft],.status-pill[data-status=pending],.status-pill[data-status=running],.status-pill[data-status=stale],.status-pill[data-status=missing]{color:#6a4d00;background:#fff1c7}.status-pill[data-status=failed],.status-pill[data-status=dead_letter],.status-pill[data-status=disabled],.status-pill[data-status=offline]{color:#7c2531;background:#f7dce1}.consistency-band,.preview-band,.document-toolbar,.encounter-strip,.error-strip,.event-strip,.editor-fallback,.hm-editor-host{margin-top:16px;border:1px solid #dce4e8;border-radius:8px;background:#fbfcfd}.consistency-band{padding:14px}.consistency-band header,.preview-band header,.document-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between}.consistency-band h3{font-size:15px}.preview-band{padding:14px}.preview-band h3{font-size:15px}.preview-snippet{margin:12px 0 0;padding:10px 12px;border-left:3px solid #2f6f79;color:#405565;background:#fff;font-size:13px;line-height:1.7}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.metric-grid div{padding:12px;border-radius:8px;background:#fff}.metric-grid strong,.metric-grid span{display:block}.metric-grid strong{font-size:22px}.metric-grid span,.metric-grid small,.empty-state,.issue-list{color:#667586;font-size:13px}.metric-grid small{display:block;margin-top:6px}.metric-grid--dashboard{grid-template-columns:repeat(5,minmax(0,1fr))}.issue-list{margin:12px 0 0;padding-left:18px}.encounter-strip{display:flex;flex-wrap:wrap;gap:10px;padding:12px}.encounter-strip span{padding:5px 8px;border-radius:8px;background:#eef3f5;font-size:13px}.tab-strip{display:flex;gap:8px;margin-top:14px;overflow-x:auto}.tab-button{min-width:112px;padding:10px 12px;border-radius:8px 8px 0 0;color:#496170;background:#e9eef2;white-space:nowrap}.tab-button--active{color:#fff;background:#2f6f79}.document-toolbar{padding:12px}.panel--winform-embed .document-toolbar{margin-top:0;padding:8px 10px}.panel--winform-embed .document-toolbar--embed{gap:12px;align-items:center}.document-toolbar__main{min-width:0}.document-toolbar strong,.document-toolbar span{display:block}.document-toolbar span{margin-top:4px;color:#667586;font-size:13px}.document-toolbar__patient{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-toolbar__writeback{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-toolbar__sdk{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-state{padding:5px 8px;border-radius:999px;color:#275b4f;background:#edf7f4;font-size:12px;white-space:nowrap}.edit-state--dirty{color:#6a4d00;background:#fff1c7}.toolbar-status--embed{flex-wrap:nowrap;min-width:0}.toolbar-status--embed>span{flex:0 1 auto}.deployment-service{position:relative;display:inline-flex;min-width:0;gap:6px;align-items:center;color:#405565;font-size:12px;white-space:nowrap;margin-top:4px}.deployment-service>span{max-width:280px;overflow:hidden;text-overflow:ellipsis}.deployment-service__details summary{display:grid;width:22px;height:22px;cursor:pointer;border:1px solid #ccd9de;border-radius:50%;color:#2f6f79;background:#fff;font-weight:700;list-style:none;place-items:center}.deployment-service__details summary::-webkit-details-marker{display:none}.deployment-service__details dl{position:absolute;z-index:20;top:30px;left:0;width:250px;margin:0;padding:10px 12px;border:1px solid #ccd9de;border-radius:6px;background:#fff;box-shadow:0 8px 24px #29414b24}.deployment-service__details dl>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;padding:4px 0}.deployment-service__details dt{color:#667586}.deployment-service__details dd{min-width:0;margin:0;overflow-wrap:anywhere;color:#253c49}.document-status-footer{display:flex;flex:0 0 auto;min-width:0;gap:12px;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid #dce4e8;border-top:0;border-radius:0 0 8px 8px;color:#667586;background:#fbfcfd;font-size:12px}.document-status-footer__item{display:inline-flex;min-width:0;gap:6px;align-items:center}.document-status-footer__item strong{color:#405565;font-weight:600;white-space:nowrap}.document-status-footer__item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-strip{padding:10px 12px;color:#275b4f;background:#edf7f4;font-size:13px}.event-strip--signature{border-color:#bdddd4}.event-strip--warning{color:#704b00;border-color:#f0d48b;background:#fff8df}.event-strip--success{color:#225b46;border-color:#a9d8c7;background:#ecf8f3}.editor-fallback{display:grid;gap:12px;padding:14px}.editor-fallback__header{display:flex;gap:12px;align-items:center;justify-content:space-between}.editor-fallback__header strong,.editor-fallback__header span{display:block}.editor-fallback__header span{margin-top:4px;color:#667586;font-size:13px;word-break:break-all}.editor-fallback__header small{padding:4px 8px;border-radius:999px;color:#6a4d00;background:#fff1c7;font-size:12px;white-space:nowrap}.field-stack{display:grid;gap:7px}.field-stack span{color:#405565;font-size:13px;font-weight:700}.field-stack textarea{width:100%;min-height:96px;resize:vertical;padding:10px 12px;border:1px solid #cfd9df;border-radius:8px;color:#1f2b37;background:#fff;font:inherit;line-height:1.6}.field-stack textarea:focus{border-color:#2f6f79;outline:2px solid rgba(47,111,121,.18)}.date-input{min-height:36px;padding:0 10px;border:1px solid #cfd9df;border-radius:8px;color:#243445;background:#fff;font:inherit}.dashboard-status-band,.dashboard-income-band{margin-top:16px;padding:14px;border:1px solid #dce4e8;border-radius:8px;background:#fbfcfd}.dashboard-status-band{display:flex;gap:18px;align-items:center;justify-content:space-between}.dashboard-status-band>div{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.dashboard-status-band strong,.dashboard-status-band span{display:inline-block}.dashboard-status-band span{color:#53687a;font-size:13px}.dashboard-status-band dl{display:flex;flex-wrap:wrap;gap:14px;margin:0}.dashboard-status-band dt,.dashboard-status-band dd{margin:0}.dashboard-status-band dt{color:#667586;font-size:12px}.dashboard-status-band dd{margin-top:3px;color:#1f2b37;font-size:13px}.dashboard-income-band header{display:flex;gap:12px;align-items:center;justify-content:space-between}.dashboard-income-band h3{margin:0;font-size:15px;letter-spacing:0}.dashboard-income-band header span{color:#667586;font-size:13px}.dashboard-income-list{display:grid;gap:10px;margin-top:12px}.dashboard-income-row{display:grid;grid-template-columns:minmax(64px,1fr) minmax(120px,auto) minmax(160px,2fr) 56px;gap:12px;align-items:center;padding:10px 12px;border-radius:8px;background:#fff}.dashboard-income-row span,.dashboard-income-row small{color:#667586}.dashboard-income-row meter{width:100%;height:12px}.error-strip{padding:10px 12px;color:#7c2531;background:#f7dce1;font-size:13px}.hm-editor-host{overflow:hidden}.panel--winform-embed .hm-editor-host{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.hm-editor-host__canvas{display:grid;min-height:420px;place-items:center;background:#fff}.hm-editor-host--fill .hm-editor-host__canvas{flex:1 1 auto;min-height:0;place-items:stretch}.hm-editor-host--fill .hm-editor-host__canvas>:not(.hm-editor-host__placeholder){align-self:stretch;justify-self:stretch;width:100%;height:100%!important;min-height:0!important}.hm-editor-host__placeholder{display:grid;gap:8px;max-width:360px;padding:18px;border:1px dashed #a9bac4;border-radius:8px;color:#405565;text-align:center}.hm-editor-host__placeholder span{color:#667586;font-size:13px}.hm-editor-host__status{display:flex;gap:12px;justify-content:space-between;padding:10px 12px;border-top:1px solid #e2e8ec;color:#667586;font-size:13px}@media(max-width:980px){.medical-shell,.workspace-grid--templates,.workspace-grid--inpatient,.metric-grid--dashboard{grid-template-columns:1fr}.medical-sidebar{min-height:auto}.medical-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.medical-main,.medical-sidebar{padding:16px}.medical-topbar,.panel__header,.preview-band header,.consistency-band header,.dashboard-status-band,.dashboard-income-band header,.editor-fallback__header,.document-toolbar{align-items:flex-start;flex-direction:column}.medical-nav,.metric-grid,.dashboard-income-row{grid-template-columns:1fr}}
