.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; }}
@media(max-width:640px){.crmf-header .pgh-tabs { display: none; }}
/* fetch-2017: leading retained measure and quieter supporting evidence. */
.crmf .crmp-navigation.pgh,.crmf .crmp-scope.pgh { margin-bottom: 0; }
.crmf-hero { display: grid; grid-template-columns: minmax(13rem,.8fr) minmax(0,1.3fr); gap: var(--s-5); padding-block: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); }
.crmf .crmf-lead-result { display: grid; align-content: start; justify-content: stretch; gap: var(--s-2); border: 0; padding: 0; }
.crmf .crmf-lead-result strong { font-size: var(--t-display); line-height: 1.15; }
.crmf .crmf-lead-label { font-size: var(--t-body); color: var(--ink); }
.crmf .crmf-inspect { color: var(--navy); margin-top: var(--s-2); }
.crmf .crmf-lead-result:hover { background: var(--wash); }
.crmf .crmf-lead-result.is-selected { box-shadow: inset 0 -2px var(--gold); }
.crmf-supporting { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--s-3); align-content: center; }
.crmf-supporting .crmf-metric { border: 0; padding: var(--s-2) 0; border-radius: 0; background: transparent; }
.crmf-supporting .crmf-metric > span { font-size: var(--t-sub); color: var(--muted); }
.crmf-context { margin-block: var(--s-3); font-size: var(--t-sub); line-height: 1.5; color: var(--muted); }
.crmf .crmf-active { padding: 0; margin: 0 0 var(--s-3); border: 0; font-size: var(--t-sub); }
.crmf-evidence { border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-2); }
.crmf-evidence > .crmf-meta { margin-block: var(--s-2); }
.crmf .crmf-row { padding-inline: 0; }
.crmf .crmf-row-identity strong,.crmf .crmf-row-identity small { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.crmf .crmf-layout.has-detail .crmf-list { padding-right: var(--s-3); }
.crmf .crmf-detail { border-radius: 0; border-width: 0 0 0 1px; padding: 0 0 0 var(--s-4); }
.crmf-methods { border-top: 1px solid var(--line); padding-block: var(--s-2); }
.crmf-methods > summary { font-weight: 600; }
.crmf-methods .crmf-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s-3); }
.crmf-methods .crmf-metric { border-width: 0 0 1px; border-radius: 0; padding-inline: 0; }
.crmf #crmForecastEvidenceTitle { scroll-margin-top: calc(var(--app-sticky-top,var(--phone-nav-height,0px)) + var(--control-height-touch) + var(--s-4)); }
@media(max-width:1000px) {
 .crmf-hero { grid-template-columns: minmax(12rem,.8fr) minmax(0,1.2fr); gap: var(--s-4); }
 .crmf-supporting { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .crmf .crmf-detail { border-width: 1px 0 0; padding: var(--s-3) 0 0; }
}
@media(max-width:640px) {
 .crmf-hero { grid-template-columns: minmax(0,1fr); gap: var(--s-3); }
 .crmf-supporting { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .crmf .crmf-layout.has-detail .crmf-list { display: none; }
 .crmf .crmf-layout.has-detail .crmf-detail { border: 0; padding: 0; }
 .crmf--detail .crmf-hero,.crmf--detail .crmf-context { display: none; }
 .crmf-methods .crmf-summary { grid-template-columns: minmax(0,1fr); }
}

.crmf-scope .pgh-top { order: 3; flex: 0 0 auto; }
.crmf-scope .pgh-titles:empty { display: none; }
.crmf-scope .pgh-acts { width: auto; flex: 0 0 auto; }
.crmf-scope .pgh-nav { order: 1; flex: 0 0 auto; }
.crmf-scope .pgh-meta { order: 2; flex: 1 1 auto; }
.crmf-scope .pgh-status { order: 4; }
.crmf-scope .pgh-acts .btn { width: auto; flex: 0 0 auto; }
@media(max-width:640px) {
 .crmf-scope .pgh-nav { width: auto; }
 .crmf-scope .pgh-meta { flex-basis: calc(100% - 6rem); }
 .crmf-scope .pgh-top { flex-basis: 100%; margin-top: var(--s-1); }
 .crmf-scope .pgh-acts { margin-left: 0; }
}

.crmf.crmp-report .crmf-source-doors .icon-btn { min-width: var(--control-height-touch); width: var(--control-height-touch); min-height: var(--control-height-touch); height: var(--control-height-touch); }
@media(max-width:640px) {
 .crmf-supporting { grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--s-2); }
 .crmf-supporting .crmf-metric strong { font-size: var(--t-body); }
 .crmf-supporting .crmf-metric > span { overflow-wrap: anywhere; }
}
