/*!
 * @generated DeDeEditor v2.0.0-beta.112
 * manifest: config/modules.json
 * artifact: editor-css
 * sources: src/css/editor.css, src/css/source-code.css, src/css/floating-picker.css, src/css/format-marks.css, src/css/block-format.css, src/css/line-height.css, src/css/shading.css, src/css/border.css, src/css/case-picker.css, src/css/font-family.css, src/css/font-size.css, src/css/highlight-picker.css, src/css/underline-picker.css, src/css/table-properties.css, src/css/table-resize.css, src/css/image-resize.css, src/css/find-replace.css, src/css/clipboard.css, src/css/paste-image-batch.css, src/css/remote-images.css, src/css/draft-store.css
 * content-sha256: bb68eb05b41400bddbe8f9d598b008259df571a824aa23968e18fc37bb542c15
 */
.dede-editor {
    border: 1px solid #cfd7df;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.dede-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    padding: 5px 6px 4px;
    border-bottom: 1px solid #dbe2e8;
    background: linear-gradient(#f8faf9, #f1f5f2);
}
.dede-editor-toolbar-group {
    display: grid;
    grid-template-rows: minmax(30px, auto) 16px;
    gap: 2px;
    padding-inline-end: 6px;
    border-inline-end: 1px solid #cfdad2;
}
.dede-editor-toolbar-group:last-child {
    padding-inline-end: 0;
    border-inline-end: 0;
}
.dede-editor-toolbar-group-controls {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
}
.dede-editor-toolbar-group-label {
    overflow: hidden;
    color: #5d6f62;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dede-editor-button {
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid #c8d1da;
    background: #fff;
    color: #24313d;
    cursor: pointer;
    font-size: 12px;
    line-height: 24px;
    border-radius: 4px;
    white-space: nowrap;
}
.dede-editor-button:hover {
    background: #eef5ff;
    border-color: #8bb7e0;
}
.dede-editor-button:focus {
    outline: 2px solid #9cc9f2;
    outline-offset: 1px;
}
.dede-editor-toolbar-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    padding: 0;
    background: linear-gradient(#ffffff, #f3f6f9);
}
.dede-editor-button-active {
    background: #e8f4eb;
    border-color: #16823b;
    color: #16823b;
}
.dede-editor-toolbar-button:hover {
    z-index: 20;
    transform: translateY(-1px);
}
.dede-editor-toolbar-button:focus-visible {
    z-index: 20;
}
.dede-editor-text-color-trigger::after {
    position: absolute;
    inset-inline: 7px;
    bottom: 3px;
    height: 3px;
    border-radius: 2px;
    background: #16823b;
    content: "";
}
.dede-editor-toolbar-button[data-command="strikethrough"]::after {
    position: absolute;
    inset-inline: 5px;
    top: 50%;
    height: 1px;
    background: currentColor;
    content: "";
}
.dede-editor-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #24313d;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0;
}
.dede-editor-align-icon {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 16px;
    height: 14px;
}
.dede-editor-align-icon > i {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
}
.dede-editor-align-icon:not(.is-justify) > i:nth-child(even) {
    width: 68%;
}
.dede-editor-align-icon.is-left > i:nth-child(even) {
    margin-inline-end: auto;
}
.dede-editor-align-icon.is-center > i:nth-child(even) {
    margin-inline: auto;
}
.dede-editor-align-icon.is-right > i:nth-child(even) {
    margin-inline-start: auto;
}
.dede-editor-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.dede-editor-button-tooltip {
    position: absolute;
    z-index: 30;
    display: none;
    top: calc(100% + 5px);
    inset-inline-start: 50%;
    max-width: 180px;
    padding: 4px 7px;
    border: 1px solid #1d2a35;
    border-radius: 4px;
    background: #24313d;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-2px);
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
    visibility: hidden;
    white-space: nowrap;
}
.dede-editor-toolbar-button:hover .dede-editor-button-tooltip,
.dede-editor-toolbar-button:focus-visible .dede-editor-button-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}
.dede-editor-toolbar > .dede-editor-toolbar-button:first-child .dede-editor-button-tooltip,
.dede-editor-toolbar-group:first-child .dede-editor-toolbar-button:first-child .dede-editor-button-tooltip {
    inset-inline-start: 0;
    transform: translateY(-2px);
}
.dede-editor-toolbar > .dede-editor-toolbar-button:first-child:hover .dede-editor-button-tooltip,
.dede-editor-toolbar > .dede-editor-toolbar-button:first-child:focus-visible .dede-editor-button-tooltip,
.dede-editor-toolbar-group:first-child .dede-editor-toolbar-button:first-child:hover .dede-editor-button-tooltip,
.dede-editor-toolbar-group:first-child .dede-editor-toolbar-button:first-child:focus-visible .dede-editor-button-tooltip {
    transform: translateY(0);
}
.dede-editor-button:disabled {
    color: #96a2ad;
    cursor: default;
    background: #f4f6f8;
    border-color: #d7dfe6;
}
.dede-editor-color-panel {
    position: absolute;
    z-index: 35;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #24313d;
}
.dede-editor-color-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #294c32;
    font-size: 12px;
}
.dede-editor-color-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #294c32;
    cursor: pointer;
    font-size: 18px;
    line-height: 22px;
}
.dede-editor-color-close:hover,
.dede-editor-color-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}
.dede-editor-color-swatches {
    display: grid;
    grid-template-columns: repeat(8, 30px);
    gap: 6px;
    margin-bottom: 8px;
}
.dede-editor-color-swatch {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #7d8a82;
    border-radius: 5px;
    cursor: pointer;
}
.dede-editor-color-swatch:hover,
.dede-editor-color-swatch:focus-visible {
    border-color: #16823b;
    box-shadow: 0 0 0 2px #a8d7b5;
    outline: 0;
    transform: translateY(-1px);
}
.dede-editor-color-custom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
}
.dede-editor-color-custom input[type="color"] {
    box-sizing: border-box;
    width: 42px;
    height: 30px;
    padding: 2px;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.dede-editor-color-custom input[type="color"]:focus-visible {
    border-color: #16823b;
    outline: 2px solid #a8d7b5;
    outline-offset: 1px;
}
.dede-editor-color-message {
    min-height: 18px;
    margin-top: 4px;
    color: #9f2d24;
    font-size: 12px;
    line-height: 18px;
}
.dede-editor-body {
    min-height: 260px;
    padding: 10px;
    overflow: auto;
    line-height: 1.7;
    outline: none;
}
}
.dede-editor-body img {
    max-width: 100%;
}
.dede-editor-body [data-dede-text-align="left"] {
    text-align: left;
}
.dede-editor-body [data-dede-text-align="center"] {
    text-align: center;
}
.dede-editor-body [data-dede-text-align="right"] {
    text-align: right;
}
.dede-editor-body [data-dede-text-align="justify"] {
    text-align: justify;
}
.dede-editor-body [data-dede-text-align="distribute"] {
    text-align: justify;
    text-align-last: justify;
}
.dede-editor-paste-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #b8d7c1;
    background: #eff8f1;
    color: #294c32;
    font-size: 12px;
    line-height: 1.5;
}
.dede-editor-paste-summary-message {
    min-width: 0;
}
.dede-editor-paste-summary-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 4px;
}
.dede-editor-source {
    display: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 260px;
    padding: 10px;
    border: 0;
    outline: none;
    font-family: Menlo, Consolas, monospace;
    line-height: 1.5;
}
.dede-editor.is-source .dede-editor-body {
    display: none;
}
.dede-editor.is-source .dede-editor-source {
    display: block;
}
.dede-editor-status {
    padding: 4px 8px;
    border-top: 1px solid #eef1f4;
    color: #687785;
    font-size: 12px;
    text-align: right;
}
.dede-editor-resource-panel {
    display: none;
    border-top: 1px solid #dbe2e8;
    background: #fbfcfd;
}
.dede-editor-resource-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f4;
    color: #24313d;
    font-size: 12px;
}
.dede-editor-resource-header > strong {
    flex: 0 0 auto;
    white-space: nowrap;
}
.dede-editor-resource-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 4px;
}
.dede-editor-resource-search {
    display: flex;
    flex: 1 1 180px;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.dede-editor-resource-search input {
    box-sizing: border-box;
    flex: 1 1 auto;
    width: min(240px, 100%);
    min-width: 0;
    height: 26px;
    padding: 3px 6px;
    border: 1px solid #c8d1da;
    font-size: 12px;
}
.dede-editor-resource-message {
    padding: 10px;
    color: #5f6f7d;
    font-size: 12px;
}
.dede-editor-resource-upload {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid #eef1f4;
    background: #fff;
}
.dede-editor-resource-upload input[type="file"] {
    max-width: 260px;
    font-size: 12px;
}
.dede-editor-resource-upload-status {
    color: #687785;
    font-size: 12px;
}
.dede-editor-resource-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid #eef1f4;
    color: #687785;
    font-size: 12px;
}
.dede-editor-resource-list + .dede-editor-resource-pager {
    border-top: 1px solid #eef1f4;
    border-bottom: 0;
}
.dede-editor-resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding: 8px;
}
.dede-editor-resource-item {
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #d7e0e8;
    background: #fff;
    color: #24313d;
    cursor: pointer;
    font-size: 12px;
    line-height: 18px;
    text-align: left;
    word-break: break-all;
}
.dede-editor-resource-item:hover {
    background: #eef5ff;
    border-color: #8bb7e0;
}
@media (max-width: 480px) {
    .dede-editor-toolbar {
        gap: 4px;
        padding-inline: 4px;
    }
    .dede-editor-toolbar-group {
        box-sizing: border-box;
        flex: 0 0 auto;
        max-width: 100%;
    }
    .dede-editor-toolbar-group-controls {
        gap: 3px;
    }
    .dede-editor-paste-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .dede-editor-resource-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
    .dede-editor-resource-search {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }
    .dede-editor-resource-actions {
        grid-column: 2;
        grid-row: 1;
    }
    .dede-editor-color-swatches {
        grid-template-columns: repeat(4, 34px);
    }
    .dede-editor-color-swatch {
        width: 34px;
        height: 34px;
    }
    .dede-editor-color-custom {
        align-items: flex-start;
    }
}

