/* Small semantic accents, not alternate page themes. */
.cue-icon{width:17px;height:17px;display:inline-block;vertical-align:-3px;flex-shrink:0;pointer-events:none;margin-right:7px}
@media screen{
 :root{--cue-teal:#26776e;--cue-blue:#426b97;--cue-amber:#90651e;--cue-violet:#79618e;--cue-red:#a24b43;--cue-slate:#61717e}
 .tone-teal{--cue:var(--cue-teal);--cue-wash:#edf6f3;--cue-line:#83b7a9}
 .tone-blue{--cue:var(--cue-blue);--cue-wash:#eff4fa;--cue-line:#98b2d0}
 .tone-amber{--cue:var(--cue-amber);--cue-wash:#fcf6eb;--cue-line:#ceaf75}
 .tone-violet{--cue:var(--cue-violet);--cue-wash:#f5f1f8;--cue-line:#b3a1c4}
 .tone-red{--cue:var(--cue-red);--cue-wash:#fbf0ee;--cue-line:#cd9993}
 .tone-slate{--cue:var(--cue-slate);--cue-wash:#f1f4f6;--cue-line:#a9b6c0}
 .cue-icon{color:var(--cue,var(--cue-teal))}
 .title-row h1{display:flex;align-items:center;gap:11px}
 .title-row h1>.cue-icon{width:24px;height:24px;box-sizing:content-box;padding:9px;margin:0;border-radius:10px;background:var(--cue-wash);border:1px solid color-mix(in srgb,var(--cue-line) 40%,white)}
 .workbench-metric>span{display:flex;align-items:center}
 .workbench-metrics .workbench-metric{position:relative}
 .workbench-metrics .workbench-metric::after{content:'';position:absolute;bottom:0;left:18px;right:18px;height:2px;background:var(--cue-line);opacity:.8}
 .workbench-metric .cue-icon{width:15px;height:15px;margin-right:6px}
 .my-work-column-head{border-top:2px solid var(--cue-line,#98b2d0)}
 .my-work-column-head h2>.cue-icon{width:18px;height:18px}
 .op-column>header{border-top:2px solid var(--cue-line,#98b2d0);border-radius:7px 7px 0 0}
 .op-column>header>span{background:var(--cue-wash);color:var(--cue)}
 .op-tabs button>.cue-icon,.patient-tabs button>.cue-icon,.encounter-tabs button>.cue-icon{width:15px;height:15px;margin-right:6px}
 .op-tabs button:not(.active)>.cue-icon,.patient-tabs button:not(.active)>.cue-icon,.encounter-tabs button:not(.active)>.cue-icon{opacity:.85}
 .op-metrics>div{border-left:2px solid var(--cue-line,#a9b6c0);padding-left:12px}
 .op-metrics span>.cue-icon{width:14px;height:14px;margin-right:5px}
 .patient-section-head h2>.cue-icon,.patient-directory-head h2>.cue-icon,.reception-panel h3>.cue-icon{width:16px;height:16px}
 .patient-section-head,.patient-directory-head{border-bottom-color:#d6e2ef}
 .badge.blue{background:#edf3fb;color:#365f8e}
 .badge.neutral{background:#eef1f3;color:#5b6c76}
 .badge.warn{background:#fcf3e1;color:#825b19}
 .badge.good{background:#eaf4ef;color:#28684f}
 body[data-workspace-page="reports"] .stat{border-top:2px solid var(--cue-line)}
 .cage-card{border-top:2px solid var(--cue-line)}
 .cage-card .badge{background:var(--cue-wash);color:var(--cue)}
 @media(max-width:900px){.patient-tabs button>.cue-icon{display:none}.patient-tabs{gap:12px}.patient-tabs button{font-size:12px}}
 @media(max-width:700px){.title-row h1>.cue-icon{width:21px;height:21px;padding:7px}.op-tabs button>.cue-icon{width:14px;height:14px;margin-right:4px}.encounter-tabs button>.cue-icon{display:none}}
}
@media print{.cue-icon{display:none!important}}

.legacy-record{font-size:13px;line-height:1.7}.legacy-section{margin-top:18px;padding-top:12px;border-top:1px solid #e0e8eb}.legacy-section h3{margin-bottom:8px}.legacy-pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit}.legacy-record .table-wrap{max-height:420px;overflow:auto}.legacy-record .actions{margin:12px 0}.legacy-meta{color:#607984;overflow-wrap:anywhere}#modal:has(.legacy-record){width:min(1040px,calc(100vw - 24px))}

/* Primary titles only; no duplicate icon tile or extra header row. */
.title-row h1:has(>.page-title-art){gap:12px;align-items:center}
.page-title-art{display:block;width:60px;height:60px;object-fit:contain;flex:0 0 60px;pointer-events:none;user-select:none}
@media(max-width:700px){.page-title-art{width:48px;height:48px;flex-basis:48px}}
@media print{.page-title-art{display:none}}
