.cmr{--cmr-ink:inherit;--cmr-line:color-mix(in srgb,currentColor 24%,transparent);--cmr-soft:color-mix(in srgb,currentColor 5%,transparent);font:inherit;font-size:16px;line-height:1.55;color:inherit;width:100%;margin:0 auto 3rem;box-sizing:border-box;text-align:left}
.cmr *{box-sizing:border-box}.cmr [hidden]{display:none!important}.cmr h2,.cmr h3,.cmr h4,.cmr p{color:inherit;margin:0 0 .8rem;font-family:inherit}.cmr h2{font-size:1.45rem}.cmr h3{font-size:1.05rem}.cmr h4{font-size:1rem;margin-top:1.3rem}.cmr small,.cmr .cmr-muted{font-size:.875rem;line-height:1.5;opacity:.76}.cmr a{color:inherit;text-decoration:underline}.cmr button,.cmr input,.cmr textarea,.cmr select{font:inherit;color:inherit;letter-spacing:normal;border:1px solid var(--cmr-line);border-radius:5px;box-shadow:none;background:transparent;min-width:0;text-transform:none;line-height:1.45}.cmr button{cursor:pointer;min-height:42px;padding:.5rem .8rem;white-space:normal;font-size:.9rem;transition:background .12s ease}.cmr button:hover{background:var(--cmr-soft)}.cmr button:disabled{opacity:.45;cursor:default}.cmr input,.cmr select{width:100%;min-height:44px;padding:.5rem .65rem}.cmr select{background-color:transparent!important;color:inherit!important}.cmr select option{background-color:var(--cmr-option-bg,#f0f0f0);color:var(--cmr-option-fg,#171717)}.cmr textarea{width:100%;padding:.65rem;resize:vertical;min-height:90px;display:block;white-space:pre-wrap}.cmr input:focus-visible,.cmr textarea:focus-visible,.cmr select:focus-visible,.cmr button:focus-visible,.cmr summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}.cmr input::placeholder{color:inherit;opacity:.48}.cmr .cmr-primary{background:var(--cmr-soft);font-weight:700;border-color:currentColor}.cmr label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem}.cmr label input,.cmr label select,.cmr label textarea{font-size:1rem}.cmr form{margin:0}.cmr [data-notice]{padding:.75rem 0;margin:0;border-bottom:1px solid var(--cmr-line);white-space:pre-wrap}.cmr [data-notice][data-type=error]{font-weight:600}.cmr [data-reauth]{display:flex;gap:.7rem;align-items:end;padding:1rem 0}.cmr-top,.cmr-row{display:flex;justify-content:space-between;align-items:center;gap:.7rem}.cmr-top{padding:.3rem 0 1rem;border-bottom:1px solid var(--cmr-line)}.cmr-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.cmr-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:1.4rem;padding-top:1.2rem}.cmr-sidebar{border-right:1px solid var(--cmr-line);padding-right:1rem;min-width:0}.cmr-sidebar h3{margin:0}.cmr-sidebar>.cmr-row{align-items:flex-start;margin-bottom:.7rem;flex-wrap:wrap}.cmr-sidebar [data-list]{max-height:74vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:currentColor transparent}.cmr-patient-row{position:relative;border-bottom:1px solid var(--cmr-line);padding:0 0 .5rem;margin:0 0 .5rem}.cmr .cmr-patient{width:100%;border:0;text-align:left;padding:.7rem .45rem}.cmr .cmr-patient.is-active{background:var(--cmr-soft);box-shadow:inset 3px 0 currentColor}.cmr-patient-top{display:flex;justify-content:space-between;align-items:start;gap:.3rem}.cmr-patient-top b{overflow-wrap:anywhere;font-weight:600}.cmr-patient-top>span{font-size:.8rem;opacity:.7}.cmr-patient small{display:block;margin-top:.3rem}.cmr .cmr-delete{min-height:30px;padding:.2rem .4rem;border:0;text-decoration:underline;font-size:.8rem}.cmr-main{min-width:0}.cmr-patient-head{margin-bottom:1rem}.cmr-meta{display:grid;grid-template-columns:minmax(150px,1fr) 90px 120px;gap:.7rem}.cmr-status-row{justify-content:flex-start;gap:.7rem;margin:.6rem 0 .3rem;flex-wrap:wrap}.cmr-status-row [data-save-state]{font-size:.875rem}.cmr-status-row button{min-height:32px;font-size:.8rem;padding:.2rem .5rem}.cmr-tabs{display:flex;gap:.45rem;flex-wrap:wrap;padding:.7rem 0;border-top:1px solid var(--cmr-line);border-bottom:1px solid var(--cmr-line);margin-bottom:1rem}.cmr-tabs button[aria-pressed=true]{font-weight:700;border-color:currentColor;background:var(--cmr-soft)}.cmr-tabs button[data-act]{font-size:.8rem;min-height:38px;border-color:transparent;text-decoration:underline}.cmr-section{border-bottom:1px solid var(--cmr-line);margin:0}.cmr summary{cursor:pointer;font-weight:600;min-height:50px;padding:.8rem .1rem}.cmr summary small{font-weight:400;margin-left:.6rem}.cmr-section-body{padding:.4rem 0 1.3rem}.cmr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1rem}.cmr-field.cmr-wide{grid-column:1/-1}.cmr-summary{border-bottom:1px solid var(--cmr-line);padding-bottom:.6rem;margin-bottom:.4rem}.cmr-summary p{font-size:.9rem;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:.6rem}.cmr-summary p>b{margin-right:.4rem}.cmr-lab-summary{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;font-size:.875rem;margin:.7rem 0}.cmr-lab-summary small{display:block;font-size:.75rem}.cmr-lab-tools{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:1rem}.cmr-lab-tools button{grid-column:1/-1;justify-self:start}.cmr-lab-row{padding:.7rem 0;border-top:1px solid var(--cmr-line)}.cmr-lab-name{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-bottom:.5rem}.cmr-lab-name input{min-height:36px;font-size:.9rem}.cmr-lab-values{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}.cmr-lab-values>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:.5rem}.cmr-lab-values input{font-size:.9rem}.cmr-repeat{padding:.7rem 0 1rem;border-bottom:1px solid var(--cmr-line);margin-bottom:1rem}.cmr-repeat>.cmr-row{margin-bottom:.8rem}.cmr-repeat>.cmr-field{margin-bottom:.7rem}.cmr-repeat .cmr-row button{font-size:.8rem;min-height:32px}.cmr-chart{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:1.2rem}.cmr-chart .cmr-row h3{margin-bottom:.6rem}.cmr .cmr-output{min-height:520px;font-family:inherit;line-height:1.7}.cmr-chart-main>.cmr-actions{margin-top:.7rem}.cmr-template{padding-left:1rem;border-left:1px solid var(--cmr-line)}.cmr-template select,.cmr-template textarea{margin-bottom:.75rem}.cmr-template textarea{min-height:360px;line-height:1.65}.cmr-generated{margin-top:1rem;border-top:1px solid var(--cmr-line)}.cmr-generated textarea{font-size:.9rem;line-height:1.6}.cmr-generated .cmr-actions{margin:.7rem 0}.cmr-empty{padding:3rem 1rem}.cmr-empty p{max-width:460px}.cmr-unlock{max-width:450px;padding:1rem 0 2rem}.cmr-unlock form{display:flex;align-items:end;gap:.7rem;margin:1rem 0}.cmr-unlock label{max-width:190px}.cmr-unlock input{text-align:center;font-size:1.2rem;letter-spacing:.35em}.cmr-unlock label:has(input[hidden]){display:none}.cmr-page .entry-content>.cmr{max-width:1320px!important;width:100%}.cmr-page .entry-content:has(>.cmr){max-width:1320px!important}.cmr-page .entry-content{padding-top:0}
@media(max-width:1150px){.cmr-chart{grid-template-columns:1fr}.cmr-template{border-left:0;border-top:1px solid var(--cmr-line);padding:1rem 0 0}.cmr-template textarea{min-height:210px}.cmr-lab-values>div{grid-template-columns:1fr}}
@media(max-width:760px){.cmr{font-size:16px}.cmr-workspace{display:block;padding-top:.7rem}.cmr-sidebar{border-right:0;border-bottom:1px solid var(--cmr-line);padding:0 0 .6rem;margin-bottom:1rem}.cmr-sidebar [data-list]{max-height:200px}.cmr-patient-row{display:flex;align-items:center;gap:.3rem;padding:0;margin:0}.cmr .cmr-patient{padding:.6rem}.cmr-patient small{margin-top:.15rem}.cmr .cmr-delete{padding:.5rem;min-height:44px}.cmr-meta{grid-template-columns:1fr 1fr}.cmr-meta>label:first-child{grid-column:1/-1}.cmr-fields{gap:.8rem}.cmr-tabs{gap:.3rem}.cmr-tabs button[data-view]{flex:1;min-height:46px}.cmr-tabs button[data-act]{flex:1 1 auto}.cmr-chart{display:block}.cmr .cmr-output{min-height:430px}.cmr-empty{padding:1.5rem 0}.cmr-lab-tools{grid-template-columns:1fr}.cmr-lab-tools button{grid-column:auto}.cmr-lab-values{gap:.5rem}.cmr-lab-values input[type=datetime-local]{font-size:.875rem}.cmr input[type=datetime-local]{max-width:100%;min-width:0}.cmr-section-body{padding-bottom:1.1rem}.cmr button{min-height:44px}}
@media(max-width:420px){.cmr-fields{grid-template-columns:1fr}.cmr-lab-values{grid-template-columns:1fr}.cmr-lab-values>div{grid-template-columns:80px minmax(0,1fr)}.cmr-top b{font-size:.95rem}.cmr-top .cmr-actions{gap:.25rem}.cmr-top button{padding:.45rem .6rem;font-size:.8rem}.cmr-summary summary small{margin-left:0}.cmr [data-reauth]{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.cmr button{transition:none}}
@media print{.cmr-top,.cmr-sidebar,.cmr-tabs,.cmr-template,.cmr-actions,.cmr-generated,.cmr [data-notice]{display:none!important}.cmr-workspace,.cmr-chart{display:block}.cmr textarea{border:0;min-height:0}}

/* 1.1: paste-first labs; no white closed select controls. */
.cmr .cmr-import{padding:16px;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:10px;margin-bottom:16px}
.cmr .cmr-import h4{margin:0 0 12px}.cmr .cmr-import-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:12px 0}.cmr .cmr-import-controls label{flex:1;min-width:170px}
.cmr .cmr-import-rows{display:grid;gap:8px;margin:12px 0}.cmr .cmr-import-row{display:grid;grid-template-columns:minmax(160px,1.3fr) minmax(90px,1fr) minmax(110px,1fr);gap:8px 12px;padding:12px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:8px;align-items:center}
.cmr .cmr-import-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;cursor:pointer}.cmr .cmr-import-check input{width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;accent-color:currentColor}.cmr .cmr-import-check small{display:block;opacity:.7;overflow-wrap:anywhere}.cmr .cmr-import-hint{grid-column:1/-1;opacity:.8;overflow-wrap:anywhere}
.cmr .cmr-import-row .cmr-field{margin:0}.cmr .cmr-unmatched pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;color:inherit;background:transparent;font-size:13px}.cmr .cmr-manual{margin:18px 0}.cmr .cmr-manual>summary{padding:12px 0;cursor:pointer;font-weight:600}
.cmr .cmr-lab-saved{padding:14px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:8px}.cmr .cmr-lab-saved p{margin:6px 0;font-size:14px;overflow-wrap:anywhere}.cmr .cmr-lab-saved small{opacity:.7}
@media(max-width:600px){.cmr .cmr-import{padding:12px}.cmr .cmr-import-row{grid-template-columns:1fr 1fr}.cmr .cmr-import-check{grid-column:1/-1;min-height:44px}.cmr .cmr-import-controls button{flex:1}.cmr .cmr-import .cmr-actions button{width:100%}}

