[data-add-content-block="plugin.wysiwyg-editor.richtext"] {
    display: none !important;
}

.fd-editor-shell {
    --fd-editor-border: var(--border, #d8dee8);
    --fd-editor-surface: var(--surface, #ffffff);
    --fd-editor-soft: var(--surface-soft, #f8fafc);
    --fd-editor-text: var(--text, #172033);
    --fd-editor-muted: var(--muted, #6f7888);
    --fd-editor-brand: var(--brand, #315870);
    --fd-editor-brand-deep: var(--brand-deep, #273d55);
    position: relative;
    overflow: visible;
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 17px;
    background: var(--fd-editor-surface);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .075);
    color: var(--fd-editor-text);
    font-weight: 400;
}

.fd-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 9px 10px;
    border-bottom: 1px solid var(--fd-editor-border);
    background: color-mix(in srgb, var(--fd-editor-surface) 94%, var(--fd-editor-brand) 6%);
    border-radius: 16px 16px 0 0;
}

/*
 * 2026.36.12.00 · Ruhiger Sticky-Dock mit echtem Werkzeug-Popover.
 * Im Scrollmodus bleibt nur eine einzelne kompakte Leiste sichtbar. „Mehr“
 * öffnet ein kleines, rechts verankertes Menü und keine zweite Toolbar.
 */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar {
    position: sticky;
    top: 8px;
    z-index: 18;
}

.fd-editor-toolbar-placeholder {
    display: none;
    width: 100%;
    height: 0;
    pointer-events: none;
}

.fd-editor-toolbar-more-toggle {
    display: none;
}

.fd-editor-toolbar-more-panel {
    display: contents;
}

.fd-editor-more-head {
    display: none;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar {
    width: var(--fd-editor-sticky-width, 680px);
    max-width: calc(100vw - 28px);
    min-height: 48px;
    height: 48px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    padding: 6px 7px;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 90%, var(--fd-editor-brand) 10%);
    border-radius: 12px;
    background: color-mix(in srgb, var(--fd-editor-surface) 98%, var(--fd-editor-brand) 2%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-placeholder {
    display: block;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 1px;
    padding-right: 4px;
    margin-right: 0;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-tool,
.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-format {
    min-height: 34px;
    border-radius: 8px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-tool {
    min-width: 31px;
    padding: 0 7px;
    font-size: 12px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-format {
    width: 112px;
    min-width: 112px;
    padding-inline: 8px 25px;
    font-size: 12px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"],
.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"],
.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="image"] {
    font-size: 0;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"]::after {
    content: "•≡";
    font-size: 13px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"]::after {
    content: "1≡";
    font-size: 12px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="image"]::after {
    content: "▧";
    font-size: 14px;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 66px;
    margin-left: auto;
    border-color: color-mix(in srgb, var(--fd-editor-border) 82%, var(--fd-editor-brand) 18%);
    background: var(--fd-editor-surface);
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-toggle[aria-expanded="true"] {
    background: color-mix(in srgb, var(--fd-editor-brand) 9%, var(--fd-editor-surface));
    border-color: color-mix(in srgb, var(--fd-editor-brand) 30%, var(--fd-editor-border));
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 28px));
    max-height: min(500px, calc(100vh - 92px));
    overflow: auto;
    overscroll-behavior: contain;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 92%, var(--fd-editor-brand) 8%);
    border-radius: 14px;
    background: var(--fd-editor-surface);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel.is-open {
    display: grid;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-more-head {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 2px;
    padding: 2px 4px 9px;
    border-bottom: 1px solid var(--fd-editor-border);
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-more-head strong {
    color: var(--fd-editor-text);
    font-size: 13px;
    font-weight: 760;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-more-head span {
    color: var(--fd-editor-muted);
    font-size: 11px;
    line-height: 1.35;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-more-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 26px 6px 6px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 94%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--fd-editor-soft) 72%, var(--fd-editor-surface));
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-more-group::before {
    content: attr(data-menu-label);
    position: absolute;
    top: 7px;
    left: 9px;
    color: var(--fd-editor-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-tool {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
    text-align: left;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-tool::after {
    content: attr(aria-label);
    overflow: hidden;
    color: var(--fd-editor-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-size {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    border-color: var(--fd-editor-border);
    background: var(--fd-editor-surface);
    font-size: 12px;
}

@media (max-width: 760px) {
    .fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel {
        width: min(330px, calc(100vw - 20px));
        grid-template-columns: 1fr;
    }
}

/* Der Content-Builder clippt Blöcke standardmäßig mit overflow:hidden. */
.content-builder-block.fd-editor-sticky-host {
    overflow: visible;
}

.content-builder-block.fd-editor-sticky-host > .content-builder-block-head {
    border-radius: 17px 17px 0 0;
}


.fd-editor-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding-right: 7px;
    margin-right: 1px;
    border-right: 1px solid var(--fd-editor-border);
}

.fd-editor-group:last-child {
    padding-right: 0;
    border-right: 0;
}

.fd-editor-tool,
.fd-editor-format,
.fd-editor-size {
    min-height: 34px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--fd-editor-text);
    font: inherit;
}

.fd-editor-tool {
    min-width: 34px;
    padding: 0 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
}

.fd-editor-tool strong {
    font-weight: 850;
}

.fd-editor-tool em {
    font-style: italic;
    font-weight: 600;
}

.fd-editor-format,
.fd-editor-size {
    min-width: 132px;
    padding: 0 30px 0 9px;
    cursor: pointer;
    font-weight: 600;
}

.fd-editor-tool:hover,
.fd-editor-tool:focus-visible,
.fd-editor-format:hover,
.fd-editor-format:focus-visible,
.fd-editor-size:hover,
.fd-editor-size:focus-visible,
.fd-editor-tool.is-active {
    border-color: color-mix(in srgb, var(--fd-editor-brand) 30%, var(--fd-editor-border));
    background: color-mix(in srgb, var(--fd-editor-brand) 9%, var(--fd-editor-surface));
    outline: none;
}

.fd-editor-tool.is-active {
    color: var(--fd-editor-brand-deep);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fd-editor-brand) 12%, transparent);
}

.fd-editor-tool:disabled,
.fd-editor-format:disabled,
.fd-editor-size:disabled {
    opacity: .38;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.fd-editor-canvas {
    min-height: 360px;
    padding: 22px 24px;
    overflow: auto;
    color: var(--fd-editor-text);
    background: var(--fd-editor-surface);
    font-family: inherit;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.72;
    letter-spacing: normal;
    text-align: left;
}

.content-builder-block .fd-editor-canvas {
    min-height: 220px;
}

.fd-editor-canvas:focus {
    outline: 2px solid color-mix(in srgb, var(--fd-editor-brand) 34%, transparent);
    outline-offset: -2px;
}

.fd-editor-canvas:empty::before {
    content: attr(data-placeholder);
    color: var(--fd-editor-muted);
    font-weight: 400;
    pointer-events: none;
}

/*
 * Wichtig: Das CMS setzt Formular-Labels auf font-weight:700. Der Editor liegt
 * innerhalb dieses Labels. Deshalb müssen normaler Inhalt und Fettformatierung
 * hier explizit voneinander getrennt werden.
 */
.fd-editor-canvas p,
.fd-editor-canvas li,
.fd-editor-canvas blockquote {
    font-weight: 400;
}

.fd-editor-canvas strong,
.fd-editor-canvas b {
    font-weight: 850;
}

.fd-editor-canvas em,
.fd-editor-canvas i {
    font-style: italic;
}

.fd-editor-canvas h2,
.fd-editor-canvas h3,
.fd-editor-canvas h4,
.fd-editor-canvas h5,
.fd-editor-canvas h6 {
    margin: 1.25em 0 .52em;
    color: var(--fd-editor-text);
    font-weight: 820;
    line-height: 1.24;
    letter-spacing: -.02em;
}

.fd-editor-canvas h2 {
    font-size: 1.6rem;
}

.fd-editor-canvas h3 {
    font-size: 1.34rem;
}

.fd-editor-canvas h4 {
    font-size: 1.13rem;
}

.fd-editor-canvas h5 {
    font-size: 1.02rem;
}

.fd-editor-canvas h6 {
    font-size: .94rem;
    letter-spacing: .01em;
}

.fd-editor-canvas p {
    margin: 0 0 1em;
}

.fd-editor-canvas ul,
.fd-editor-canvas ol {
    margin: .8em 0 1em;
    padding-left: 1.75em;
}

.fd-editor-canvas li + li {
    margin-top: .25em;
}

.fd-editor-canvas p:first-child,
.fd-editor-canvas h2:first-child,
.fd-editor-canvas h3:first-child,
.fd-editor-canvas h4:first-child,
.fd-editor-canvas h5:first-child,
.fd-editor-canvas h6:first-child,
.fd-editor-canvas pre:first-child,
.fd-editor-canvas blockquote:first-child,
.fd-editor-canvas ul:first-child,
.fd-editor-canvas ol:first-child {
    margin-top: 0;
}

.fd-editor-canvas p:last-child,
.fd-editor-canvas ul:last-child,
.fd-editor-canvas ol:last-child,
.fd-editor-canvas blockquote:last-child {
    margin-bottom: 0;
}

.fd-editor-canvas blockquote {
    margin: 1em 0;
    padding: 13px 17px;
    border-left: 4px solid var(--fd-editor-brand);
    border-radius: 0 11px 11px 0;
    background: color-mix(in srgb, var(--fd-editor-brand) 7%, var(--fd-editor-surface));
    color: color-mix(in srgb, var(--fd-editor-text) 88%, var(--fd-editor-muted));
}

.fd-editor-canvas a {
    color: var(--fd-editor-brand);
    font-weight: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fd-editor-canvas img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: .4em 0;
    border-radius: 12px;
    vertical-align: middle;
    cursor: pointer;
}

.fd-editor-canvas img:hover {
    outline: 2px solid color-mix(in srgb, var(--fd-editor-brand) 28%, transparent);
    outline-offset: 3px;
}


.fd-editor-canvas u {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fd-editor-canvas s,
.fd-editor-canvas del {
    text-decoration-thickness: 1px;
}

.fd-editor-canvas code {
    padding: .12em .36em;
    border-radius: 6px;
    background: color-mix(in srgb, var(--fd-editor-brand) 8%, var(--fd-editor-soft));
    font: .92em/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.fd-editor-canvas pre {
    margin: 1em 0;
    padding: 16px 18px;
    overflow: auto;
    border-radius: 12px;
    background: #101827;
    color: #e6edf7;
    font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
}

.fd-editor-canvas hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid var(--fd-editor-border);
}

.fd-editor-canvas table {
    width: 100%;
    margin: 1.15em 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.fd-editor-canvas caption {
    padding: 0 0 .65em;
    color: var(--fd-editor-muted);
    font-size: .92em;
    font-weight: 650;
    text-align: left;
}

.fd-editor-canvas th,
.fd-editor-canvas td {
    min-width: 70px;
    padding: 10px 12px;
    border: 1px solid var(--fd-editor-border);
    vertical-align: top;
    font-weight: 400;
}

.fd-editor-canvas th {
    background: var(--fd-editor-soft);
    font-weight: 760;
}

.fd-editor-canvas .fd-align-left { text-align: left; }
.fd-editor-canvas .fd-align-center { text-align: center; }
.fd-editor-canvas .fd-align-right { text-align: right; }
.fd-editor-canvas .fd-align-justify { text-align: justify; }
.fd-editor-canvas .fd-indent-1 { margin-left: 2rem; }
.fd-editor-canvas .fd-indent-2 { margin-left: 4rem; }
.fd-editor-canvas .fd-indent-3 { margin-left: 6rem; }
.fd-editor-canvas .fd-indent-4 { margin-left: 8rem; }

.fd-editor-canvas .fd-text-small { font-size: .875em; }
.fd-editor-canvas .fd-text-large { font-size: 1.15em; }
.fd-editor-canvas .fd-text-xlarge { font-size: 1.4em; }
.fd-editor-canvas .fd-color-red { color: #dc2626; }
.fd-editor-canvas .fd-color-orange { color: #ea580c; }
.fd-editor-canvas .fd-color-green { color: #15803d; }
.fd-editor-canvas .fd-color-blue { color: #2563eb; }
.fd-editor-canvas .fd-color-purple { color: #7c3aed; }
.fd-editor-canvas .fd-color-gray { color: #64748b; }
.fd-editor-canvas .fd-bg-yellow { background: #fef3c7; }
.fd-editor-canvas .fd-bg-green { background: #dcfce7; }
.fd-editor-canvas .fd-bg-blue { background: #dbeafe; }
.fd-editor-canvas .fd-bg-pink { background: #fce7f3; }
.fd-editor-canvas .fd-bg-gray { background: #e5e7eb; }

.fd-editor-tool-color {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: #2563eb;
    text-underline-offset: 4px;
}

.fd-editor-tool-highlight {
    padding: 1px 3px;
    border-radius: 3px;
    background: #fef3c7;
}

.fd-editor-shell:not(.is-source) .fd-editor-source {
    display: none !important;
}

.fd-editor-shell.is-source .fd-editor-canvas {
    display: none !important;
}

.fd-editor-shell.is-source .fd-editor-source {
    display: block !important;
}

.fd-editor-source {
    width: 100%;
    min-height: 360px;
    margin: 0 !important;
    padding: 20px 22px;
    border: 0 !important;
    border-radius: 0 !important;
    resize: vertical;
    background: #101827;
    color: #e6edf7;
    font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
    font-weight: 400 !important;
    tab-size: 4;
}

.content-builder-block .fd-editor-source {
    min-height: 220px;
}

.fd-editor-source:focus {
    outline: 2px solid color-mix(in srgb, var(--fd-editor-brand) 48%, transparent) !important;
    outline-offset: -2px;
}

.fd-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 40px;
    padding: 8px 12px;
    border-top: 1px solid var(--fd-editor-border);
    background: color-mix(in srgb, var(--fd-editor-surface) 96%, #64748b 4%);
    color: var(--fd-editor-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 0 0 16px 16px;
}

.fd-editor-footer-meta {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.fd-editor-footer strong {
    color: var(--fd-editor-text);
    font-weight: 800;
}

.fd-editor-context {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 999px;
    background: var(--fd-editor-surface);
    color: var(--fd-editor-muted);
    white-space: nowrap;
}

.fd-editor-status {
    color: var(--fd-editor-brand-deep);
    font-weight: 750;
}

.fd-editor-footer a {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.fd-editor-footer a:hover {
    color: var(--fd-editor-brand);
    text-decoration: underline;
}

.fd-editor-shell.is-fullscreen {
    position: fixed;
    inset: 14px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .3);
}

.fd-editor-shell.is-fullscreen .fd-editor-toolbar {
    position: relative;
    top: auto;
    z-index: 2;
    flex: 0 0 auto;
}

.fd-editor-shell.is-fullscreen .fd-editor-canvas,
.fd-editor-shell.is-fullscreen .fd-editor-source {
    flex: 1 1 auto;
    min-height: 0;
}

body.fd-editor-fullscreen-open {
    overflow: hidden;
}

.fd-editor-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 18px;
    color: var(--text, #172033);
    background: var(--surface, #fff);
    box-shadow: 0 28px 90px rgba(15, 23, 42, .3);
}

.fd-editor-dialog::backdrop {
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(2px);
}

.fd-editor-dialog form,
.fd-editor-character-wrap,
.fd-editor-palette-wrap {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.fd-editor-dialog label {
    display: grid;
    gap: 7px;
    color: var(--text, #172033);
    font-weight: 500;
}

.fd-editor-dialog label > span,
.fd-editor-dialog-head span {
    color: var(--muted, #6f7888);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .04em;
}

.fd-editor-dialog input[type="text"],
.fd-editor-dialog input[type="number"] {
    width: 100%;
    font-weight: 400;
}

.fd-editor-dialog-head,
.fd-editor-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fd-editor-dialog-head > div {
    display: grid;
    gap: 3px;
}

.fd-editor-dialog-head strong {
    color: var(--text, #172033);
    font-size: 20px;
    font-weight: 820;
}

.fd-editor-dialog-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface, #fff) 90%, #64748b 10%);
    color: inherit;
    cursor: pointer;
    font-size: 22px;
}

.fd-editor-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
}

.fd-editor-check input {
    width: 17px;
    height: 17px;
}

.fd-editor-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fd-editor-dialog-note {
    margin-top: -4px;
    color: var(--muted, #6f7888);
    font-weight: 500;
    line-height: 1.5;
}

.fd-editor-dialog-spacer {
    flex: 1 1 auto;
}

.fd-editor-image-delete:not([hidden]) {
    color: var(--danger, #b83b4d);
}

.fd-editor-character-dialog {
    width: min(480px, calc(100vw - 32px));
}

.fd-editor-character-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.fd-editor-character-grid button {
    min-width: 0;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--line, #dce4ee);
    border-radius: 11px;
    background: var(--surface-soft, #f8fafc);
    color: var(--text, #172033);
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.fd-editor-character-grid button:hover,
.fd-editor-character-grid button:focus-visible {
    border-color: color-mix(in srgb, var(--brand, #315870) 36%, var(--line, #dce4ee));
    background: color-mix(in srgb, var(--brand, #315870) 8%, var(--surface, #fff));
    outline: none;
}


.fd-editor-palette-dialog {
    width: min(430px, calc(100vw - 32px));
}

.fd-editor-palette-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.fd-editor-palette-grid button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 10px;
    border: 1px solid var(--line, #dce4ee);
    border-radius: 10px;
    background: var(--surface-soft, #f8fafc);
    color: var(--text, #172033);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-align: left;
}

.fd-editor-palette-grid button:hover,
.fd-editor-palette-grid button:focus-visible {
    border-color: color-mix(in srgb, var(--brand, #315870) 36%, var(--line, #dce4ee));
    outline: none;
}

.fd-editor-swatch {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 8px;
    background: var(--surface, #fff);
    font-weight: 850;
}

.fd-editor-swatch.fd-color-red { color: #dc2626; }
.fd-editor-swatch.fd-color-orange { color: #ea580c; }
.fd-editor-swatch.fd-color-green { color: #15803d; }
.fd-editor-swatch.fd-color-blue { color: #2563eb; }
.fd-editor-swatch.fd-color-purple { color: #7c3aed; }
.fd-editor-swatch.fd-color-gray { color: #64748b; }
.fd-editor-swatch.fd-bg-yellow { background: #fef3c7; }
.fd-editor-swatch.fd-bg-green { background: #dcfce7; }
.fd-editor-swatch.fd-bg-blue { background: #dbeafe; }
.fd-editor-swatch.fd-bg-pink { background: #fce7f3; }
.fd-editor-swatch.fd-bg-gray { background: #e5e7eb; }

@media (max-width: 900px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar {
        top: 66px;
    }
}

@media (max-width: 920px) {
    .fd-editor-group {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    .fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-panel {
        width: min(330px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
    }

    .fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-more-label {
        display: none;
    }

    .fd-editor-shell.is-toolbar-stuck:not(.is-fullscreen) .fd-editor-toolbar-more-toggle {
        min-width: 36px;
    }

    .fd-editor-toolbar {
        align-items: stretch;
    }

    .fd-editor-group {
        flex-wrap: wrap;
    }

    .fd-editor-format,
    .fd-editor-size {
        min-width: 118px;
    }

    .fd-editor-canvas {
        min-height: 300px;
        padding: 18px;
    }

    .fd-editor-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .fd-editor-dialog-grid {
        grid-template-columns: 1fr;
    }

    .fd-editor-dialog-actions {
        flex-wrap: wrap;
    }

    .fd-editor-dialog-spacer {
        display: none;
    }

    .fd-editor-character-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 2026.36.08.00 · Produktivitätswerkzeuge */
.fd-editor-dialog select,
.fd-editor-dialog textarea {
    width: 100%;
    border: 1px solid var(--line, #d8e1e8);
    border-radius: 11px;
    background: #fff;
    color: #162235;
    font: inherit;
}

.fd-editor-dialog select {
    min-height: 42px;
    padding: 8px 36px 8px 11px;
}

.fd-editor-dialog textarea {
    min-height: 190px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.55;
}

.fd-editor-search-dialog {
    width: min(720px, calc(100vw - 28px));
}

.fd-editor-search-meta {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #f7fafc;
    color: #536779;
    font-size: .82rem;
}

.fd-editor-search-actions {
    flex-wrap: wrap;
}

.fd-editor-link-dialog {
    width: min(780px, calc(100vw - 28px));
}

.fd-editor-internal-picker {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #d8e4ec;
    border-radius: 13px;
    background: #f8fbfd;
}

.fd-editor-internal-picker[hidden] {
    display: none;
}

.fd-editor-internal-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid #d4e0e8;
    border-radius: 10px;
    background: #fff;
}

.fd-editor-internal-search > span {
    color: #73869a;
    font-size: 1rem;
}

.fd-editor-internal-search input {
    min-height: 40px;
    padding: 7px 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.fd-editor-internal-results {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow: auto;
}

.fd-editor-internal-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #1c2b3d;
    text-align: left;
    cursor: pointer;
}

.fd-editor-internal-result:hover,
.fd-editor-internal-result:focus-visible {
    border-color: #bfd6e5;
    background: #eef7fb;
    outline: none;
}

.fd-editor-internal-result > span:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.fd-editor-internal-result strong,
.fd-editor-internal-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-editor-internal-result small {
    color: #718397;
    font-size: .75rem;
}

.fd-editor-page-status {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf1f5;
    color: #5b6c7d;
    font-size: .68rem;
    font-weight: 750;
}

.fd-editor-picker-state {
    padding: 14px;
    color: #73869a;
    text-align: center;
    font-size: .82rem;
}

.fd-editor-table-edit-dialog {
    width: min(820px, calc(100vw - 28px));
}

.fd-editor-table-edit-wrap {
    display: grid;
    gap: 15px;
}

.fd-editor-field-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.fd-editor-table-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.fd-editor-table-tools-grid section {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid #dde6ec;
    border-radius: 12px;
    background: #f9fbfc;
}

.fd-editor-table-tools-grid section > strong {
    margin-bottom: 2px;
    color: #41566b;
    font-size: .76rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fd-editor-table-tools-grid button {
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #d7e1e8;
    border-radius: 9px;
    background: #fff;
    color: #26384a;
    font: inherit;
    font-size: .78rem;
    text-align: left;
    cursor: pointer;
}

.fd-editor-table-tools-grid button:hover,
.fd-editor-table-tools-grid button:focus-visible {
    border-color: #aec9da;
    background: #edf6fa;
    outline: none;
}

.fd-editor-table-tools-grid button.is-danger {
    border-color: #efc5c5;
    color: #a52b2b;
}

.fd-editor-canvas td:hover,
.fd-editor-canvas th:hover {
    box-shadow: inset 0 0 0 1px rgba(43, 126, 169, .3);
}

.fd-editor-canvas p > img + br + em,
.fd-editor-canvas p > a > img + br + em,
.fd-editor-canvas p > a + br + em {
    display: inline-block;
    margin-top: 6px;
    color: #66798a;
    font-size: .88em;
}

@media (max-width: 720px) {
    .fd-editor-table-tools-grid {
        grid-template-columns: 1fr;
    }

    .fd-editor-field-action {
        grid-template-columns: 1fr;
    }
}

.fd-editor-dialog input[type="search"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--line, #d8e1e8);
    border-radius: 11px;
    background: #fff;
    color: #162235;
    font: inherit;
    font-weight: 400;
}

.fd-editor-internal-search input[type="search"] {
    min-height: 40px;
    padding: 7px 0;
    border: 0;
    border-radius: 0;
}

.fd-editor-table-edit-wrap {
    padding: 20px;
}

/*
 * 2026.36.13.00 · Dokument-Scroll statt Seiten-Scroll.
 * Lange Inhalte bleiben innerhalb der Editorfläche. Toolbar und Footer stehen
 * fest am Editor, deshalb ist der bisherige Sticky-Dock nicht mehr nötig.
 */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar {
    position: relative;
    top: auto;
    z-index: 4;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-placeholder {
    display: none !important;
    height: 0 !important;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar {
    width: auto;
    max-width: none;
    min-height: 0;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--fd-editor-border);
    border-radius: 16px 16px 0 0;
    background: color-mix(in srgb, var(--fd-editor-surface) 94%, var(--fd-editor-brand) 6%);
    box-shadow: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group {
    flex-wrap: wrap;
    gap: 3px;
    padding-right: 7px;
    margin-right: 1px;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-size {
    min-height: 34px;
    height: auto;
    border-radius: 9px;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-tool {
    min-width: 34px;
    padding: 0 9px;
    font-size: 13px;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-format {
    width: auto;
    min-width: 132px;
    padding: 0 30px 0 9px;
    font-size: inherit;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"],
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"],
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="image"] {
    font-size: 13px;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"]::after,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"]::after,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary .fd-editor-tool[data-command="image"]::after {
    content: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-toggle {
    display: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel {
    display: contents;
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-more-head {
    display: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-more-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0 7px 0 0;
    margin: 0 1px 0 0;
    border: 0;
    border-right: 1px solid var(--fd-editor-border);
    border-radius: 0;
    background: transparent;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-more-group::before,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-tool::after {
    content: none;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-tool {
    display: inline-flex;
    justify-content: center;
    width: auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 13px;
}

.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-size {
    width: auto;
    min-width: 132px;
    min-height: 34px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
    height: clamp(420px, 56vh, 620px);
    min-height: 420px;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
    resize: none;
    overflow-x: auto;
}

.content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
.content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
    height: clamp(340px, 48vh, 520px);
    min-height: 340px;
    max-height: 520px;
}

.fd-editor-canvas,
.fd-editor-source {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fd-editor-brand) 45%, transparent) transparent;
}

.fd-editor-canvas::-webkit-scrollbar,
.fd-editor-source::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.fd-editor-canvas::-webkit-scrollbar-track,
.fd-editor-source::-webkit-scrollbar-track {
    background: transparent;
}

.fd-editor-canvas::-webkit-scrollbar-thumb,
.fd-editor-source::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fd-editor-brand) 38%, var(--fd-editor-border));
    background-clip: padding-box;
}

.fd-editor-canvas::-webkit-scrollbar-thumb:hover,
.fd-editor-source::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--fd-editor-brand) 58%, var(--fd-editor-border));
    background-clip: padding-box;
}

.fd-editor-shell.is-fullscreen .fd-editor-canvas,
.fd-editor-shell.is-fullscreen .fd-editor-source {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
}

@media (max-width: 760px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        height: clamp(320px, 52vh, 500px);
        min-height: 320px;
        max-height: 500px;
    }
}

/* 2026.36.14/15 · Dokumentstruktur, Qualität, Medien und Formatvorlagen */
.fd-editor-style {
    min-width: 160px;
    min-height: 38px;
    padding: 0 34px 0 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--fd-editor-text);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.fd-editor-style:hover,
.fd-editor-style:focus-visible {
    border-color: var(--fd-editor-border);
    background: var(--fd-editor-surface);
    outline: none;
}
.fd-editor-autosave {
    color: var(--fd-editor-muted);
    white-space: nowrap;
}
.fd-editor-anchor-preview {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--line, #d8e1e8);
    border-radius: 12px;
    background: var(--surface-soft, #f8fafc);
}
.fd-editor-anchor-preview span {
    color: var(--muted, #6f7888);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}
.fd-editor-anchor-preview strong {
    color: var(--text, #172033);
    font-weight: 750;
}
.fd-editor-anchor-picker {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #d8e4ec;
    border-radius: 13px;
    background: #f8fbfd;
}
.fd-editor-anchor-picker[hidden] { display: none; }
.fd-editor-anchor-picker > span {
    color: #718397;
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.fd-editor-anchor-picker [data-fd-link-anchor-results] {
    display: grid;
    gap: 6px;
    max-height: 210px;
    overflow: auto;
}
.fd-editor-anchor-picker button {
    display: grid;
    grid-template-columns: minmax(90px, auto) 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #dbe5ec;
    border-radius: 10px;
    background: #fff;
    color: #223247;
    text-align: left;
    cursor: pointer;
}
.fd-editor-anchor-picker button:hover,
.fd-editor-anchor-picker button:focus-visible {
    border-color: #b9cfdd;
    background: #eef7fb;
    outline: none;
}
.fd-editor-anchor-picker button span {
    color: #607488;
    font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.fd-editor-outline-dialog { width: min(620px, calc(100vw - 28px)); }
.fd-editor-outline-wrap,
.fd-editor-audit-wrap,
.fd-editor-media-wrap {
    display: grid;
    gap: 14px;
    padding: 20px;
}
.fd-editor-outline-list {
    display: grid;
    gap: 6px;
    max-height: min(560px, 65vh);
    overflow: auto;
}
.fd-editor-outline-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    background: #fff;
    color: #1f3044;
    text-align: left;
    cursor: pointer;
}
.fd-editor-outline-item:hover,
.fd-editor-outline-item:focus-visible { border-color: #abc7d8; background: #eff7fa; outline: none; }
.fd-editor-outline-item span { color: #6b7e90; font-size: 11px; font-weight: 800; }
.fd-editor-outline-item.level-3 { margin-left: 18px; width: calc(100% - 18px); }
.fd-editor-outline-item.level-4 { margin-left: 36px; width: calc(100% - 36px); }
.fd-editor-outline-item.level-5,
.fd-editor-outline-item.level-6 { margin-left: 54px; width: calc(100% - 54px); }
.fd-editor-audit-dialog { width: min(720px, calc(100vw - 28px)); }
.fd-editor-audit-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dce6ed;
    border-radius: 14px;
    background: #f8fbfd;
}
.fd-editor-audit-summary > div { display: flex; align-items: baseline; gap: 5px; }
.fd-editor-audit-summary strong { color: #24445a; font-size: 30px; line-height: 1; }
.fd-editor-audit-summary span,
.fd-editor-audit-summary p { margin: 0; color: #6d7f91; font-size: 13px; }
.fd-editor-audit-list { display: grid; gap: 8px; max-height: min(520px, 60vh); overflow: auto; }
.fd-editor-audit-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #dfe7ed;
    border-radius: 11px;
    background: #fff;
}
.fd-editor-audit-item > span {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: #edf4f7;
    color: #506a7d;
    font-weight: 850;
}
.fd-editor-audit-item.is-error > span { background: #feecec; color: #a53232; }
.fd-editor-audit-item.is-warning > span { background: #fff4d8; color: #93680c; }
.fd-editor-audit-item strong { color: #24364a; font-size: 13px; }
.fd-editor-audit-item p { margin: 3px 0 0; color: #6d7f91; font-size: 12px; line-height: 1.5; }
.fd-editor-audit-ok { display: grid; gap: 3px; padding: 18px; border-radius: 12px; background: #eef8f2; color: #315d43; }
.fd-editor-settings-dialog { width: min(720px, calc(100vw - 28px)); }
.fd-editor-settings-section { display: grid; gap: 10px; padding: 14px; border: 1px solid #dfe7ed; border-radius: 13px; background: #f9fbfc; }
.fd-editor-settings-section > p { margin: -4px 0 2px; color: #6d7f91; font-size: 12px; line-height: 1.5; }
.fd-editor-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fd-editor-role-item { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; min-height: 48px; padding: 8px 10px; border: 1px solid #dbe5ec; border-radius: 10px; background: #fff; }
.fd-editor-role-item span { display: grid; gap: 1px; }
.fd-editor-role-item strong { font-size: 13px; }
.fd-editor-role-item small { color: #7a8a99; font-size: 11px; }
.fd-editor-settings-state { color: #617487; font-size: 12px; font-weight: 700; }
.fd-editor-media-library-dialog { width: min(920px, calc(100vw - 28px)); }
.fd-editor-media-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.fd-editor-media-drop {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    padding: 14px;
    border: 1.5px dashed #b9cad6;
    border-radius: 14px;
    background: #f8fbfd;
    cursor: pointer;
    text-align: center;
}
.fd-editor-media-drop.is-dragging { border-color: #5b8aa8; background: #edf7fb; }
.fd-editor-media-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fd-editor-media-drop > span { display: grid; gap: 4px; }
.fd-editor-media-drop strong { color: #29465b; font-size: 14px; }
.fd-editor-media-drop small { color: #708394; font-size: 12px; }
.fd-editor-media-upload-state { min-height: 18px; color: #687b8d; font-size: 12px; }
.fd-editor-media-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: min(520px, 56vh); overflow: auto; }
.fd-editor-media-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    background: #fff;
    color: #1f3145;
    text-align: left;
    cursor: pointer;
}
.fd-editor-media-item:hover,
.fd-editor-media-item:focus-visible { border-color: #abc8d8; background: #f0f8fb; outline: none; }
.fd-editor-media-thumb { display: block; width: 88px; height: 66px; overflow: hidden; border-radius: 9px; background: #edf2f5; }
.fd-editor-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fd-editor-media-item > span:last-child { display: grid; gap: 4px; min-width: 0; }
.fd-editor-media-item strong,
.fd-editor-media-item small { overflow: hidden; text-overflow: ellipsis; }
.fd-editor-media-item strong { font-size: 12px; white-space: nowrap; }
.fd-editor-media-item small { color: #718396; font-size: 11px; line-height: 1.35; }
.fd-editor-media-item small b { color: #a45a21; }
.fd-editor-canvas.is-image-dragover { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--fd-editor-brand) 46%, transparent); background: color-mix(in srgb, var(--fd-editor-surface) 95%, var(--fd-editor-brand) 5%); }

/* Vorschau der sicheren Formatvorlagen direkt im Editor */
.fd-editor-canvas .fd-style-lead { font-size: 1.18em; line-height: 1.7; color: #34495d; }
.fd-editor-canvas .fd-callout-info,
.fd-editor-canvas .fd-callout-success,
.fd-editor-canvas .fd-callout-warning,
.fd-editor-canvas .fd-callout-danger { margin: 1em 0; padding: 13px 15px; border-left: 4px solid #6f8ca1; border-radius: 10px; background: #f3f7fa; }
.fd-editor-canvas .fd-callout-success { border-left-color: #4e8b66; background: #eef8f2; }
.fd-editor-canvas .fd-callout-warning { border-left-color: #b4862c; background: #fff8e7; }
.fd-editor-canvas .fd-callout-danger { border-left-color: #b65656; background: #fff0f0; }
.fd-editor-canvas a.fd-button-link,
.fd-editor-canvas a.fd-button-secondary { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: 10px; text-decoration: none; font-weight: 750; }
.fd-editor-canvas a.fd-button-link { background: var(--fd-editor-brand); color: #fff; }
.fd-editor-canvas a.fd-button-secondary { border: 1px solid var(--fd-editor-border); background: #fff; color: var(--fd-editor-brand-deep); }
.fd-editor-canvas nav.fd-toc { margin: 1.2em 0; padding: 14px 16px; border: 1px solid var(--fd-editor-border); border-radius: 12px; background: var(--fd-editor-soft); }
.fd-editor-canvas nav.fd-toc p { margin: 0 0 8px; }
.fd-editor-canvas nav.fd-toc ul { margin: 0; padding-left: 1.25rem; }
.fd-editor-canvas table.fd-table-striped tbody tr:nth-child(even) { background: rgba(100,116,139,.055); }
.fd-editor-canvas table.fd-table-compact th,
.fd-editor-canvas table.fd-table-compact td { padding: 6px 8px; }
.fd-editor-canvas figure { margin: 1.2em 0; }
.fd-editor-canvas figure img { max-width: 100%; height: auto; }
.fd-editor-canvas figcaption { margin-top: 6px; color: #697b8d; font-size: .9em; }

@media (max-width: 900px) {
    .fd-editor-media-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .fd-editor-role-grid,
    .fd-editor-media-results { grid-template-columns: 1fr; }
    .fd-editor-media-actions { grid-template-columns: 1fr; }
    .fd-editor-style { min-width: 140px; }
    .fd-editor-outline-item.level-3,
    .fd-editor-outline-item.level-4,
    .fd-editor-outline-item.level-5,
    .fd-editor-outline-item.level-6 { margin-left: 0; width: 100%; }
}

/*
 * 2026.36.16.00 · Kompakte permanente Toolbar.
 * Der Dokumentbereich scrollt intern, daher werden nur die alltäglichen
 * Werkzeuge dauerhaft gezeigt. Erweiterte Funktionen öffnen als Popover.
 */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar {
    position: relative;
    top: auto;
    z-index: 12;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
    max-width: none;
    min-height: 50px;
    height: 50px;
    padding: 7px 9px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--fd-editor-border);
    border-radius: 16px 16px 0 0;
    background: color-mix(in srgb, var(--fd-editor-surface) 96%, var(--fd-editor-brand) 4%);
    box-shadow: none;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-group,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-group-primary {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding-right: 5px;
    margin-right: 0;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-size,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-size {
    min-height: 34px;
    height: 34px;
    border-radius: 8px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-tool {
    min-width: 32px;
    padding: 0 7px;
    font-size: 12px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-format {
    width: 116px;
    min-width: 116px;
    padding: 0 26px 0 8px;
    font-size: 12px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-size,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-size {
    width: 100px;
    min-width: 100px;
    padding: 0 25px 0 8px;
    font-size: 12px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-toggle,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 88px;
    margin-left: auto;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 86%, var(--fd-editor-brand) 14%);
    background: var(--fd-editor-surface);
    font-weight: 700;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-toggle:hover,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-toggle[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--fd-editor-brand) 32%, var(--fd-editor-border));
    background: color-mix(in srgb, var(--fd-editor-brand) 7%, var(--fd-editor-surface));
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 8px;
    left: auto;
    z-index: 30;
    width: min(430px, calc(100% - 16px));
    max-height: min(520px, calc(100vh - 110px));
    overflow: auto;
    overscroll-behavior: contain;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 11px;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 90%, var(--fd-editor-brand) 10%);
    border-radius: 13px;
    background: var(--fd-editor-surface);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel.is-open,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel.is-open {
    display: grid;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-more-head,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-more-head {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 1px;
    padding: 1px 3px 8px;
    border-bottom: 1px solid var(--fd-editor-border);
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-more-head strong {
    font-size: 13px;
    font-weight: 760;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-more-head span {
    color: var(--fd-editor-muted);
    font-size: 11px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-more-group,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-more-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 3px;
    min-width: 0;
    padding: 25px 5px 5px;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 94%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--fd-editor-soft) 72%, var(--fd-editor-surface));
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-more-group::before,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-more-group::before {
    content: attr(data-menu-label);
    position: absolute;
    top: 7px;
    left: 9px;
    color: var(--fd-editor-muted);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-tool {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
    text-align: left;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-tool::after,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-tool::after {
    content: attr(aria-label);
    overflow: hidden;
    color: var(--fd-editor-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel .fd-editor-style,
.fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel .fd-editor-style {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    height: 34px;
    padding: 0 28px 0 8px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 7px;
    background: var(--fd-editor-surface);
    font-size: 12px;
}

/* Bei mittleren Breiten bleiben die Funktionen erhalten, nur Beschriftungen schrumpfen. */
@media (max-width: 1120px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="mediaLibrary"] {
        font-size: 0;
        width: 34px;
        min-width: 34px;
        padding: 0;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertUnorderedList"]::after {
        content: "•≡";
        font-size: 13px;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="insertOrderedList"]::after {
        content: "1≡";
        font-size: 12px;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-group-primary .fd-editor-tool[data-command="mediaLibrary"]::after {
        content: "▧";
        font-size: 14px;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-toggle {
        min-width: 42px;
        width: 42px;
        padding: 0;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-more-label {
        display: none;
    }
}

@media (max-width: 820px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar,
    .fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar {
        min-height: 48px;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-toggle {
        position: sticky;
        right: 0;
        background: var(--fd-editor-surface);
        box-shadow: -8px 0 12px var(--fd-editor-surface);
    }
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar-more-panel,
    .fd-editor-shell:not(.is-fullscreen).is-toolbar-stuck .fd-editor-toolbar-more-panel {
        position: fixed;
        top: 76px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 92px);
        grid-template-columns: 1fr;
    }
}

/*
 * 2026.36.27.00 · Word-artiges Ribbon mit klarerer Symbol- und Gruppenansicht.
 * Statt eines großen Werkzeug-Popovers werden Funktionen in dauerhaft
 * sichtbare Reiter und kompakte Gruppen einsortiert. Der Dokumentbereich
 * scrollt weiterhin unabhängig unterhalb des Menübands.
 */
.fd-editor-shell .fd-editor-toolbar.fd-editor-ribbon,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar.fd-editor-ribbon,
.fd-editor-shell.is-fullscreen .fd-editor-toolbar.fd-editor-ribbon {
    position: relative;
    top: auto;
    z-index: 12;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid var(--fd-editor-border);
    border-radius: 16px 16px 0 0;
    background: color-mix(in srgb, var(--fd-editor-surface) 97%, var(--fd-editor-brand) 3%);
    box-shadow: none;
}

.fd-editor-ribbon-tabs {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    min-height: 36px;
    padding: 4px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--fd-editor-border) 88%, transparent);
    scrollbar-width: thin;
}

.fd-editor-ribbon-tab {
    position: relative;
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--fd-editor-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 730;
    cursor: pointer;
}

.fd-editor-ribbon-tab:hover,
.fd-editor-ribbon-tab:focus-visible {
    background: color-mix(in srgb, var(--fd-editor-brand) 6%, var(--fd-editor-surface));
    color: var(--fd-editor-text);
    outline: none;
}

.fd-editor-ribbon-tab.is-active {
    background: var(--fd-editor-surface);
    color: var(--fd-editor-brand-deep);
}

.fd-editor-ribbon-tab.is-active::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: var(--fd-editor-brand);
}

.fd-editor-ribbon-panels {
    position: relative;
    min-width: 0;
    background: var(--fd-editor-surface);
}

.fd-editor-ribbon-panel {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 96px;
    padding: 6px 8px 5px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
    min-height: 108px;
}

.fd-editor-ribbon-panel[hidden] {
    display: none !important;
}

.fd-editor-ribbon-group {
    position: relative;
    display: grid;
    grid-template-rows: minmax(66px, auto) 16px;
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 10px;
    border-right: 1px solid color-mix(in srgb, var(--fd-editor-border) 88%, transparent);
}

.fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group {
    grid-template-rows: minmax(78px, auto) 16px;
}

.fd-editor-ribbon-group:last-child {
    border-right: 0;
}

.fd-editor-ribbon-group-tools {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 30px);
    grid-auto-columns: max-content;
    align-content: start;
    justify-content: start;
    gap: 4px;
    height: 66px;
    min-width: 0;
}

.fd-editor-ribbon-group-tools[data-layout="tiles"] {
    display: flex;
    align-items: stretch;
    gap: 8px;
    height: 66px;
}

.fd-editor-ribbon-group-tools[data-layout="single-select"] {
    display: grid;
    grid-template-columns: 220px;
    grid-template-rows: 66px;
    gap: 0;
    height: 66px;
}

.fd-editor-ribbon-group-tools[data-layout="compact-grid"] {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    grid-auto-rows: 30px;
    gap: 4px;
    min-width: 0;
    height: 66px;
}

.fd-editor-ribbon-group-tools[data-layout="compact-grid"] > .fd-editor-tool:last-child {
    grid-column: 1 / -1;
}

.fd-editor-ribbon-group-tools[data-layout="stacked-select"] {
    display: grid;
    grid-template-columns: repeat(5, max-content);
    grid-auto-rows: 30px;
    gap: 4px;
    min-width: 0;
    height: auto;
    min-height: 66px;
}

.fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child {
    grid-column: 1 / -1;
    width: 156px;
    min-width: 156px;
}

.fd-editor-ribbon-group-label {
    align-self: end;
    overflow: hidden;
    color: var(--fd-editor-muted);
    font-size: 10px;
    font-weight: 720;
    line-height: 15px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool,
.fd-editor-shell.is-fullscreen .fd-editor-ribbon .fd-editor-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 32px;
    height: 30px;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--fd-editor-text);
    font-size: 12px;
    line-height: 1;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-tool:hover,
.fd-editor-shell .fd-editor-ribbon .fd-editor-tool:focus-visible {
    border-color: color-mix(in srgb, var(--fd-editor-brand) 18%, var(--fd-editor-border));
    background: color-mix(in srgb, var(--fd-editor-brand) 7%, var(--fd-editor-surface));
    outline: none;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-tool.is-active {
    border-color: color-mix(in srgb, var(--fd-editor-brand) 30%, var(--fd-editor-border));
    background: color-mix(in srgb, var(--fd-editor-brand) 12%, var(--fd-editor-surface));
    color: var(--fd-editor-brand-deep);
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-tool:disabled,
.fd-editor-shell .fd-editor-ribbon select:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-format,
.fd-editor-shell .fd-editor-ribbon .fd-editor-size,
.fd-editor-shell .fd-editor-ribbon .fd-editor-style {
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 7px;
    background: var(--fd-editor-surface);
    color: var(--fd-editor-text);
    font: inherit;
    font-size: 12px;
    font-weight: 630;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-format {
    width: 118px;
    min-width: 118px;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-size {
    width: 92px;
    min-width: 92px;
}

.fd-editor-shell .fd-editor-ribbon .fd-editor-style {
    width: 188px;
    min-width: 188px;
}

.fd-editor-ribbon-button.fd-editor-tool {
    display: inline-grid !important;
    grid-template-rows: 28px 1fr;
    place-items: center;
    width: 82px !important;
    min-width: 82px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 4px 6px !important;
    gap: 2px;
    text-align: center;
}

.fd-editor-ribbon-icon {
    display: grid;
    place-items: center;
    min-width: 26px;
    min-height: 26px;
    font-size: 16px;
    font-weight: 760;
    line-height: 1;
}

.fd-editor-ribbon-button-label {
    display: -webkit-box;
    max-width: 72px;
    min-height: 22px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 10px;
    font-weight: 680;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

/* Altlasten des bisherigen Popover-/Sticky-Konzepts vollständig neutralisieren. */
.fd-editor-ribbon .fd-editor-toolbar-more-toggle,
.fd-editor-ribbon .fd-editor-toolbar-more-panel,
.fd-editor-ribbon .fd-editor-more-head {
    display: none !important;
}

.fd-editor-shell .fd-editor-toolbar-placeholder {
    display: none !important;
    height: 0 !important;
}

.fd-editor-shell.is-toolbar-stuck .fd-editor-toolbar.fd-editor-ribbon {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fd-editor-border) !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: none !important;
}

@media (max-width: 820px) {
    .fd-editor-ribbon-tabs {
        padding-inline: 5px;
    }

    .fd-editor-ribbon-tab {
        padding-inline: 10px;
    }

    .fd-editor-ribbon-panel {
        min-height: 90px;
        padding-inline: 5px;
    }

    .fd-editor-ribbon-group {
        padding-inline: 7px;
    }
}

@media (max-width: 560px) {
    .fd-editor-ribbon-tab {
        min-height: 29px;
        padding-inline: 9px;
        font-size: 11px;
    }

    .fd-editor-ribbon-panel {
        min-height: 78px;
    }

    .fd-editor-ribbon-group-label {
        font-size: 8px;
    }
}


@media (max-width: 860px) {
    .fd-editor-ribbon-group-tools[data-layout="stacked-select"] {
        grid-template-columns: repeat(4, max-content);
    }
}


/*
 * 2026.36.27.00 · Vollbild als echte Dokument-Arbeitsfläche.
 * Das Ribbon bleibt über die gesamte Breite erreichbar. Darunter liegt ein
 * zentriertes Dokument mit angenehmer Lesebreite auf einer ruhigen Fläche.
 */
.fd-editor-shell.is-fullscreen {
    inset: 0;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--fd-editor-soft) 86%, #dbe4ee 14%);
    box-shadow: none;
    overflow: hidden;
}

.fd-editor-shell.is-fullscreen .fd-editor-toolbar.fd-editor-ribbon {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 0 2px;
    border-radius: 0 !important;
    background: var(--fd-editor-surface);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .055);
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-tabs,
.fd-editor-shell.is-fullscreen .fd-editor-ribbon-panel {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-tabs {
    padding-inline: 22px;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-panel {
    padding-inline: 22px;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-panel:not([data-fd-ribbon-panel="start"]) {
    min-height: 88px;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-button.fd-editor-tool {
    width: 76px !important;
    min-width: 76px !important;
    height: 60px !important;
    min-height: 60px !important;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-group {
    grid-template-rows: minmax(60px, auto) 16px;
}

.fd-editor-shell.is-fullscreen .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group {
    grid-template-rows: minmax(78px, auto) 16px;
}

.fd-editor-shell.is-fullscreen .fd-editor-canvas,
.fd-editor-shell.is-fullscreen .fd-editor-source {
    flex: 1 1 auto;
    width: min(1080px, calc(100vw - 72px));
    max-width: min(1080px, calc(100vw - 72px));
    min-height: 0;
    margin: 20px auto;
    box-sizing: border-box;
    border: 1px solid color-mix(in srgb, var(--fd-editor-border) 92%, #94a3b8 8%);
    border-radius: 5px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
}

.fd-editor-shell.is-fullscreen .fd-editor-canvas {
    padding: 42px 54px 64px;
    background: var(--fd-editor-surface);
    line-height: 1.72;
}

.fd-editor-shell.is-fullscreen .fd-editor-source {
    padding: 28px 32px 42px;
}

.fd-editor-shell.is-fullscreen .fd-editor-footer {
    flex: 0 0 auto;
    min-height: 44px;
    padding-inline: max(18px, calc((100vw - 1080px) / 2));
    border-radius: 0;
    background: var(--fd-editor-surface);
    box-shadow: 0 -1px 0 var(--fd-editor-border);
}

@media (max-width: 1180px) {
    .fd-editor-shell.is-fullscreen .fd-editor-canvas,
    .fd-editor-shell.is-fullscreen .fd-editor-source {
        width: calc(100vw - 44px);
        max-width: calc(100vw - 44px);
        margin-block: 14px;
    }

    .fd-editor-shell.is-fullscreen .fd-editor-canvas {
        padding: 34px 38px 50px;
    }

    .fd-editor-shell.is-fullscreen .fd-editor-footer {
        padding-inline: 22px;
    }
}

@media (max-width: 720px) {
    .fd-editor-shell.is-fullscreen .fd-editor-ribbon-tabs,
    .fd-editor-shell.is-fullscreen .fd-editor-ribbon-panel {
        padding-inline: 8px;
    }

    .fd-editor-shell.is-fullscreen .fd-editor-canvas,
    .fd-editor-shell.is-fullscreen .fd-editor-source {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin-block: 8px;
        border-radius: 3px;
    }

    .fd-editor-shell.is-fullscreen .fd-editor-canvas {
        padding: 24px 20px 36px;
    }

    .fd-editor-shell.is-fullscreen .fd-editor-footer {
        padding-inline: 10px;
    }
}


/*
 * 2026.36.27.00 · Normale Editoransicht des Ribbons entschlackt.
 * Die Vollbildansicht bleibt wie in 2026.36.21.00. In der normalen Ansicht
 * wird vor allem der Start-Reiter kompakter und gleichmäßiger aufgebaut.
 */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
    min-height: 98px;
    padding-block: 6px 4px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group {
    grid-template-rows: minmax(72px, auto) 16px;
    min-width: 0;
    padding-inline: 8px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="compact-grid"] {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    height: 32px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="compact-grid"] > .fd-editor-tool {
    min-width: 30px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] {
    grid-template-columns: repeat(4, max-content);
    grid-auto-rows: 28px;
    gap: 4px;
    min-height: 72px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child {
    width: 146px;
    min-width: 146px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="tiles"] {
    gap: 6px;
    height: 72px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
    border-radius: 6px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool {
    min-width: 30px;
    height: 28px;
    min-height: 28px;
    padding-inline: 7px;
    font-size: 11px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
    height: 30px;
    min-height: 30px;
    padding-inline: 9px 26px;
    font-size: 11px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format {
    width: 146px;
    min-width: 146px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
    width: 116px;
    min-width: 116px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
    width: 178px;
    min-width: 178px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
    width: 72px !important;
    min-width: 72px !important;
    height: 62px !important;
    min-height: 62px !important;
    grid-template-rows: 26px 1fr;
    padding: 4px 5px !important;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-icon {
    min-width: 24px;
    min-height: 24px;
    font-size: 15px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button-label {
    max-width: 64px;
    min-height: 20px;
    font-size: 9px;
    line-height: 1.08;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-label {
    font-size: 9px;
}

@media (max-width: 1100px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child {
        width: 132px;
        min-width: 132px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format {
        width: 132px;
        min-width: 132px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
        width: 104px;
        min-width: 104px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
        width: 68px !important;
        min-width: 68px !important;
    }
}


/*
 * 2026.36.27.00 · Feinschliff für die normale Ribbon-Ansicht.
 * Weniger vertikale Luft, ausgewogenere Gruppen und ruhigere Kacheln.
 */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tabs {
    min-height: 34px;
    padding: 3px 10px 0;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab {
    min-height: 30px;
    padding-inline: 14px;
    font-size: 12px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel {
    min-height: 84px;
    padding: 4px 8px 3px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
    min-height: 90px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group {
    grid-template-rows: minmax(58px, auto) 14px;
    padding-inline: 7px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group {
    grid-template-rows: minmax(66px, auto) 14px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools {
    height: 58px;
    gap: 3px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="compact-grid"] {
    height: 28px;
    gap: 3px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] {
    grid-template-columns: repeat(4, max-content);
    grid-auto-rows: 26px;
    gap: 3px;
    min-height: 62px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child {
    width: 138px;
    min-width: 138px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="tiles"] {
    gap: 4px;
    height: 62px;
    align-items: flex-start;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool {
    min-width: 28px;
    height: 26px;
    min-height: 26px;
    padding-inline: 6px;
    font-size: 11px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
    height: 28px;
    min-height: 28px;
    padding-inline: 9px 24px;
    font-size: 11px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format {
    width: 140px;
    min-width: 140px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
    width: 114px;
    min-width: 114px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
    width: 170px;
    min-width: 170px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
    width: 66px !important;
    min-width: 66px !important;
    height: 56px !important;
    min-height: 56px !important;
    grid-template-rows: 22px 1fr;
    padding: 3px 4px !important;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-icon {
    min-width: 22px;
    min-height: 22px;
    font-size: 14px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button-label {
    max-width: 60px;
    min-height: 18px;
    font-size: 8.5px;
    line-height: 1.05;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-label {
    align-self: center;
    font-size: 8.5px;
    line-height: 13px;
}

.fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group[data-ribbon-group="Links"] .fd-editor-ribbon-group-tools {
    justify-content: center;
}

@media (max-width: 1100px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format {
        width: 132px;
        min-width: 132px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
        width: 104px;
        min-width: 104px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
        width: 62px !important;
        min-width: 62px !important;
    }
}


/* 2026.36.27.00 · Abschlussrunde: flexible Höhe, Bild-Resize, Statistik und Tastaturhilfe. */
.fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
.fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
    height: var(--fd-editor-height, clamp(420px, 56vh, 620px));
    min-height: 320px;
    max-height: 900px;
}

.content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
.content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
    height: var(--fd-editor-height, clamp(340px, 48vh, 520px));
    min-height: 320px;
    max-height: 900px;
}

.fd-editor-resize-handle {
    position: relative;
    display: grid;
    place-items: center;
    height: 12px;
    border-top: 1px solid var(--fd-editor-border);
    background: color-mix(in srgb, var(--fd-editor-surface) 97%, var(--fd-editor-brand) 3%);
    cursor: ns-resize;
    touch-action: none;
}

.fd-editor-resize-handle > span,
.fd-editor-resize-handle > span::before,
.fd-editor-resize-handle > span::after {
    display: block;
    width: 30px;
    height: 1px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fd-editor-muted) 55%, transparent);
}

.fd-editor-resize-handle > span { position: relative; }
.fd-editor-resize-handle > span::before,
.fd-editor-resize-handle > span::after { content: ""; position: absolute; left: 0; }
.fd-editor-resize-handle > span::before { top: -3px; }
.fd-editor-resize-handle > span::after { top: 3px; }

.fd-editor-resize-handle:hover,
.fd-editor-resize-handle:focus-visible,
.fd-editor-resize-handle.is-dragging {
    background: color-mix(in srgb, var(--fd-editor-brand) 8%, var(--fd-editor-surface));
    outline: none;
}

.fd-editor-shell.is-fullscreen .fd-editor-resize-handle { display: none; }
.fd-editor-stats { white-space: nowrap; }

.fd-editor-image-resize-overlay {
    position: absolute;
    z-index: 35;
    box-sizing: border-box;
    border: 2px solid color-mix(in srgb, var(--fd-editor-brand) 82%, #ffffff 18%);
    border-radius: 8px;
    pointer-events: none;
}
.fd-editor-image-resize-overlay[hidden] { display: none !important; }
.fd-editor-image-resize-handle {
    position: absolute;
    z-index: 2;
    width: 13px;
    height: 13px;
    border: 2px solid var(--fd-editor-surface);
    border-radius: 50%;
    background: var(--fd-editor-brand);
    box-shadow: 0 1px 5px rgba(15, 23, 42, .22);
    pointer-events: auto;
    touch-action: none;
}
.fd-editor-image-resize-handle.is-nw { top: -7px; left: -7px; cursor: nwse-resize; }
.fd-editor-image-resize-handle.is-ne { top: -7px; right: -7px; cursor: nesw-resize; }
.fd-editor-image-resize-handle.is-sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.fd-editor-image-resize-handle.is-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.fd-editor-image-resize-size {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.fd-editor-shortcuts-wrap { display: grid; gap: 18px; padding: 20px; }
.fd-editor-shortcuts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fd-editor-shortcuts-grid section {
    padding: 14px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--fd-editor-soft) 70%, var(--fd-editor-surface));
}
.fd-editor-shortcuts-grid section > strong { display: block; margin-bottom: 8px; color: var(--fd-editor-text); font-size: 13px; }
.fd-editor-shortcuts-grid dl { display: grid; gap: 7px; margin: 0; }
.fd-editor-shortcuts-grid dl > div { display: grid; grid-template-columns: minmax(130px, auto) 1fr; align-items: center; gap: 10px; }
.fd-editor-shortcuts-grid dt,
.fd-editor-shortcuts-grid dd { margin: 0; font-size: 12px; }
.fd-editor-shortcuts-grid dd { color: var(--fd-editor-muted); }
.fd-editor-shortcuts-grid kbd {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid var(--fd-editor-border);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--fd-editor-surface);
    color: var(--fd-editor-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

@media (max-width: 760px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        height: var(--fd-editor-height, clamp(320px, 52vh, 500px));
        min-height: 300px;
        max-height: 760px;
    }
    .fd-editor-stats { white-space: normal; }
    .fd-editor-shortcuts-grid { grid-template-columns: 1fr; }
}


/* 2026.36.27.00 · Revisionen, Autosave-Wiederherstellung und Integritätsprüfung. */
.fd-editor-history-dialog {
    width: min(1060px, calc(100vw - 32px));
}

.fd-editor-history-wrap,
.fd-editor-recovery-wrap,
.fd-editor-integrity-wrap {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.fd-editor-history-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 14px;
    min-height: 420px;
}

.fd-editor-history-list {
    display: grid;
    align-content: start;
    gap: 7px;
    max-height: 520px;
    padding-right: 4px;
    overflow: auto;
}

.fd-editor-version-item {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 10px;
    background: var(--fd-editor-surface);
    color: var(--fd-editor-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.fd-editor-version-item:hover,
.fd-editor-version-item:focus-visible,
.fd-editor-version-item.is-active {
    border-color: color-mix(in srgb, var(--fd-editor-brand) 34%, var(--fd-editor-border));
    background: color-mix(in srgb, var(--fd-editor-brand) 7%, var(--fd-editor-surface));
    outline: none;
}

.fd-editor-version-item > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.fd-editor-version-item b { font-size: 12px; }
.fd-editor-version-item small { color: var(--fd-editor-muted); font-size: 10px; font-weight: 550; }

.fd-editor-history-detail {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.fd-editor-history-summary,
.fd-editor-recovery-state,
.fd-editor-integrity-summary {
    display: grid;
    gap: 3px;
    padding: 11px 13px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 11px;
    background: var(--fd-editor-soft);
    color: var(--fd-editor-muted);
    font-size: 12px;
}

.fd-editor-history-summary strong,
.fd-editor-recovery-state strong,
.fd-editor-integrity-summary strong {
    color: var(--fd-editor-text);
    font-size: 13px;
}

.fd-editor-history-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.fd-editor-history-compare article {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
}

.fd-editor-history-compare article > strong {
    color: var(--fd-editor-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fd-editor-history-compare pre,
.fd-editor-recovery-preview {
    min-height: 280px;
    max-height: 500px;
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--fd-editor-border);
    border-radius: 11px;
    background: var(--fd-editor-surface);
    color: var(--fd-editor-text);
    font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.fd-editor-recovery-dialog { width: min(720px, calc(100vw - 32px)); }
.fd-editor-recovery-preview { min-height: 220px; }

.fd-editor-integrity-dialog { width: min(820px, calc(100vw - 32px)); }
.fd-editor-integrity-list {
    display: grid;
    gap: 8px;
    max-height: 470px;
    overflow: auto;
}

.fd-editor-integrity-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 3px 10px;
    padding: 10px 12px;
    border: 1px solid var(--fd-editor-border);
    border-left-width: 4px;
    border-radius: 10px;
    background: var(--fd-editor-surface);
}

.fd-editor-integrity-item.is-error { border-left-color: #b83b4d; }
.fd-editor-integrity-item.is-warning { border-left-color: #b97918; }
.fd-editor-integrity-item > span { color: var(--fd-editor-muted); font-size: 10px; font-weight: 760; text-transform: uppercase; }
.fd-editor-integrity-item > strong { font-size: 12px; }
.fd-editor-integrity-item > code {
    grid-column: 2;
    overflow: hidden;
    color: var(--fd-editor-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-editor-empty-mini {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px dashed var(--fd-editor-border);
    border-radius: 11px;
    color: var(--fd-editor-muted);
    text-align: center;
}
.fd-editor-empty-mini strong { color: var(--fd-editor-text); }
.fd-editor-empty-mini.is-error strong { color: #b83b4d; }
.fd-editor-empty-mini.is-success strong { color: #28734c; }

@media (max-width: 760px) {
    .fd-editor-history-layout,
    .fd-editor-history-compare {
        grid-template-columns: 1fr;
    }
    .fd-editor-history-layout { min-height: 0; }
    .fd-editor-history-list { max-height: 230px; }
    .fd-editor-history-compare pre { min-height: 180px; max-height: 260px; }
}

.fd-editor-diff-change {
    padding: 1px 2px;
    border-radius: 4px;
    background: color-mix(in srgb, #f3c84b 40%, var(--fd-editor-surface));
    color: inherit;
}

.fd-editor-ribbon-group[hidden] { display: none !important; }

/* 2026.36.27.00 · Hilfe, Diagnose und Konfigurations-Transfer */
.fd-editor-help-overview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.fd-editor-help-overview article {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--fd-editor-soft) 72%, var(--fd-editor-surface));
}

.fd-editor-help-overview strong {
    color: var(--fd-editor-text);
    font-size: 12px;
}

.fd-editor-help-overview span,
.fd-editor-help-note {
    color: var(--fd-editor-muted);
    font-size: 11px;
    line-height: 1.45;
}

.fd-editor-help-note {
    margin: 0;
    padding: 11px 13px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--fd-editor-brand) 5%, var(--fd-editor-surface));
}

.fd-editor-settings-transfer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fd-editor-diagnostics-dialog {
    width: min(900px, calc(100vw - 32px));
}

.fd-editor-diagnostics-wrap {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.fd-editor-diagnostics-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 11px 14px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 12px;
    background: var(--fd-editor-soft);
}

.fd-editor-diagnostics-summary strong {
    color: var(--fd-editor-text);
    font-size: 14px;
}

.fd-editor-diagnostics-summary span {
    color: var(--fd-editor-muted);
    font-size: 12px;
}

.fd-editor-diagnostics-summary.is-ok {
    border-color: color-mix(in srgb, #2f8a5a 42%, var(--fd-editor-border));
    background: color-mix(in srgb, #2f8a5a 7%, var(--fd-editor-surface));
}

.fd-editor-diagnostics-summary.is-error {
    border-color: color-mix(in srgb, #b97918 42%, var(--fd-editor-border));
    background: color-mix(in srgb, #b97918 7%, var(--fd-editor-surface));
}

.fd-editor-diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.fd-editor-diagnostics-grid section {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--fd-editor-border);
    border-radius: 12px;
    background: var(--fd-editor-surface);
}

.fd-editor-diagnostics-grid section > strong {
    display: block;
    margin-bottom: 9px;
    color: var(--fd-editor-text);
    font-size: 12px;
}

.fd-editor-diagnostics-grid .fd-editor-diagnostics-self {
    grid-column: 1 / -1;
}

.fd-editor-diagnostics-grid ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fd-editor-diagnostic-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 8px;
    background: var(--fd-editor-soft);
}

.fd-editor-diagnostic-row > span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.fd-editor-diagnostic-row.is-ok > span {
    color: #1f7047;
    background: color-mix(in srgb, #2f8a5a 14%, var(--fd-editor-surface));
}

.fd-editor-diagnostic-row.is-error > span {
    color: #963547;
    background: color-mix(in srgb, #b83b4d 13%, var(--fd-editor-surface));
}

.fd-editor-diagnostic-row strong,
.fd-editor-diagnostic-row small {
    display: block;
    overflow-wrap: anywhere;
}

.fd-editor-diagnostic-row strong {
    color: var(--fd-editor-text);
    font-size: 11px;
    line-height: 1.35;
}

.fd-editor-diagnostic-row small {
    margin-top: 2px;
    color: var(--fd-editor-muted);
    font-size: 10px;
    line-height: 1.35;
}

.fd-editor-diagnostic-loading {
    grid-column: 1 / -1;
    padding: 10px;
    color: var(--fd-editor-muted);
    font-size: 11px;
}

.fd-editor-diagnostics-note {
    margin: 0;
    color: var(--fd-editor-muted);
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .fd-editor-help-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .fd-editor-diagnostics-grid,
    .fd-editor-diagnostics-grid ul {
        grid-template-columns: 1fr;
    }

    .fd-editor-diagnostics-grid .fd-editor-diagnostics-self {
        grid-column: auto;
    }

    .fd-editor-help-overview {
        grid-template-columns: 1fr;
    }
}


/*
 * 2026.37.01.06 · Mobile Ribbon
 * Auf Smartphones wird das Desktop-Menüband nicht zusammengedrückt. Reiter
 * bleiben oben erreichbar, Werkzeuggruppen werden mit ausreichend großen
 * Touch-Flächen horizontal gewischt. Desktop und Vollbild bleiben unberührt.
 */
@media (max-width: 640px) {
    .fd-editor-shell:not(.is-fullscreen) {
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-toolbar.fd-editor-ribbon {
        border-radius: 13px 13px 0 0 !important;
        overflow: hidden;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tabs {
        display: flex;
        min-height: 39px;
        padding: 4px 6px 0;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tabs::-webkit-scrollbar,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel::-webkit-scrollbar {
        display: none;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab {
        flex: 0 0 auto;
        min-width: 62px;
        min-height: 34px;
        padding: 0 10px;
        border-radius: 8px 8px 0 0;
        font-size: 11px;
        scroll-snap-align: start;
        touch-action: manipulation;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab.is-active::after {
        right: 8px;
        left: 8px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panels {
        overflow: hidden;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        align-items: stretch;
        gap: 0;
        min-height: 102px;
        padding: 7px 6px 5px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[hidden] {
        display: none !important;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group {
        grid-template-rows: minmax(74px, auto) 16px;
        min-width: 118px;
        padding: 0 8px;
        scroll-snap-align: start;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Schrift"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Absatz"] {
        min-width: 238px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Links"] {
        min-width: 158px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="compact-grid"] {
        height: auto;
        min-height: 72px;
        gap: 4px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="compact-grid"] {
        display: grid;
        grid-template-columns: repeat(3, 36px);
        grid-auto-rows: 36px;
        align-content: start;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="compact-grid"] > .fd-editor-tool:last-child {
        grid-column: auto;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="stacked-select"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] {
        display: grid;
        grid-template-columns: repeat(5, 36px);
        grid-auto-rows: 36px;
        gap: 4px;
        min-height: 76px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"] > :first-child {
        grid-column: 1 / 4;
        width: 116px;
        min-width: 116px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="tiles"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="tiles"] {
        display: flex;
        align-items: stretch;
        gap: 5px;
        height: 74px;
        min-height: 74px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="single-select"] {
        grid-template-columns: 180px;
        grid-template-rows: 72px;
        height: 72px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool {
        width: 36px;
        min-width: 36px;
        height: 36px;
        min-height: 36px;
        padding: 0;
        border-radius: 8px;
        font-size: 12px;
        touch-action: manipulation;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
        height: 36px;
        min-height: 36px;
        padding: 0 28px 0 9px;
        border-radius: 8px;
        font-size: 11px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format {
        width: 116px;
        min-width: 116px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
        width: 116px;
        min-width: 116px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
        width: 180px;
        min-width: 180px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
        width: 72px !important;
        min-width: 72px !important;
        height: 72px !important;
        min-height: 72px !important;
        grid-template-rows: 30px 1fr;
        padding: 4px !important;
        border-radius: 9px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-icon {
        min-width: 28px;
        min-height: 28px;
        font-size: 16px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button-label {
        max-width: 64px;
        min-height: 22px;
        font-size: 9px;
        line-height: 1.12;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-label {
        font-size: 9px;
        line-height: 15px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        height: var(--fd-editor-height, clamp(360px, 54vh, 520px));
        min-height: 340px;
        max-height: 720px;
        padding: 18px 14px 26px;
        font-size: 15px;
        line-height: 1.65;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        padding: 14px;
        font-size: 12px;
        line-height: 1.55;
    }

    .fd-editor-resize-handle {
        min-height: 18px;
    }

    .fd-editor-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-items: stretch;
        gap: 6px;
        min-height: 0;
        padding: 8px 10px 9px;
        font-size: 10px;
    }

    .fd-editor-footer-meta {
        display: flex;
        align-items: center;
        gap: 5px 8px;
        width: 100%;
    }

    .fd-editor-stats {
        flex: 1 1 100%;
        width: 100%;
        white-space: normal;
        line-height: 1.45;
    }

    .fd-editor-context {
        min-height: 22px;
        padding-inline: 7px;
        font-size: 10px;
    }

    .fd-editor-status {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 10px;
        line-height: 1.35;
    }

    .fd-editor-footer > a {
        justify-self: start;
        font-size: 9.5px;
    }
}

@media (max-width: 390px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab {
        min-width: 58px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Schrift"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Absatz"] {
        min-width: 226px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        padding-inline: 12px;
    }
}


/*
 * 2026.37.01.06 · Echtes Mobile-Ribbon.
 * Auf Smartphones werden die Werkzeuge nicht mehr horizontal als verkleinerte
 * Desktop-Gruppen geschoben. Alle Werkzeuge des aktiven Reiters fließen in ein
 * touchfreundliches Raster. Desktop und Vollbild bleiben unverändert.
 */
@media (max-width: 640px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        min-height: 42px;
        padding: 4px 4px 0;
        gap: 1px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab {
        width: 100%;
        min-width: 0;
        min-height: 37px;
        padding: 0 3px;
        border-radius: 8px 8px 0 0;
        font-size: 10px;
        line-height: 1;
        text-align: center;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-tab.is-active::after {
        right: 7px;
        left: 7px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panels {
        overflow: visible;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-rows: auto;
        align-items: stretch;
        gap: 5px;
        width: 100%;
        min-height: 0;
        padding: 7px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[hidden] {
        display: none !important;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Schrift"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Absatz"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group[data-ribbon-group="Links"] {
        display: contents;
        min-width: 0;
        padding: 0;
        border: 0;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="compact-grid"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="stacked-select"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="tiles"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-tools[data-layout="single-select"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="compact-grid"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="stacked-select"],
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-group-tools[data-layout="tiles"] {
        display: contents;
        height: auto;
        min-height: 0;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-group-label {
        display: none;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool {
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--fd-editor-border) 86%, transparent);
        border-radius: 9px;
        background: color-mix(in srgb, var(--fd-editor-surface) 98%, var(--fd-editor-brand) 2%);
        font-size: 13px;
        touch-action: manipulation;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool:hover,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool:focus-visible,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool.is-active {
        border-color: color-mix(in srgb, var(--fd-editor-brand) 30%, var(--fd-editor-border));
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
        grid-column: span 3;
        width: 100%;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 0 29px 0 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-style {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
        height: 42px;
        min-height: 42px;
        padding: 0 30px 0 11px;
        border-radius: 9px;
        font-size: 12px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
        grid-column: span 2;
        display: inline-grid !important;
        grid-template-rows: 26px auto;
        width: 100% !important;
        min-width: 0 !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 4px 3px !important;
        gap: 2px;
        border-radius: 9px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] .fd-editor-ribbon-button.fd-editor-tool {
        grid-column: span 3;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-icon {
        min-width: 24px;
        min-height: 24px;
        font-size: 15px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button-label {
        display: block;
        max-width: 100%;
        min-height: 0;
        overflow: hidden;
        font-size: 9px;
        font-weight: 680;
        line-height: 1.08;
        text-align: center;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-source,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-canvas,
    .content-builder-block .fd-editor-shell:not(.is-fullscreen) .fd-editor-source {
        height: var(--fd-editor-height, clamp(300px, 42vh, 420px));
        min-height: 280px;
        max-height: 560px;
        padding: 17px 14px 24px;
        font-size: 15px;
        line-height: 1.62;
    }

    .fd-editor-footer {
        gap: 5px;
        padding: 7px 9px 8px;
    }

    .fd-editor-stats {
        font-size: 9.5px;
        line-height: 1.35;
    }
}

@media (max-width: 390px) {
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-panel[data-fd-ribbon-panel="start"] {
        gap: 4px;
        padding: 6px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-tool {
        height: 38px;
        min-height: 38px;
        font-size: 12px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-format,
    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon .fd-editor-size {
        height: 38px;
        min-height: 38px;
        font-size: 11px;
    }

    .fd-editor-shell:not(.is-fullscreen) .fd-editor-ribbon-button.fd-editor-tool {
        height: 58px !important;
        min-height: 58px !important;
    }
}
