.cdc-rich-shell { min-width: 0; border: 1px solid #e3d6d3; border-radius: 12px; background: #fff; }
.cdc-rich-tools { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid #eee4e1; border-radius: 12px 12px 0 0; background: #fbf5f3; }
.cdc-rich-shell [hidden], textarea[data-cdc-rich-active][hidden] { display: none !important; }
.cdc-rich-shell :is(.cdc-rich-tools, .cdc-rich-link-actions) > button {
    display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px !important;
    min-width: 36px; min-height: 36px; border: 1px solid #e5d5d2 !important; border-radius: 7px !important;
    background: #fff !important; color: #773f47 !important; text-transform: none;
    font: 600 13px/1.25 system-ui, sans-serif !important; box-shadow: none !important;
}
.cdc-rich-tools button[data-rich-command="bold"] { font-weight: 800 !important; }
.cdc-rich-tools button[data-rich-command="italic"] { font-style: italic !important; }
.cdc-rich-shell .cdc-rich-tools > button[aria-pressed="true"], .cdc-rich-shell .cdc-rich-tools > button:hover,
.cdc-rich-shell .cdc-rich-link-actions > button:hover { background: #f7e4e4 !important; }
.cdc-rich-shell :is(button,input):focus-visible { outline: 2px solid #98505a; outline-offset: 2px; }
.cdc-rich-editor { padding: 12px 14px; min-height: 150px; max-height: 380px; overflow: auto; color: #122338; line-height: 1.6; overflow-wrap: anywhere; }
.cdc-rich-editor:focus { outline: 2px solid #98505a; outline-offset: -2px; }
.cdc-rich-editor :is(p,h3,h4,ul,ol) { margin: 0 0 .65em !important; }
.cdc-rich-editor :is(h3,h4), .cdc-rich-public :is(h3,h4) { color: #122338; font: 700 1.2em/1.3 Georgia, serif; }
.cdc-rich-editor a, .cdc-rich-public a { color: #814851; text-decoration: underline; text-underline-offset: .14em; }
.cdc-rich-editor ul, .cdc-rich-public ul { list-style: disc outside; padding-inline-start: 1.4em; }
.cdc-rich-editor ol, .cdc-rich-public ol { list-style: decimal outside; padding-inline-start: 1.4em; }
.cdc-rich-public { overflow-wrap: anywhere; }
.cdc-rich-link-panel { padding: 10px 12px; border-top: 1px solid #eee4e1; }
.cdc-rich-link-panel label { display: block; margin: 0 0 8px !important; font-weight: 600; }
.cdc-rich-link-panel input { display: block; width: 100%; min-width: 0; margin-top: 4px; }
.cdc-rich-link-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cdc-rich-shell .cdc-rich-link-actions button:first-child { background: #844951 !important; color: #fff !important; }
.cdc-rich-error { margin: 8px 0 0; color: #9a3645; font-size: 13px; }
.cdc-fiche-complement-field { min-width: 0; grid-column: 1/-1; }
.cdc-fiche-complement-field > small { display: block; margin: 0 0 6px; }
@media (max-width: 620px) {
    .cdc-rich-shell :is(.cdc-rich-tools, .cdc-rich-link-actions) > button { min-height: 44px; }
}
