:host {
    display: block;
    min-width: 0;
    max-width: 100%;
    contain: layout;
}

.sun-editor-editable {
    background: transparent;
    box-sizing: border-box;
    font: 400 1.25rem / 1.5 "Times New Roman", Times, "Microsoft JhengHei", "微軟正黑體", sans-serif !important;
    font-feature-settings: normal;
    font-variation-settings: normal;
    text-align: start;
    letter-spacing: normal;
    text-transform: none;
    word-spacing: normal;
    white-space: normal;
    text-indent: 0;
    text-shadow: none;
    writing-mode: horizontal-tb;
    direction: ltr;
    overflow-x: auto;
    overflow-wrap: anywhere;
    padding: 0;
}

.sun-editor-editable *:not(.katex):not(.katex *) {
    font-family: "Times New Roman", Times, "Microsoft JhengHei", "微軟正黑體", sans-serif !important;
    line-height: 1.5 !important;
}

.sun-editor-editable *:not(:is(h1, h2, h3, h4, h5, h6, h1 *, h2 *, h3 *, h4 *, h5 *, h6 *)):not(.katex):not(.katex *) {
    font-size: 1.25rem !important;
}

.sun-editor-editable h1 {
    font-size: 2rem !important;
}

.sun-editor-editable h2 {
    font-size: 1.5rem !important;
}

.sun-editor-editable h3 {
    font-size: 1.17rem !important;
}

.sun-editor-editable h4 {
    font-size: 1rem !important;
}

.sun-editor-editable h5 {
    font-size: 0.83rem !important;
}

.sun-editor-editable h6 {
    font-size: 0.67rem !important;
}

.sun-editor-editable :is(h1, h2, h3, h4, h5, h6) *:not(.katex):not(.katex *) {
    font-size: inherit !important;
}

.sun-editor-editable :where(img, video, iframe) {
    max-width: 100%;
}

.sun-editor-editable :where(img:not([height])) {
    height: auto;
}

.sun-editor-editable .list-unstyled {
    list-style: none;
    padding-inline-start: 0;
}

.sun-editor-editable .table-bordered :is(td, th) {
    border: 1px solid currentColor;
}