/* 1.2: reference ranges appear under out-of-range results only. */
.cmr .cmr-high{color:#b01527!important}.cmr .cmr-low{color:#1558ad!important}.cmr .cmr-range{display:block;font-size:.82rem;text-decoration:underline;text-underline-offset:3px;line-height:1.6}.cmr .cmr-compare-note{display:block;opacity:.8;font-size:.8rem}.cmr .cmr-import-comparison{grid-column:1/-1}.cmr .cmr-lab-value{display:inline-block;vertical-align:top}.cmr .cmr-import-row>.cmr-field:last-of-type{grid-column:1/-1}
.cmr .cmr-image-drop{border:1px dashed currentColor;border-radius:8px;padding:18px;margin:14px 0;text-align:center}.cmr .cmr-image-drop:focus{outline:2px solid currentColor;outline-offset:3px}.cmr .cmr-image-drop .cmr-actions{justify-content:center}.cmr .cmr-file-label{padding:8px 12px;border:1px solid var(--cmr-line);border-radius:5px;cursor:pointer}.cmr .cmr-file-label input{max-width:240px;font-size:.85rem;min-height:36px;padding:0;border:0}.cmr .cmr-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cmr .cmr-image-card{min-width:0;border:1px solid var(--cmr-line);border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:10px}.cmr .cmr-image-card img{display:block;width:100%;max-height:240px;object-fit:contain;background:#101010}.cmr .cmr-image-zoom{padding:0;border:0;overflow:auto}.cmr .cmr-image-zoom.is-expanded img{width:auto;max-width:none;max-height:none}.cmr .cmr-image-zoom.is-expanded{max-height:75vh}.cmr .cmr-image-card:has(.is-expanded){grid-column:1/-1}.cmr .cmr-image-card .cmr-field{margin:0}
@media(max-width:700px){.cmr .cmr-image-grid{grid-template-columns:1fr}.cmr .cmr-image-drop{padding:12px}.cmr .cmr-file-label{width:100%;align-items:center}}
.cmr input[type=file]::file-selector-button{font:inherit;color:inherit;background:transparent;border:1px solid var(--cmr-line);border-radius:4px;padding:6px 8px;margin-right:8px;cursor:pointer}

/* 1.3: user workspaces and live result comparison. */
.cmr .cmr-unlock form{flex-wrap:wrap}.cmr .cmr-unlock label:has([data-profile]){flex:1 1 100%;max-width:none}
.cmr .cmr-user-label{display:block;font-size:.82rem;margin-top:.25rem;overflow-wrap:anywhere}
.cmr .cmr-top{flex-wrap:wrap}.cmr .cmr-profile-settings{border-bottom:1px solid var(--cmr-line)}
.cmr .cmr-profile-settings summary{font-size:.85rem;min-height:44px}.cmr .cmr-profile-settings form{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap;padding-bottom:.7rem}
.cmr .cmr-profile-settings label{flex:1;max-width:320px}.cmr .cmr-manual-comparison{grid-column:1/-1;font-size:.85rem}
@media print{.cmr .cmr-profile-settings{display:none}}

/* 1.4: a live overview of entered fields; input sections stay collapsed. */
.cmr .cmr-summary>h3{font-size:1rem;margin:.7rem 0 .3rem}
.cmr .cmr-summary-group{padding:.45rem 0;border-bottom:1px solid var(--cmr-line)}
.cmr .cmr-summary-group:last-child{border-bottom:0}.cmr .cmr-summary-group h4{font-size:.875rem;margin:0 0 .35rem;font-weight:650}
.cmr .cmr-summary-group p{margin:0 0 .35rem}.cmr .cmr-lab-summary>div{min-width:125px;max-width:100%;overflow-wrap:anywhere}
.cmr .cmr-lab-summary>div>div{margin-top:.2rem}.cmr .cmr-sync-notice{padding:.5rem 0;font-size:.85rem}

/* 1.6: patient sex and specimen/analyzer selection. */
.cmr .cmr-meta{grid-template-columns:minmax(150px,1fr) 90px 90px 120px}
@media(max-width:700px){.cmr .cmr-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.cmr .cmr-meta>label:first-child{grid-column:1/-1}}
