/* Single readable document; lightweight section pills and real edit controls. */
.mf-review-dialog{padding:0;border:1px solid #e5e7eb;border-radius:20px;overflow:hidden;background:#fff;max-height:calc(var(--mf-vh,100dvh) - 32px)}
.mf-review-dialog[open]{display:flex;flex-direction:column}
.mf-review-dialog>header{flex:none;background:#fff;color:#292d2d;margin:0;padding:12px 16px;gap:12px;border-bottom:1px solid #eceeef}
.mf-review-dialog>header h2{color:inherit;font-size:16px;line-height:1.5}
.mf-review-dialog>header .mf-circle{width:36px;height:36px;min-height:36px;background:transparent;color:#292d2d;border:0}
.mf-review-dialog .mf-review-body{flex:1;min-height:0;max-height:none;overflow-y:auto;padding:16px 18px;scrollbar-width:none;background:#fff;animation:mf-document-enter 180ms cubic-bezier(.23,1,.32,1)}
.mf-review-dialog .mf-review-body>.mf-materials-note:first-child{margin:0 0 4px;font-size:12px;line-height:1.6}
.mf-review-dialog .mf-document-hint{margin:0 0 18px;font-size:11px;color:#71767b;line-height:1.6}
.mf-document-surface .mf-document-field{position:relative;display:block;margin:0 0 18px;padding:0 0 14px;border:0;border-bottom:1px solid #eceeef;border-radius:0;background:transparent;overflow:visible}
.mf-document-surface .mf-document-field>.mf-document-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:0;min-height:36px;background:transparent;color:#292d2d;font-size:13px;line-height:1.5;font-weight:600}
.mf-document-surface .mf-document-heading .mf-section-title{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#292d2d;color:#fff;font-size:12px;line-height:1.5;font-weight:550}
.mf-document-surface .mf-document-heading small{margin:0;color:#71767b;font-size:11px;font-weight:400}
.mf-document-surface .mf-document-edit{display:grid;place-items:center;width:36px;height:36px;padding:8px;border:0;border-radius:10px;background:transparent;color:#71767b;cursor:pointer;transition:transform 120ms cubic-bezier(.23,1,.32,1),background-color 120ms,color 120ms}
.mf-document-surface .mf-document-edit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mf-document-surface .mf-document-edit:not(:disabled):active{transform:scale(.97);background:#e7e9eb;color:#292d2d}
.mf-document-surface .mf-document-edit:focus-visible{outline:2px solid #292d2d;outline-offset:2px}
.mf-document-surface .mf-document-field textarea{display:block;box-sizing:border-box;width:100%;padding:3px 0;min-height:27px;max-height:none;overflow:hidden;resize:none;border:0;border-radius:6px;background:transparent;color:#292d2d;font:inherit;font-size:16px;line-height:1.7;box-shadow:none;outline:none;transition:background-color 120ms cubic-bezier(.23,1,.32,1),box-shadow 120ms cubic-bezier(.23,1,.32,1)}
.mf-document-surface .mf-document-field textarea:focus-visible{background:#f4f5f6;box-shadow:0 0 0 5px #f4f5f6}
.mf-document-surface .mf-document-field textarea:disabled,.mf-document-surface .mf-document-field textarea[readonly]{color:#71767b}
.mf-document-surface .mf-document-field[data-field=title]{border:0;padding-bottom:0;margin-bottom:18px}
.mf-document-surface .mf-document-field[data-field=title]>.mf-document-heading{position:absolute;right:0;top:0;min-height:0;margin:0}
.mf-document-surface .mf-document-field[data-field=title] textarea{padding-right:40px;font-size:19px;line-height:1.6;font-weight:600}
.mf-document-surface .mf-document-field[data-field=questions]{background:#f4f5f6;padding:10px 12px;border:0;border-radius:12px}
.mf-review-dialog .mf-brief-details{margin:0 0 14px;border:0;padding:0}
.mf-review-dialog .mf-brief-details>summary{font-size:13px;font-weight:600;min-height:36px;padding:6px 0;cursor:pointer}
.mf-review-dialog .mf-brief-details[open]>summary{margin-bottom:10px}
.mf-review-dialog .mf-review-footer{flex:none;padding:10px 16px 12px;border-top:1px solid #eceeef;background:#fff}
.mf-review-dialog .mf-review-footer>.mf-check{margin:0 0 4px;min-height:44px;font-size:12px;line-height:1.5}
.mf-review-dialog .mf-review-actions{margin:0;padding:0;justify-content:flex-end;gap:8px;border:0;background:#fff}
.mf-review-dialog .mf-review-actions .mf-primary:disabled{background:#e7e9eb;color:#656b70;opacity:1;cursor:default}
.mf-review-dialog .mf-footer-hint{margin:5px 0 0;text-align:right;font-size:11px;line-height:1.5;color:#71767b}
.mf-review-dialog>.mf-materials-note{padding:18px;margin:0}
@keyframes mf-document-enter{from{opacity:0;translate:0 2px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.mf-review-dialog .mf-review-body{animation:none}.mf-document-surface .mf-document-field textarea,.mf-document-surface .mf-document-edit{transition:none}.mf-document-surface .mf-document-edit:active{transform:none}}

/* Original professional controls retain their names, values and listeners. */
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native]{background:#fff!important;color:#292d2d;border:0!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) :is(.mf-document-surface[data-mf-document-native] .mf-document-field,.mf-document-surface[data-mf-document-native].mf-document-field){padding:0 0 14px!important;border:0!important;border-bottom:1px solid #eceeef!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0 0 18px!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) :is(.mf-document-surface[data-mf-document-native] .mf-document-field,.mf-document-surface[data-mf-document-native].mf-document-field)>.mf-document-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 6px!important;padding:0!important;min-height:36px!important;background:transparent!important;grid-column:1/-1}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) :is(.mf-document-surface[data-mf-document-native] .mf-document-field,.mf-document-surface[data-mf-document-native].mf-document-field)>.mf-document-heading>.mf-section-title{display:inline-flex!important;padding:4px 10px!important;background:#292d2d!important;color:#fff!important;border-radius:999px!important;font-size:12px!important;line-height:1.5!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) :is(.mf-document-surface[data-mf-document-native] .mf-document-field,.mf-document-surface[data-mf-document-native].mf-document-field)>.mf-document-heading>small{font-size:11px;color:#71767b;margin-left:auto;font-weight:400}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-control{box-sizing:border-box!important;width:100%!important;max-height:none!important;min-height:32px!important;padding:3px 0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#292d2d!important;font-size:16px!important;line-height:1.7!important;box-shadow:none!important;outline:none!important;resize:none!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] textarea.mf-document-control{overflow:hidden!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-control:focus-visible{background:#f4f5f6!important;box-shadow:0 0 0 5px #f4f5f6!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-control:disabled,html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-control[readonly]{color:#71767b!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-heading>.mf-document-edit{flex:none;display:grid!important;place-items:center!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:8px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#71767b!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-heading>.mf-document-edit:active{background:#e7e9eb!important;color:#292d2d!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-heading>.mf-document-edit[hidden],html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-heading>small[hidden]{display:none!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] [data-document-title=true]>.mf-document-heading{justify-content:flex-end!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] [data-document-title=true]>.mf-document-heading>.mf-section-title{background:transparent!important;color:#71767b!important;padding:0!important;font-size:11px!important;margin-right:auto}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] [data-document-title=true] .mf-document-control{font-size:19px!important;font-weight:600!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-hint{font-size:11px;line-height:1.6;color:#71767b}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-footer{flex:none;padding:10px 16px 12px!important;background:white!important;border-top:1px solid #eceeef!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-footer label:has(input[type=checkbox]){min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-footer .mf-footer-hint{min-height:17px;margin:5px 0 0;text-align:right;font-size:11px;line-height:1.5;color:#71767b}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-footer .cw-page-actions{margin:0;padding:0;gap:8px;box-shadow:none;background:transparent}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-footer>button{min-height:44px;border-radius:999px}
html body .cw-dialog:has(.mf-document-modal){padding:0!important;width:min(440px,calc(100vw - 24px))!important;max-height:calc(var(--mf-vh,100dvh) - 32px)!important;border-radius:20px!important;overflow:hidden!important}
html body .cw-dialog:has(.mf-document-modal) .cw-sheet{display:flex;flex-direction:column;max-height:inherit;padding:0!important;overflow:hidden}
html body .cw-dialog:has(.mf-document-modal) .cw-sheet>header{flex:none;background:white;padding:12px 16px;border-bottom:1px solid #eceeef}
html body .cw-dialog:has(.mf-document-modal) .cw-sheet-body{min-height:0;overflow:hidden!important;padding:0!important;max-height:none!important}
html body .mf-document-modal{display:flex;flex-direction:column;min-height:0;max-height:calc(var(--mf-vh,100dvh) - 100px)}
html body .mf-document-modal>.mf-document-body{min-height:0;flex:1;overflow:auto;padding:16px 18px;overscroll-behavior:contain}
html body #editorDialog:has(#editorForm.mf-document-surface){padding:0!important;width:min(440px,calc(100vw - 24px))!important;max-height:calc(var(--mf-vh,100dvh) - 32px)!important;border-radius:20px!important;overflow:hidden!important}
html body #editorForm.mf-document-surface{display:flex!important;flex-direction:column;max-height:calc(var(--mf-vh,100dvh) - 32px)}
html body #editorForm.mf-document-surface .dialog-head{flex:none;background:white;padding:12px 16px;border-bottom:1px solid #eceeef}
html body #editorForm.mf-document-surface .dialog-head .eyebrow{display:none}
html body #editorForm.mf-document-surface #dialogFields{flex:1;min-height:0;overflow:auto;padding:16px 18px!important}
html body .position-proposal.mf-document-surface dl>div{background:transparent!important;border:0!important;border-bottom:1px solid #eceeef!important;padding:12px 0!important;border-radius:0!important}
html body .position-proposal.mf-document-surface dt{display:inline-flex;background:#292d2d;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;line-height:1.5;margin-bottom:8px}
html body .position-proposal.mf-document-surface dd{margin:0;line-height:1.7;font-size:16px}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-body{animation:mf-document-enter 180ms cubic-bezier(.23,1,.32,1)}
@media(prefers-reduced-motion:reduce){html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-body{animation:none}}

html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) :is(.mf-document-surface[data-mf-document-native] .mf-document-field,.mf-document-surface[data-mf-document-native].mf-document-field)>[hidden]{display:none!important}

html body #editorForm.mf-document-surface .dialog-head{margin:0!important;min-height:52px!important;align-items:center!important}
html body #editorForm.mf-document-surface .dialog-head h2{font-size:16px!important;margin:0!important}
html body #editorForm.mf-document-surface #dialogFields{gap:0!important}
html body #editorForm.mf-document-surface .dialog-actions button{border-radius:999px!important;min-height:44px!important}
html body #editorForm.mf-document-surface .dialog-actions .secondary{background:transparent!important;border:0!important;color:#71767b!important}
#editorDialog:has(#editorForm.mf-document-surface)::backdrop,.cw-dialog:has(.mf-document-modal)::backdrop{backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;background:rgba(0,0,0,.18)!important}
@media(prefers-reduced-motion:reduce){#editorDialog:has(#editorForm.mf-document-surface)::backdrop,.cw-dialog:has(.mf-document-modal)::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}}
html[data-visual-mode="minimal"] body.theme-liquid :is(#appView,#editorDialog,.cw-dialog) .mf-document-surface[data-mf-document-native] .mf-document-control:is([aria-invalid=true],:user-invalid){border-bottom:1px solid #a23b32!important}