.dede-editor-source-wrap {
    position: relative;
    display: none;
    min-height: 260px;
    overflow: hidden;
    background: #fbfdff;
}
.dede-editor.is-source .dede-editor-source-wrap {
    display: block;
}
.dede-editor-source-wrap .dede-editor-source {
    position: relative;
    z-index: 2;
    display: block;
    min-height: 260px;
    background: transparent;
    color: transparent;
    caret-color: #24313d;
    -webkit-text-fill-color: transparent;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 2;
    overflow-x: hidden;
    overflow-y: auto;
    resize: vertical;
}
.dede-editor-source-wrap .dede-editor-source::selection {
    color: transparent;
    background: rgba(46, 125, 50, 0.18);
}
.dede-editor-source-highlight {
    position: absolute;
    z-index: 1;
    inset: 0;
    box-sizing: border-box;
    margin: 0;
    min-height: 260px;
    padding: 10px;
    border: 0;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: none;
    background: transparent;
    color: #24313d;
    font-family: Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 2;
}
.dede-editor-source-highlight-code {
    display: block;
    min-height: 240px;
    font: inherit;
}
.dede-editor-source-token-tag {
    color: #7c3aed;
}
.dede-editor-source-token-attribute {
    color: #0f766e;
}
.dede-editor-source-token-string {
    color: #b45309;
}
.dede-editor-source-token-comment {
    color: #6b7280;
    font-style: italic;
}
.dede-editor-source-token-punctuation {
    color: #64748b;
}
.dede-editor-source-token-entity {
    color: #2563eb;
}
.dede-editor-source-token-keyword {
    color: #be185d;
}
@media (max-width: 560px) {
    .dede-editor-source-wrap .dede-editor-source,
    .dede-editor-source-highlight {
        min-height: 220px;
        padding: 8px;
        font-size: 12px;
    }
}

