/* Scoped controls for catalog material editors; all colors follow newtpl. */
.pmfc .pmfc-compose{display:grid;gap:0;min-width:0;border:1px solid var(--fc-line);border-radius:14px;background:var(--fc-bg);overflow:visible}
.pmfc-compose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;min-width:0}
.pmfc .pmfc-compose-heading label{font-size:15px;font-weight:700;color:var(--fc-text);margin:0}.pmfc-compose-count{font-size:11px;color:var(--fc-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.pmfc-compose-switches{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:0 14px 12px;border-bottom:1px solid var(--fc-line)}
.pmfc-compose-modes{display:flex;gap:3px;padding:3px;background:var(--fc-soft);border:1px solid var(--fc-line);border-radius:10px}
.pmfc .pmfc-compose-modes button{padding:7px 11px;min-height:34px;font-size:12px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--fc-muted);font-weight:600}
.pmfc .pmfc-compose-modes button.is-active{background:var(--fc-bg);border-color:var(--fc-line);color:var(--fc-accent);box-shadow:0 2px 5px #0001}.pmfc .pmfc-compose-modes button:hover{color:var(--fc-accent)}
.pmfc .pmfc-compose-preview-button{min-height:34px;padding:7px 10px;font-size:12px;background:transparent;color:var(--fc-text)}
.pmfc-compose-tools{display:flex;gap:5px;flex-wrap:wrap;padding:10px 14px;background:var(--fc-soft);border-bottom:1px solid var(--fc-line)}
.pmfc .pmfc-compose-tools button{min-height:32px;min-width:32px;padding:5px 8px;font-size:11px;border-radius:6px;background:var(--fc-bg);color:var(--fc-text)}
.pmfc-compose-tools [data-editor-format=italic]{font-style:italic}.pmfc-compose-tools [data-editor-format=underline]{text-decoration:underline}
.pmfc .pmfc-compose textarea.pmfc-compose-source,.pmfc .pmfc-compose textarea.pmfc-compose-bb{display:block;width:100%;min-width:0;margin:0;padding:16px 18px;border:0;border-radius:0;background:var(--fc-bg);color:var(--fc-text);font:13px/1.65 Consolas,monospace;resize:vertical;min-height:180px}
.pmfc .pmfc-compose textarea.pmfc-compose-bb{font-family:Arial,sans-serif;font-size:14px}.pmfc .pmfc-compose [hidden]{display:none!important}
.pmfc-compose-visual{min-width:0;position:relative}.pmfc-compose-footer{display:grid;gap:6px;padding:10px 16px;border-top:1px solid var(--fc-line);background:var(--fc-soft);border-radius:0 0 14px 14px}
.pmfc-compose-footer small,.pmfc-compose-footer [data-editor-status]{font-size:11px;line-height:1.5;color:var(--fc-muted);overflow-wrap:anywhere}.pmfc-compose-footer [data-editor-status]:empty{display:none}.pmfc-compose-footer [data-editor-status].is-error{color:var(--fc-accent);font-weight:600}
.pmfc-compose-preview{margin:16px;border:1px dashed var(--fc-accent);border-radius:10px;padding:16px;min-width:0}.pmfc-compose-preview>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.pmfc .pmfc-compose-preview button{min-width:30px;min-height:30px;padding:4px;background:transparent}.pmfc-compose-preview>.pmfc-rich{max-height:480px;overflow:auto}.pmfc-compose-preview strong{font-size:12px;color:var(--fc-text)}
.pmfc-compose .tox-tinymce{border:0!important;border-radius:0!important;max-width:100%;min-width:0}
.pmfc-compose .tox .tox-editor-header,.pmfc-compose .tox .tox-toolbar,.pmfc-compose .tox .tox-toolbar__primary,.pmfc-compose .tox .tox-toolbar__overflow,.pmfc-compose .tox .tox-menubar,.pmfc-compose .tox .tox-statusbar{background:var(--fc-soft)!important;color:var(--fc-muted)!important;border-color:var(--fc-line)!important}
.pmfc-compose .tox .tox-toolbar__group{border-color:var(--fc-line)!important;flex-wrap:wrap}.pmfc-compose .tox .tox-toolbar__primary{background-image:none!important;flex-wrap:wrap}
.pmfc-compose .tox .tox-tbtn{background:transparent!important;color:var(--fc-text)!important}.pmfc-compose .tox .tox-tbtn svg{fill:var(--fc-text)!important}.pmfc-compose .tox .tox-tbtn:hover,.pmfc-compose .tox .tox-tbtn--enabled{background:var(--fc-bg)!important;color:var(--fc-accent)!important}.pmfc-compose .tox .tox-tbtn:hover svg,.pmfc-compose .tox .tox-tbtn--enabled svg{fill:var(--fc-accent)!important}
.pmfc-compose .tox .tox-statusbar a,.pmfc-compose .tox .tox-statusbar__wordcount,.pmfc-compose .tox .tox-statusbar__text-container{color:var(--fc-muted)!important}.pmfc-compose .tox .tox-edit-area__iframe{background:var(--fc-bg)!important}
.pmfc-editor-active .tox-tinymce-aux{z-index:10020}.pmfc-editor-active .tox .tox-dialog,.pmfc-editor-active .tox .tox-dialog__header,.pmfc-editor-active .tox .tox-dialog__footer,.pmfc-editor-active .tox .tox-menu{background:var(--bg1,#fff);border-color:var(--ln2,#dce2ec);color:var(--wh,#172238)}
.pmfc-editor-active .tox .tox-dialog__title,.pmfc-editor-active .tox .tox-label,.pmfc-editor-active .tox .tox-collection__item,.pmfc-editor-active .tox .tox-dialog__body{color:var(--wh,#172238)}
.pmfc-editor-active .tox .tox-textfield,.pmfc-editor-active .tox .tox-textarea,.pmfc-editor-active .tox .tox-selectfield select{background:var(--bg2,#f2f5fa);border-color:var(--ln2,#dce2ec);color:var(--wh,#172238)}
.pmfc-editor-active .tox .tox-button{background:var(--bl2,#316fd8);border-color:var(--bl2,#316fd8);color:var(--bg0,#fff)}
.pmfc-editor-active .tox .tox-button--secondary,.pmfc-editor-active .tox .tox-button--naked{background:var(--bg2,#f2f5fa);border-color:var(--ln2,#dce2ec);color:var(--wh,#172238)}
@media(max-width:620px){.pmfc-compose-heading{padding:14px 12px 10px;align-items:flex-start;flex-wrap:wrap;gap:5px}.pmfc-compose-switches{padding:0 10px 10px;gap:8px}.pmfc .pmfc-compose-modes button{padding:6px 8px;font-size:11px}.pmfc .pmfc-compose-preview-button{font-size:11px}.pmfc-compose-tools{padding:8px 10px}.pmfc .pmfc-compose textarea.pmfc-compose-source,.pmfc .pmfc-compose textarea.pmfc-compose-bb{padding:12px}.pmfc-compose-footer{padding:10px 12px}.pmfc-compose .tox .tox-toolbar__group{padding:0 4px!important}.pmfc-compose-preview{margin:10px;padding:12px}}
