/* R6.113: local layout only. Existing Safira / Liquid Glass surfaces stay authoritative. */
#cmlDialog .cml-drug-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--cml-line,#9ec5ef40)}
#cmlDialog .cml-drug-result>div:first-child{min-width:0;display:grid;gap:3px}
#cmlDialog .cml-drug-result strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}
#cmlDialog .cml-drug-result small{color:var(--cml-muted,#b5c7d5)}
#cmlDialog .cml-treatment-list{min-width:0}
#cmlDialog .cml-treatment-scroll{max-width:100%;overflow:auto;border:1px solid var(--cml-line,#9ec5ef40);border-radius:16px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-color:#86b9ff66 transparent}
#cmlDialog .cml-treatment-table{width:100%;min-width:1040px;border-collapse:separate;border-spacing:0;font-size:15px;line-height:1.5;text-align:left;color:var(--cml-text,#f4f5f7);font-variant-numeric:tabular-nums}
#cmlDialog .cml-treatment-table :is(th,td){padding:16px 18px;border-bottom:1px solid var(--cml-line,#9ec5ef40);vertical-align:top;min-width:110px}
#cmlDialog .cml-treatment-table thead th{font-size:12px;letter-spacing:.045em;font-weight:650;background:#12273b;color:#cfe4ff;white-space:nowrap}
#cmlDialog .cml-treatment-table tbody th{position:sticky;left:0;z-index:1;min-width:205px;max-width:260px;background:#10253a;box-shadow:1px 0 0 var(--cml-line,#9ec5ef40)}
#cmlDialog .cml-treatment-table tr:last-child :is(th,td){border-bottom:0}
#cmlDialog .cml-treatment-table td{overflow-wrap:anywhere}
#cmlDialog .cml-treatment-table small{display:block;margin-top:6px;font-size:12px;line-height:1.5;font-weight:400;color:#b8cde4}
#cmlDialog .cml-treatment-table tbody th button{display:block;text-align:left;min-height:44px;width:100%;font-weight:650;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#cmlDialog .cml-treatment-table td button{white-space:nowrap}
#cmlDialog .cml-treatment-table tr:focus-within td{background:#86b9ff0c}
#cmlDialog .cml-treatment-editor .cml-actions{margin-top:18px}
#cmlDialog .cmm-patient-action{margin:16px 0 22px}
#cmlDialog .cml-hc-guide{display:grid;gap:14px}
#cmlDialog .cml-hc-guide label{display:grid;gap:8px;margin:16px 0}
#cmlDialog .cml-hc-guide textarea{min-height:94px}
@media(max-width:640px){
 #cmlDialog .cml-drug-result{align-items:stretch;flex-direction:column;gap:12px}
 #cmlDialog .cml-drug-result .cml-actions{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:8px}
 #cmlDialog .cml-drug-result .cml-actions button{min-height:48px;font-size:14px;line-height:1.4}
 #cmlDialog .cml-treatment-table tbody th{min-width:170px;max-width:190px}
 #cmlDialog .cml-treatment-table :is(th,td){padding:14px 12px}
}

.cml-treatment-group th{padding:.8rem .7rem;background:rgba(86,142,204,.13);color:var(--ink,#eef4ff);font-weight:700;text-align:left;border-top:1px solid rgba(148,184,224,.25)}
#cmlDialog input:focus-visible,#cmlDialog select:focus-visible,#cmlDialog textarea:focus-visible{outline:2px solid #8fc5ff;outline-offset:3px}