.dede-editor {
    position: relative;
}

.dede-editor .dede-editor-floating-picker-panel {
    position: absolute;
    z-index: 35;
    width: 300px;
    max-width: calc(100% - 20px);
    margin: 0;
}

@media (max-width: 390px) {
    .dede-editor .dede-editor-floating-picker-panel {
        width: calc(100% - 20px);
    }
}

.dede-editor.is-marks .dede-editor-body p::after,
.dede-editor.is-marks .dede-editor-body h2::after,
.dede-editor.is-marks .dede-editor-body h3::after,
.dede-editor.is-marks .dede-editor-body blockquote::after {
    content: " ¶";
    color: #94a3b8;
    font-size: 0.85em;
    font-weight: normal;
}
.dede-editor.is-marks .dede-editor-body [data-dede-indent] {
    box-shadow: inset 3px 0 0 #cbd5d1;
}
.dede-editor.is-marks .dede-editor-body [data-dede-border] {
    outline: 1px dashed #94a3b8;
    outline-offset: 2px;

.dede-editor-body [data-dede-indent="1"] {
    margin-inline-start: 2rem;
}
.dede-editor-body [data-dede-indent="2"] {
    margin-inline-start: 4rem;
}
.dede-editor-body [data-dede-indent="3"] {
    margin-inline-start: 6rem;
}
.dede-editor-body [data-dede-indent="4"] {
    margin-inline-start: 8rem;
}
.dede-editor-body [data-dede-line-height="1"] {
    line-height: 1;
}
.dede-editor-body [data-dede-line-height="1.15"] {
    line-height: 1.15;
}
.dede-editor-body [data-dede-line-height="1.5"] {
    line-height: 1.5;
}
.dede-editor-body [data-dede-line-height="1.75"] {
    line-height: 1.75;
}
.dede-editor-body [data-dede-line-height="2"] {
    line-height: 2;
}
.dede-editor-body [data-dede-line-height="2.5"] {
    line-height: 2.5;
}
.dede-editor-body [data-dede-line-height="3"] {
    line-height: 3;
}
.dede-editor-body [data-dede-shading="#F3F4F6"] { background-color: #F3F4F6; }
.dede-editor-body [data-dede-shading="#E5E7EB"] { background-color: #E5E7EB; }
.dede-editor-body [data-dede-shading="#DBEAFE"] { background-color: #DBEAFE; }
.dede-editor-body [data-dede-shading="#D1FAE5"] { background-color: #D1FAE5; }
.dede-editor-body [data-dede-shading="#FEF3C7"] { background-color: #FEF3C7; }
.dede-editor-body [data-dede-shading="#FCE7F3"] { background-color: #FCE7F3; }
.dede-editor-body [data-dede-shading="#EDE9FE"] { background-color: #EDE9FE; }
.dede-editor-body [data-dede-shading="#FEE2E2"] { background-color: #FEE2E2; }
.dede-editor-body [data-dede-border="solid"] { border: 1px solid #cbd5d1; padding: 8px; }
.dede-editor-body [data-dede-border="dashed"] { border: 1px dashed #94a3b8; padding: 8px; }
.dede-editor-body [data-dede-border="dotted"] { border: 1px dotted #94a3b8; padding: 8px; }
.dede-editor-body [data-dede-border="double"] { border: 3px double #94a3b8; padding: 8px; }
.dede-editor-body [data-dede-space-before="0.5"] { margin-top: 0.5em; }
.dede-editor-body [data-dede-space-before="1"] { margin-top: 1em; }
.dede-editor-body [data-dede-space-before="1.5"] { margin-top: 1.5em; }
.dede-editor-body [data-dede-space-before="2"] { margin-top: 2em; }
.dede-editor-body [data-dede-space-before="2.5"] { margin-top: 2.5em; }
.dede-editor-body [data-dede-space-before="3"] { margin-top: 3em; }
.dede-editor-body [data-dede-space-after="0.5"] { margin-bottom: 0.5em; }
.dede-editor-body [data-dede-space-after="1"] { margin-bottom: 1em; }
.dede-editor-body [data-dede-space-after="1.5"] { margin-bottom: 1.5em; }
.dede-editor-body [data-dede-space-after="2"] { margin-bottom: 2em; }
.dede-editor-body [data-dede-space-after="2.5"] { margin-bottom: 2.5em; }
.dede-editor-body [data-dede-space-after="3"] { margin-bottom: 3em; }

.dede-editor-line-height-panel {
    position: relative;
    z-index: 13;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}

.dede-editor-line-height-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.dede-editor-line-height-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}

.dede-editor-line-height-close:hover,
.dede-editor-line-height-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-line-height-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 6px;
}

.dede-editor-line-height-option {
    min-width: 44px;
    min-height: 36px;
    border: 1px solid #cbd5d1;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}

.dede-editor-line-height-option:hover,
.dede-editor-line-height-option:focus-visible {
    border-color: #16823b;
    background: #eef8f0;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-line-height-clear {
    min-height: 34px;
    margin-top: 9px;
}

.dede-editor-line-height-message {
    min-height: 18px;
    margin-top: 6px;
    color: #b42318;
}

@media (max-width: 520px) {
    .dede-editor-line-height-presets {
        grid-template-columns: repeat(4, minmax(40px, 1fr));
    }
}

.dede-editor-shading-panel {
    position: relative;
    z-index: 13;
    box-sizing: border-box;
    width: 263px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}
.dede-editor-shading-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}
.dede-editor-shading-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}
.dede-editor-shading-close:hover,
.dede-editor-shading-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}
.dede-editor-shading-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.dede-editor-shading-swatch {
    width: 100%;
    min-height: 36px;
    border: 1px solid #cbd5d1;
    border-radius: 4px;
    cursor: pointer;
}
.dede-editor-shading-swatch:hover,
.dede-editor-shading-swatch:focus-visible {
    border-color: #16823b;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}
.dede-editor-shading-clear {
    min-height: 34px;
    margin-top: 9px;
}
.dede-editor-shading-message {
    min-height: 18px;
    margin-top: 6px;
    color: #b42318;
}
@media (max-width: 520px) {
    .dede-editor-shading-presets {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dede-editor-border-panel {
    position: relative; z-index: 13; box-sizing: border-box;
    width: 263px; max-width: calc(100% - 20px); padding: 10px; margin: 8px 10px;
    border: 1px solid #b9cdbf; border-radius: 6px; background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16); color: #1f2937; font-size: 12px;
}
.dede-editor-border-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.dede-editor-border-close { width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: #374151; font-size: 18px; cursor: pointer; }
.dede-editor-border-close:hover, .dede-editor-border-close:focus-visible { background: #e8f4eb; outline: 2px solid #16823b; outline-offset: 1px; }
.dede-editor-border-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dede-editor-border-option { min-height: 36px; border-radius: 4px; background: #fff; color: #1f2937; cursor: pointer; }
.dede-editor-border-option:hover, .dede-editor-border-option:focus-visible { outline: 2px solid #16823b; outline-offset: 1px; }
.dede-editor-border-clear { min-height: 34px; margin-top: 9px; }
@media (max-width: 520px) { .dede-editor-border-presets { grid-template-columns: repeat(2, 1fr); } }

.dede-editor-case-panel {
    position: relative; z-index: 13; box-sizing: border-box;
    width: 220px; max-width: calc(100% - 20px); padding: 10px; margin: 8px 10px;
    border: 1px solid #b9cdbf; border-radius: 6px; background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16); color: #1f2937; font-size: 12px;
}
.dede-editor-case-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.dede-editor-case-close { width: 32px; height: 32px; border: 0; border-radius: 4px; background: transparent; color: #374151; font-size: 18px; cursor: pointer; }
.dede-editor-case-close:hover, .dede-editor-case-close:focus-visible { background: #e8f4eb; outline: 2px solid #16823b; outline-offset: 1px; }
.dede-editor-case-modes { display: flex; flex-direction: column; gap: 6px; }
.dede-editor-case-option { min-height: 34px; text-align: left; }
.dede-editor-case-option:hover, .dede-editor-case-option:focus-visible { outline: 2px solid #16823b; outline-offset: 1px; }
@media (max-width: 520px) { .dede-editor-case-panel { width: calc(100% - 20px); } }

.dede-editor-font-family-panel {
    position: relative;
    z-index: 13;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}

.dede-editor-font-family-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.dede-editor-font-family-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}

.dede-editor-font-family-close:hover,
.dede-editor-font-family-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-font-family-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.dede-editor-font-family-option {
    min-width: 0;
    min-height: 38px;
    padding: 6px 8px;
    overflow: hidden;
    border: 1px solid #cbd5d1;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dede-editor-font-family-option:hover,
.dede-editor-font-family-option:focus-visible {
    border-color: #16823b;
    background: #eef8f0;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-font-family-clear {
    min-height: 34px;
    margin-top: 9px;
}

.dede-editor-font-family-message {
    min-height: 18px;
    margin-top: 6px;
    color: #b42318;
}

@media (max-width: 360px) {
    .dede-editor-font-family-options {
        grid-template-columns: 1fr;
    }
}

.dede-editor-font-size-panel {
    position: relative;
    z-index: 13;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}

.dede-editor-font-size-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.dede-editor-font-size-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}

.dede-editor-font-size-close:hover,
.dede-editor-font-size-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-font-size-presets {
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 6px;
}

.dede-editor-font-size-option {
    min-width: 44px;
    min-height: 36px;
    border: 1px solid #cbd5d1;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
}

.dede-editor-font-size-option:hover,
.dede-editor-font-size-option:focus-visible {
    border-color: #16823b;
    background: #eef8f0;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-font-size-clear {
    min-height: 34px;
    margin-top: 9px;
}

.dede-editor-font-size-message {
    min-height: 18px;
    margin-top: 6px;
    color: #b42318;
}

@media (max-width: 520px) {
    .dede-editor-font-size-presets {
        grid-template-columns: repeat(4, minmax(40px, 1fr));
    }
}

.dede-editor-highlight-panel {
    position: relative;
    z-index: 13;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 8px 10px;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}

.dede-editor-highlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.dede-editor-highlight-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
}

.dede-editor-highlight-close:hover,
.dede-editor-highlight-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-highlight-swatches {
    display: grid;
    grid-template-columns: repeat(4, 36px);
    gap: 7px;
}

.dede-editor-highlight-swatch {
    width: 36px;
    height: 36px;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    cursor: pointer;
}

.dede-editor-highlight-swatch:hover,
.dede-editor-highlight-swatch:focus-visible {
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-highlight-clear {
    min-height: 34px;
    margin-top: 9px;
}

.dede-editor-highlight-message {
    min-height: 18px;
    margin-top: 6px;
    color: #9a6700;
}

.dede-editor-text-highlight-trigger::after {
    position: absolute;
    inset-inline: 6px;
    bottom: 3px;
    height: 7px;
    border-radius: 2px;
    background: #fff59d;
    content: "";
    opacity: .82;
}

.dede-editor {
    position: relative;
}

.dede-editor-underline-main {
    width: 25px;
    min-width: 25px;
    margin-inline-end: -4px;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.dede-editor-underline-main:hover {
    transform: none;
}

.dede-editor-underline-main .dede-editor-underline-icon {
    position: relative;
    width: 14px;
    padding-bottom: 2px;
}

.dede-editor-underline-main .dede-editor-underline-icon::after {
    position: absolute;
    inset-inline: 1px;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    content: "";
}

.dede-editor-underline-menu-trigger {
    width: 15px;
    min-width: 15px;
    padding: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.dede-editor-underline-menu-trigger:hover {
    transform: none;
}

.dede-editor-underline-menu-trigger[aria-expanded="true"] {
    z-index: 21;
    border-color: #16823b;
    background: #e8f4eb;
    color: #16823b;
}

.dede-editor-underline-menu-trigger[aria-expanded="true"]
    .dede-editor-button-tooltip {
    display: none;
}

.dede-editor-underline-menu-trigger .dede-editor-button-icon {
    font-size: 9px;
}

.dede-editor-underline-panel {
    position: absolute;
    z-index: 35;
    box-sizing: border-box;
    width: 300px;
    max-width: calc(100% - 20px);
    padding: 10px;
    margin: 0;
    border: 1px solid #b9cdbf;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, .16);
    color: #1f2937;
    font-size: 12px;
}

.dede-editor-underline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.dede-editor-underline-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    font-size: 18px;
}

.dede-editor-underline-close:hover,
.dede-editor-underline-close:focus-visible {
    background: #e8f4eb;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-underline-section-title {
    margin: 7px 0 5px;
    color: #5d6f62;
    font-size: 11px;
}

.dede-editor-underline-styles {
    display: grid;
    gap: 4px;
}

.dede-editor-underline-style-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d7e0da;
    border-radius: 4px;
    background: #fff;
    color: #24313d;
    cursor: pointer;
}

.dede-editor-underline-style-option:hover,
.dede-editor-underline-style-option:focus-visible {
    border-color: #16823b;
    background: #eef8f0;
    outline: 2px solid #16823b;
    outline-offset: 1px;
}

.dede-editor-underline-style-preview {
    display: block;
    width: 100%;
    height: 0;
    border-bottom: 1px solid currentColor;
}

.dede-editor-underline-style-preview[data-preview-style="double"] {
    border-bottom: 3px double currentColor;
}

.dede-editor-underline-style-preview[data-preview-style="dotted"] {
    border-bottom-style: dotted;
}

.dede-editor-underline-style-preview[data-preview-style="dashed"] {
    border-bottom-style: dashed;
}

.dede-editor-underline-style-preview[data-preview-style="wavy"] {
    height: 8px;
    border: 0;
    background:
        radial-gradient(circle at 4px 1px, transparent 4px, currentColor 4px,
            currentColor 5px, transparent 5px) 0 0 / 8px 8px repeat-x;
}

.dede-editor-underline-colors {
    display: grid;
    grid-template-columns: repeat(8, 28px);
    gap: 6px;
}

.dede-editor-underline-color-option {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #7d8a82;
    border-radius: 4px;
    cursor: pointer;
}

.dede-editor-underline-color-option:hover,
.dede-editor-underline-color-option:focus-visible {
    border-color: #16823b;
    box-shadow: 0 0 0 2px #a8d7b5;
    outline: 0;
    transform: translateY(-1px);
}

.dede-editor-underline-clear {
    min-height: 34px;
    margin-top: 9px;
}

.dede-editor-underline-message {
    min-height: 18px;
    margin-top: 5px;
    color: #b42318;
}

.dede-editor-body u {
    text-underline-offset: .12em;
}

.dede-editor-body u[data-dede-underline-style="double"] {
    text-decoration-style: double;
}

.dede-editor-body u[data-dede-underline-style="dotted"] {
    text-decoration-style: dotted;
}

.dede-editor-body u[data-dede-underline-style="dashed"] {
    text-decoration-style: dashed;
}

.dede-editor-body u[data-dede-underline-style="wavy"] {
    text-decoration-style: wavy;
}

.dede-editor-body u[data-dede-underline-color="#1F2937"] {
    text-decoration-color: #1f2937;
}

.dede-editor-body u[data-dede-underline-color="#DC2626"] {
    text-decoration-color: #dc2626;
}

.dede-editor-body u[data-dede-underline-color="#EA580C"] {
    text-decoration-color: #ea580c;
}

.dede-editor-body u[data-dede-underline-color="#CA8A04"] {
    text-decoration-color: #ca8a04;
}

.dede-editor-body u[data-dede-underline-color="#16823B"] {
    text-decoration-color: #16823b;
}

.dede-editor-body u[data-dede-underline-color="#2563EB"] {
    text-decoration-color: #2563eb;
}

.dede-editor-body u[data-dede-underline-color="#7C3AED"] {
    text-decoration-color: #7c3aed;
}

.dede-editor-body u[data-dede-underline-color="#FFFFFF"] {
    text-decoration-color: #fff;
}

@media (max-width: 390px) {
    .dede-editor-underline-panel {
        width: calc(100% - 20px);
    }

    .dede-editor-underline-colors {
        grid-template-columns: repeat(4, 32px);
    }

    .dede-editor-underline-color-option {
        width: 32px;
        height: 32px;
    }
}

.dede-editor-table-panel {
    padding: 8px;
    border-bottom: 1px solid #b8d7c1;
    background: #f7fbf8;
    color: #24313d;
}
.dede-editor-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #294c32;
    font-size: 12px;
}
.dede-editor-table-close {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    color: #294c32;
    cursor: pointer;
}
.dede-editor-table-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
}
.dede-editor-table-field {
    display: grid;
    gap: 4px;
    color: #496451;
    font-size: 12px;
}
.dede-editor-table-field input {
    width: 180px;
    accent-color: #16823b;
}
.dede-editor-table-field select {
    min-width: 100px;
    height: 28px;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    color: #24313d;
}
.dede-editor-table-message {
    min-height: 16px;
    margin-top: 5px;
    color: #47624e;
    font-size: 11px;
}
.dede-editor-table-structure {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #d5e4d8;
    color: #294c32;
    font-size: 12px;
}
.dede-editor-table-column-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px 12px;
}
.dede-editor-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dede-editor-table-action {
    width: auto;
}
.dede-editor-table-action.is-danger {
    border-color: #d9b9b9;
    color: #8a3333;
}
.dede-editor-body table {
    max-width: 100%;
    border-collapse: collapse;
    transition: width 120ms ease, margin 120ms ease;
}
.dede-editor-body table:hover {
    outline: 2px solid #9bc7a6;
    outline-offset: 2px;
}
.dede-editor-body table[data-dede-align="left"] {
    margin-inline: 0 auto;
}
.dede-editor-body table[data-dede-align="center"] {
    margin-inline: auto;
}
.dede-editor-body table[data-dede-align="right"] {
    margin-inline: auto 0;
}
.dede-editor-body :is(td, th)[data-dede-vertical-align="top"] {
    vertical-align: top;
}
.dede-editor-body :is(td, th)[data-dede-vertical-align="middle"] {
    vertical-align: middle;
}
.dede-editor-body :is(td, th)[data-dede-vertical-align="bottom"] {
    vertical-align: bottom;
}
.dede-editor-body :is(td, th)[data-dede-cell-padding="4"] {
    padding: 4px;
}
.dede-editor-body :is(td, th)[data-dede-cell-padding="8"] {
    padding: 8px;
}
.dede-editor-body :is(td, th)[data-dede-cell-padding="12"] {
    padding: 12px;
}
@media (max-width: 480px) {
    .dede-editor-table-close {
        width: 32px;
        height: 32px;
    }
    .dede-editor-table-controls {
        align-items: stretch;
        flex-direction: column;
    }
    .dede-editor-table-column-controls {
        align-items: stretch;
        flex-direction: column;
    }
    .dede-editor-table-field input,
    .dede-editor-table-field select {
        width: 100%;
    }
    .dede-editor-table-action,
    .dede-editor-table-apply,
    .dede-editor-table-apply-column {
        height: 34px;
        line-height: 32px;
    }
}

.dede-editor-body td,
.dede-editor-body th {
  position: relative;
}

.dede-editor-body td::after,
.dede-editor-body th::after {
  position: absolute;
  inset-block: 0;
  inset-inline-end: -6px;
  width: 12px;
  content: "";
  cursor: col-resize;
}

.dede-editor-body td::before,
.dede-editor-body th::before {
  position: absolute;
  inset-block-end: -6px;
  inset-inline: 0;
  height: 12px;
  content: "";
  cursor: row-resize;
}

.dede-editor {
  position: relative;
}

.dede-editor-body img {
  height: auto;
  max-width: 100%;
}

.dede-editor-image-resize {
  position: absolute;
  z-index: 30;
  box-sizing: border-box;
  border: 2px solid #16823b;
  pointer-events: none;
}

.dede-editor-image-resize[hidden] {
  display: none;
}

.dede-editor-image-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16823b;
  box-shadow: 0 0 0 1px #126b32;
  pointer-events: auto;
  touch-action: none;
}

.dede-editor-image-handle:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
}

.dede-editor-image-handle[data-corner="nw"] {
  inset-block-start: -8px;
  inset-inline-start: -8px;
  cursor: nwse-resize;
}

.dede-editor-image-handle[data-corner="ne"] {
  inset-block-start: -8px;
  inset-inline-end: -8px;
  cursor: nesw-resize;
}

.dede-editor-image-handle[data-corner="sw"] {
  inset-block-end: -8px;
  inset-inline-start: -8px;
  cursor: nesw-resize;
}

.dede-editor-image-handle[data-corner="se"] {
  inset-block-end: -8px;
  inset-inline-end: -8px;
  cursor: nwse-resize;
}

.dede-editor-image-size {
  position: absolute;
  inset-block-end: 6px;
  inset-inline-end: 6px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #fff;
  background: rgba(17, 24, 39, 0.78);
  direction: ltr;
  font: 11px/1.4 system-ui, sans-serif;
  pointer-events: none;
  unicode-bidi: isolate;
}

.dede-editor-image-resize:not(.is-resizing) .dede-editor-image-size {
  opacity: 0;
}

@media (pointer: coarse) {
  .dede-editor-image-handle {
    width: 20px;
    height: 20px;
  }
}

.dede-editor.is-source .dede-editor-image-resize {
  display: none;
}

.dede-editor-find-panel {
    padding: 8px;
    border-bottom: 1px solid #b8d7c1;
    background: #f7fbf8;
    color: #24313d;
}
.dede-editor-find-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #294c32;
    font-size: 12px;
}
.dede-editor-find-close {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    color: #294c32;
    cursor: pointer;
    font-size: 18px;
    line-height: 22px;
}
.dede-editor-find-close:hover,
.dede-editor-find-close:focus-visible {
    border-color: #16823b;
    outline: 2px solid #a8d7b5;
    outline-offset: 1px;
}
.dede-editor-find-controls {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 8px;
}
.dede-editor-find-field {
    display: grid;
    gap: 4px;
    color: #496451;
    font-size: 12px;
}
.dede-editor-find-field input {
    box-sizing: border-box;
    width: 100%;
    height: 30px;
    padding: 4px 7px;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    color: #24313d;
}
.dede-editor-find-field input:focus-visible {
    border-color: #16823b;
    outline: 2px solid #a8d7b5;
    outline-offset: 1px;
}
.dede-editor-find-case {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    gap: 5px;
    color: #496451;
    font-size: 12px;
    white-space: nowrap;
}
.dede-editor-find-word {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    gap: 5px;
    color: #496451;
    font-size: 12px;
    white-space: nowrap;
}
.dede-editor-find-word input {
    accent-color: #16823b;
}
.dede-editor-body mark.dede-editor-find-highlight {
    background-color: #fff59d;
    color: inherit;
}
.dede-editor-body mark.dede-editor-find-highlight-current {
    background-color: #fb923c;
}
.dede-editor-find-case input {
    accent-color: #16823b;
}
.dede-editor-find-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.dede-editor-find-action {
    width: auto;
}
.dede-editor-find-status {
    min-height: 18px;
    margin-top: 5px;
    color: #47624e;
    font-size: 12px;
    line-height: 18px;
}
@media (max-width: 480px) {
    .dede-editor-find-close {
        width: 32px;
        height: 32px;
    }
    .dede-editor-find-controls {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .dede-editor-find-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .dede-editor-find-action {
        width: 100%;
        min-height: 34px;
    }
}

.dede-editor-clipboard-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-bottom: 1px solid #b8d7c1;
    background: #eff8f1;
    color: #294c32;
    font-size: 12px;
    line-height: 1.5;
}
.dede-editor-clipboard-close {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #b8c8bc;
    border-radius: 4px;
    background: #fff;
    color: #294c32;
    cursor: pointer;
    font-size: 17px;
    line-height: 22px;
}
.dede-editor-clipboard-close:hover,
.dede-editor-clipboard-close:focus-visible {
    border-color: #16823b;
    outline: 2px solid #a8d7b5;
    outline-offset: 1px;
}
@media (max-width: 480px) {
    .dede-editor-clipboard-status {
        align-items: flex-start;
    }
    .dede-editor-clipboard-close {
        width: 32px;
        height: 32px;
    }
}

.dede-editor-paste-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    margin-inline-start: 8px;
    border-color: #9bbca3;
    background: #f3faf5;
    color: #176b35;
    line-height: normal;
}

.dede-editor-paste-cancel:hover {
    border-color: #16823b;
    background: #e8f4eb;
}

.dede-editor-paste-cancel:focus-visible {
    border-color: #16823b;
    outline: 2px solid #a8d7b5;
    outline-offset: 1px;
}

.dede-editor-remote-images {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #b8d7c1;
    background: #f4faf5;
    color: #294c32;
    font-size: 12px;
}

.dede-editor-remote-images-title {
    font-size: 13px;
}

.dede-editor-remote-images-warning {
    margin: 0;
    color: #7a4f13;
    line-height: 1.5;
}

.dede-editor-remote-image-list {
    display: grid;
    max-height: 220px;
    overflow: auto;
    border: 1px solid #c8d8cc;
    border-radius: 4px;
    background: #fff;
}

.dede-editor-remote-image-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 7px 8px;
    border-bottom: 1px solid #eef3ef;
}

.dede-editor-remote-image-item:last-child {
    border-bottom: 0;
}

.dede-editor-remote-image-item span,
.dede-editor-remote-image-item bdi {
    display: block;
    min-width: 0;
}

.dede-editor-remote-image-item bdi {
    overflow: hidden;
    margin-top: 2px;
    color: #687785;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dede-editor-remote-image-item-status {
    margin-top: 3px;
    color: #52695a;
}

.dede-editor-remote-image-rights {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.5;
}

.dede-editor-remote-image-rights input,
.dede-editor-remote-image-item input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.dede-editor-remote-image-status {
    min-height: 18px;
    color: #5d6f62;
    line-height: 18px;
}

.dede-editor-remote-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 480px) {
    .dede-editor-remote-images {
        padding: 8px;
    }

    .dede-editor-remote-image-actions .dede-editor-button {
        min-height: 32px;
        height: auto;
        line-height: 1.3;
    }
}

.dede-editor-draft-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    margin: 8px 10px;
    border: 1px solid #b8d7c1;
    border-radius: 4px;
    background: #f0f8f3;
    color: #294c32;
    font-size: 12px;
}
.dede-editor-draft-banner .dede-editor-button {
    min-height: 28px;
    padding: 2px 10px;
    font-size: 12px;
}
.dede-editor-draft-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.dede-editor-draft-banner.is-conflict {
    display: block;
    border-color: #d6bd7b;
    background: #fff9e8;
    color: #5d4815;
}

.dede-editor-draft-banner.is-conflict .dede-editor-draft-message {
    display: block;
}

.dede-editor-draft-banner.is-conflict .dede-editor-draft-actions {
    margin-block-start: 8px;
}

.dede-editor-draft-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block-start: 8px;
}

.dede-editor-draft-comparison[hidden] {
    display: none;
}

.dede-editor-draft-comparison-column {
    min-width: 0;
}

.dede-editor-draft-comparison-column strong {
    display: block;
    margin-block-end: 4px;
}

.dede-editor-draft-comparison-column pre {
    max-height: 180px;
    margin: 0;
    padding: 8px;
    overflow: auto;
    border: 1px solid #ead9aa;
    border-radius: 4px;
    background: #fff;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 520px) {
    .dede-editor-draft-comparison {
        grid-template-columns: minmax(0, 1fr);
    }
}
