/* Drawn HMS screens (illustrations). Fixed 1200x750 canvas, scaled to fit by screens.js. */
.scr { position: relative; width: 100%; aspect-ratio: 1200 / 750; overflow: hidden; border-radius: 10px; background: #f8fafc; box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06); }
.scr .u-stage { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform-origin: 0 0; }
.u-app { display: flex; width: 1200px; height: 750px; font: 400 14px/1.4 "Inter", "Segoe UI", system-ui, sans-serif; color: #1e293b; background: #f8fafc; text-align: left; letter-spacing: 0; text-transform: none; }
.u-app * { box-sizing: border-box; }
.u-side { width: 200px; flex: none; background: #fff; border-right: 1px solid #e2e8f0; padding: 20px 14px; display: flex; flex-direction: column; }
.u-brand { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #12775f; margin: 0; }
.u-hosp { font-weight: 600; font-size: 15px; margin: 4px 0 18px; }
.u-side nav { display: flex; flex-direction: column; gap: 2px; }
.u-side nav span { padding: 7px 10px; border-radius: 6px; color: #475569; font-size: 13.5px; }
.u-side nav span.on { background: #e7f6f1; color: #0d5e4b; font-weight: 600; }
.u-user { margin-top: auto; display: flex; gap: 10px; align-items: center; font-size: 12px; color: #64748b; }
.u-user i { width: 30px; height: 30px; border-radius: 50%; background: #cbd5e1; }
.u-user b { color: #1e293b; font-weight: 600; }
.u-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.u-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.u-head h3 { font: 600 20px/1.2 "Inter", "Segoe UI", system-ui, sans-serif; margin: 0; letter-spacing: 0; color: #0f172a; }
.u-head p { margin: 3px 0 0; color: #64748b; font-size: 13px; }
.u-acts { display: flex; gap: 8px; }
.u-body { flex: 1; padding: 20px 26px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.u-btn { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 7px; background: #12775f; color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; }
.u-btn.ghost { background: #fff; color: #0d5e4b; box-shadow: inset 0 0 0 1px #b9dfd3; }
.u-btn.sm { padding: 5px 10px; font-size: 12px; }
.u-btn.full { display: flex; width: 100%; margin-top: 14px; }
.u-chip { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px; font-weight: 600; background: #f1f5f9; color: #475569; white-space: nowrap; }
.u-chip.mint { background: #dcf3ea; color: #0d5e4b; }
.u-chip.blue { background: #dbeafe; color: #1d4ed8; }
.u-chip.amber { background: #fef3c7; color: #92400e; }
.u-chip.red { background: #fee2e2; color: #b91c1c; }
.u-chip.role { background: #0f172a; color: #fff; padding: 5px 11px; font-size: 12.5px; }
.u-muted { color: #94a3b8; font-weight: 400; font-size: 12.5px; }
.u-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px 18px; }
.u-card h4 { font: 600 14px/1.3 "Inter", "Segoe UI", system-ui, sans-serif; margin: 0 0 12px; color: #0f172a; letter-spacing: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.u-row2 { display: flex; gap: 16px; align-items: stretch; min-height: 0; }
.u-grow { flex: 1; min-width: 0; }
.u-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.u-tile { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.u-tile p { margin: 0; font-size: 12.5px; color: #64748b; }
.u-tile b { font-size: 26px; font-weight: 600; color: #0f172a; line-height: 1; }
.u-tile small { color: #94a3b8; font-size: 12px; }
.u-tile.dark { background: #0f172a; border-color: #0f172a; }
.u-tile.dark p { color: #fff; font-weight: 600; }
.u-line { width: 100%; height: 170px; display: block; }
.u-line path { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.u-line .u-grid { stroke: #eef2f6; stroke-width: 1; }
.u-line .u-prev { stroke: #cbd5e1; stroke-dasharray: 5 5; }
.u-line .u-cur { stroke: #12775f; stroke-dasharray: 900; stroke-dashoffset: 900; animation: u-draw 2.4s .4s ease-out forwards; }
@keyframes u-draw { to { stroke-dashoffset: 0; } }
.u-bar { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: center; font-size: 12.5px; color: #475569; margin-bottom: 9px; }
.u-bar.wide { grid-template-columns: 170px 1fr; margin-bottom: 14px; font-size: 13px; }
.u-bar i, .u-age i, .u-cmp i { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #12775f var(--v), #eef2f6 var(--v)); }
.u-list p { margin: 0; padding: 9px 0; border-top: 1px solid #f1f5f9; font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.u-list p:first-child { border-top: 0; padding-top: 0; }
.u-list b { font-weight: 600; min-width: 52px; }
.u-alert { padding: 11px 14px; border-radius: 8px; font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.u-alert.amber { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.u-alert.red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.u-alert.sm { font-size: 12.5px; margin-top: 8px; }
.u-alert b { font-weight: 600; }
.u-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.u-form.one { grid-template-columns: 1fr; gap: 10px; }
.u-form label { display: flex; flex-direction: column; gap: 5px; }
.u-form label span { font-size: 12px; color: #64748b; font-weight: 600; }
.u-form label i { font-style: normal; border: 1px solid #e2e8f0; border-radius: 7px; padding: 9px 12px; background: #fff; }
.u-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; gap: 12px; }
.u-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.u-col { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.u-colh { display: flex; flex-direction: column; padding: 2px 4px 8px; border-bottom: 1px solid #f1f5f9; }
.u-colh b { font-weight: 600; font-size: 15px; }
.u-colh span { color: #64748b; font-size: 12.5px; }
.u-tok { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; border: 1px solid #f1f5f9; }
.u-tok em { font-style: normal; font-weight: 700; font-size: 22px; color: #94a3b8; text-align: center; }
.u-tok.is-mint { background: #f0faf6; border-color: #b9dfd3; }
.u-tok.is-mint em { color: #12775f; }
.u-tok.is-blue em { color: #1d4ed8; }
.u-vitals { display: flex; gap: 12px; align-items: stretch; }
.u-vitals > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 16px; display: flex; flex-direction: column; }
.u-vitals span { font-size: 12px; color: #64748b; }
.u-vitals b { font-size: 18px; font-weight: 600; }
.u-vitals .u-allergy { margin-left: auto; justify-content: center; border: 0; background: none; }
.u-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.u-tbl th { text-align: left; font-size: 12px; color: #64748b; font-weight: 600; padding: 0 8px 8px; border-bottom: 1px solid #e2e8f0; }
.u-tbl td { padding: 10px 8px; border-bottom: 1px solid #f1f5f9; }
.u-tbl .r { text-align: right; }
.u-tbl .u-sum td { font-weight: 700; border-bottom: 0; font-size: 15px; }
.u-lines i { display: block; height: 9px; border-radius: 5px; background: #eef2f6; margin-bottom: 8px; }
.u-kv { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.u-kv b { font-weight: 600; }
.u-note { margin-top: 12px; font-size: 12.5px; color: #64748b; background: #f8fafc; border-radius: 7px; padding: 9px 11px; }
.u-rx { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; margin-bottom: 6px; border: 1px solid #f1f5f9; }
.u-rx.on { background: #f0faf6; border-color: #b9dfd3; }
.u-rx b { display: block; font-weight: 600; }
.u-rx span { font-size: 12.5px; color: #64748b; }
.u-legend { display: flex; gap: 16px; font-size: 12.5px; color: #64748b; margin-bottom: 12px; }
.u-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.u-ward { margin-bottom: 14px; }
.u-ward h5 { margin: 0 0 7px; font: 600 12.5px/1 "Inter", "Segoe UI", system-ui, sans-serif; color: #475569; letter-spacing: 0; }
.u-beds { display: flex; flex-wrap: wrap; gap: 6px; }
.u-beds i { font-style: normal; width: 50px; height: 34px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.b-o, .u-legend .b-o::before { background: #12775f; color: #fff; }
.b-f, .u-legend .b-f::before { background: #dcf3ea; color: #0d5e4b; }
.b-c, .u-legend .b-c::before { background: #fde68a; color: #78350f; }
.b-x, .u-legend .b-x::before { background: #cbd5e1; color: #475569; }
.u-legend span.b-o, .u-legend span.b-f, .u-legend span.b-c, .u-legend span.b-x { background: none; color: #64748b; }
.u-modes { display: flex; gap: 6px; }
.u-modes span { flex: 1; text-align: center; padding: 8px 0; border-radius: 7px; border: 1px solid #e2e8f0; font-size: 12.5px; font-weight: 600; color: #475569; }
.u-modes span.on { border-color: #12775f; color: #0d5e4b; background: #f0faf6; }
.u-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.u-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; border-top: 4px solid #e2e8f0; }
.u-step.done { border-top-color: #12775f; }
.u-step.now { border-top-color: #1d4ed8; }
.u-step h5 { margin: 0; font: 600 15px/1.2 "Inter", "Segoe UI", system-ui, sans-serif; letter-spacing: 0; }
.u-step p { margin: 3px 0 10px; font-size: 12.5px; color: #64748b; }
.u-check { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.u-check i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #cbd5e1; flex: none; position: relative; }
.u-check.on i { background: #12775f; border-color: #12775f; }
.u-check.on i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.u-kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.u-kcol { background: #f1f5f9; border-radius: 10px; padding: 10px; min-height: 210px; }
.u-kcol h5 { margin: 2px 2px 10px; font: 600 12.5px/1 "Inter", "Segoe UI", system-ui, sans-serif; color: #475569; letter-spacing: 0; }
.u-kcard { background: #fff; border-radius: 8px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.u-kcard b { display: block; font-weight: 600; }
.u-kcard span { font-size: 12px; color: #64748b; }
.u-age { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: 12.5px; color: #64748b; }
.u-age span { display: block; margin-bottom: 6px; }
.u-tabs { display: flex; gap: 6px; }
.u-tabs span { padding: 7px 13px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0; font-size: 13px; color: #475569; }
.u-tabs span.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.u-cmp { display: grid; grid-template-columns: 150px repeat(3, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.u-cmp i:nth-of-type(2) { background: linear-gradient(90deg, #1d4ed8 var(--v), #eef2f6 var(--v)); }
.u-cmp i:nth-of-type(3) { background: linear-gradient(90deg, #b4966a var(--v), #eef2f6 var(--v)); }
.u-legend.g { margin: 12px 0 0; }
.u-legend.g span:nth-child(1)::before { background: #12775f; }
.u-legend.g span:nth-child(2)::before { background: #1d4ed8; }
.u-legend.g span:nth-child(3)::before { background: #b4966a; }
.u-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.u-time p { margin: 0; padding: 0 0 14px 18px; border-left: 2px solid #dcf3ea; position: relative; font-size: 12.5px; color: #64748b; }
.u-time p::before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #12775f; }
.u-time b { display: block; color: #1e293b; font-weight: 600; font-size: 13.5px; }
