/* RG6 local seam: compact evidence, one page scroller, native focused review task. */
.crmf { min-width: 0; }
.crmf .pgh { margin-bottom: var(--s-3); }
.crmf-header .pgh-tiles--square { grid-template-columns: repeat(5,minmax(0,1fr)); }
.crmf-header .pgh-tiles--square .pgh-tile { min-width: 0; min-height: var(--control-height-touch); flex-direction: row; align-items: center; gap: var(--s-2); padding: var(--s-2); }
.crmf-header .pgh-tiles--square .pgh-tile > .ci { flex: 0 0 var(--s-5); width: var(--s-5); height: var(--s-5); }
.crmf-header .pgh-tile strong { overflow-wrap: anywhere; }
.crmf-lead-result { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.crmf-lead-result > span { color: var(--muted); font-size: var(--t-sub); }
.crmf :is(button,input,select,textarea,summary) { min-height: var(--control-height-touch); }
.crmf :is(input,select,textarea) { min-width: 0; max-width: 100%; width: 100%; font: inherit; }
.crmf :is(h2,h3) { font-family: Inter,sans-serif; color: var(--text-heading); }
.crmf h2 { margin: 0; font-size: var(--t-section); }
.crmf h3 { margin: var(--s-3) 0 var(--s-2); font-size: var(--t-body); }
.crmf p { overflow-wrap: anywhere; }
.crmf-meta,.crmf-row small,.crmf-metric small { color: var(--muted); font-size: var(--t-sub); line-height: 1.5; }
.crmf-state,.crmf-error,.crmf-active { margin: var(--s-3) 0; padding: var(--s-3); border-left: 2px solid var(--line); font-size: var(--t-body); overflow-wrap: anywhere; }
.crmf-error { color: var(--bad-fg); border-color: var(--bad-fg); }
.crmf-state .btn,.crmf-active .btn { margin-inline-start: var(--s-2); }
.crmf-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); gap: var(--s-2); margin-block: var(--s-3); }
.crmf-metric { text-align: left; min-width: 0; display: grid; align-content: start; gap: var(--s-1); padding: var(--s-3); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); font: inherit; cursor: pointer; }
.crmf-metric strong { font-size: var(--t-section); color: var(--text-heading); }
.crmf-metric.is-selected { border-color: var(--navy); box-shadow: inset 0 -2px var(--gold); }
.crmf-methods { margin-block: var(--s-3); font-size: var(--t-body); }
.crmf :is(summary) { cursor: pointer; align-content: center; }
.crmf-methods article { margin-block: var(--s-3); border-top: 1px solid var(--line); }
.crmf-section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-block: var(--s-3); }
.crmf-section-head h2 { min-width: 0; overflow-wrap: anywhere; scroll-margin-top: calc(var(--shell-head-h,4rem) + var(--s-4)); }
.crmf-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: var(--s-4); }
.crmf-list { min-width: 0; }
.crmf-row { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 6rem minmax(12rem,.8fr); gap: var(--s-2) var(--s-3); padding: var(--s-3); border: 0; border-bottom: 1px solid var(--line); text-align: left; background: var(--surface-card); color: var(--ink); font: inherit; cursor: pointer; }
.crmf-row:hover { background: var(--wash); }
.crmf-row.is-selected { box-shadow: inset 3px 0 var(--navy); }
.crmf-row-identity { min-width: 0; }
.crmf-row-identity strong,.crmf-row-identity small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crmf-row-state { font-size: var(--t-sub); align-self: center; }
.crmf-row-facts { font-size: var(--t-sub); color: var(--muted); display: grid; gap: var(--s-1); }
.crmf-row-model { grid-column: 1 / -1; color: var(--muted); font-size: var(--t-sub); overflow-wrap: anywhere; }
.crmf-row-result { grid-column: 1 / -1; padding-block: var(--s-2); font-size: var(--t-sub); overflow-wrap: anywhere; }
.crmf-detail { min-width: 0; padding: var(--s-3); background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--r-s); }
.crmf-detail .crmf-section-head { margin-top: 0; }
.crmf-source-doors,.crmf-inline-actions,.crmf-choice-tools { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-block: var(--s-2); }
.crmf-source-doors .icon-btn { width: var(--control-height-touch); height: var(--control-height-touch); }
.crmf-facts { margin-block: var(--s-3); }
.crmf-facts > div { display: grid; grid-template-columns: minmax(7rem,.7fr) minmax(0,1fr); gap: var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }
.crmf-facts dt { color: var(--muted); font-size: var(--t-sub); }
.crmf-facts dd { margin: 0; font-size: var(--t-body); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.crmf-history { border-top: 1px solid var(--line); padding-block: var(--s-2); }
.crmf-cohort,.crmf-plan-source { border-block: 1px solid var(--line); padding-block: var(--s-3); margin-block: var(--s-3); }
.crmf-cohort-row { border-top: 1px solid var(--line); padding-block: var(--s-3); }
.crmf-editor .crmf-attest { display: flex; align-items: center; gap: var(--s-2); min-height: var(--control-height-touch); }
.crmf-editor .crmf-attest input { width: var(--control-height-touch); height: var(--control-height-touch); flex: 0 0 var(--control-height-touch); }
.crmf-history p { margin-block: var(--s-1); }
.crmf-skeleton { display: grid; gap: var(--s-2); padding-block: var(--s-3); font-size: var(--t-sub); color: var(--muted); }
.crmf-skeleton i { display: block; height: 3rem; border-radius: var(--r-s); background: var(--wash); border-bottom: 1px solid var(--line); }
.crmf-editor { min-width: 0; }
.crmf-form-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--s-3); }
.crmf-editor :is(label,.crmf-choice) { min-width: 0; display: grid; gap: var(--s-1); font-size: var(--t-body); }
.crmf-editor :is(input,select,textarea) { padding: var(--s-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-card); font: inherit; }
.crmf-editor textarea { resize: vertical; min-height: 6rem; }
.crmf-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.crmf-proof { padding-block: var(--s-3); border-block: 1px solid var(--line); }
.crmf-proof .crmf-choice { margin-block: var(--s-3); }
.crmf-editor-foot,.crmf-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding-block: var(--s-3); background: var(--surface-card); }
.crmf-editor-foot { border-top: 1px solid var(--line); margin-top: var(--s-3); }
.crmf .btn { white-space: normal; }
dialog.crmf-dialog { box-sizing: border-box; width: min(48rem,calc(100% - 2rem)); max-width: 48rem; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); background: var(--surface-card); overflow: hidden; }
dialog.crmf-dialog[open] { display: flex; flex-direction: column; }
dialog.crmf-dialog::backdrop { background: color-mix(in srgb,var(--navy-dark) 45%,transparent); }
.crmf-dialog .cse-modal-head { margin: 0; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.crmf-dialog-body { overflow-y: auto; min-height: 0; padding: var(--s-4); }
.crmf-dialog .crmf-editor-foot { position: sticky; bottom: calc(-1 * var(--s-4)); padding-bottom: var(--s-4); }
.crmf-dialog-foot { padding-inline: var(--s-4); border-top: 1px solid var(--line); flex: 0 0 auto; }
.crmf-dialog :is(input,select,textarea,button,summary) { min-height: var(--control-height-touch); }
.crmf-dialog :is(input,select,textarea) { max-width: 100%; width: 100%; font: inherit; }
.crmf-more { margin-block: var(--s-3); }
@media(min-width:1024px){.crmf-layout.has-detail { grid-template-columns: minmax(0,1fr) minmax(21rem,1fr); }.crmf-layout.has-detail .crmf-row { grid-template-columns: minmax(0,1fr) auto; }.crmf-layout.has-detail .crmf-row-facts { grid-column: 1 / -1; }.crmf-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.crmf-form-grid > :is(.crmf-choice,.crmf-proof,.crmf-field:has(textarea)) { grid-column: 1 / -1; }}
@media(max-width:640px){.crmf .pgh-tabs { flex-wrap: wrap; overflow: visible; gap: var(--s-1); }.crmf .pgh-tab { min-height: var(--control-height-touch); padding-inline: var(--s-2); font-size: var(--t-sub); }.crmf-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.crmf-metric { padding: var(--s-2); }.crmf-row { grid-template-columns: minmax(0,1fr) auto; }.crmf-row-facts { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.crmf-row-model { display: none; }.crmf-layout.has-detail .crmf-detail { order: -1; }.crmf-facts > div { grid-template-columns: minmax(0,1fr); gap: var(--s-1); }.crmf-editor-foot .btn { flex: 1 1 auto; }.crmf :is(input,select,textarea),.crmf-dialog :is(input,select,textarea) { font-size: 1rem; }dialog.crmf-dialog { margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: 100dvh; border-radius: 0; }.crmf-dialog-body { padding: var(--s-3); }.crmf-dialog .crmf-editor-foot { bottom: calc(-1 * var(--s-3)); }.crmf-dialog .cse-modal-head { padding: var(--s-3); }.crmf-dialog .cse-modal-head h2 { font-size: var(--t-section); }.crmf-dialog :is(.crmf-state,.crmf-error) { padding-inline: 0; }}
@media(prefers-reduced-motion:reduce){.crmf * { scroll-behavior: auto !important; }}
@media(max-width:640px){.crmf-header .pgh-tiles--square { grid-template-columns: repeat(2,minmax(0,1fr)); }.crmf-header .pgh-tile strong,.crmf-header .pgh-tile small { font-size: var(--t-sub); }.crmf-lead-result { display: grid; gap: var(--s-1); }}
@media(max-width:640px){.crmf-header.pgh { padding: var(--s-3); }.crmf-header .pgh-tiles--square { grid-template-columns: repeat(3,minmax(0,1fr)); }.crmf-header .pgh-tiles--square .pgh-tile { flex-direction: column; align-items: flex-start; gap: var(--s-1); padding: var(--s-2); }.crmf-header .pgh-tiles--square .pgh-tile > .ci { display: none; }.crmf-header .pgh-tiles--square .pgh-tile strong { line-height: 1.3; }}
/* The labeled native chooser keeps every Performance view on phones. Desktop
   retains flat tabs; removing the duplicate control buys space for the first row. */
@media(max-width:640px){.crmf-header .pgh-tabs { display: none; }}
