body.editorPage main.container {
    max-width: 600px;
}

#editorFolderBar {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    margin-top: 32px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
    justify-content: space-between;
}

#editorFolderBar p {
    margin: 0;
    display: flex;
    align-items: start;
    gap: 8px;
    text-align: left;
}

#editorFolderBar .button {
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 14px;
    font-size: .9em;
}

.style-flat #editorFolderBar.resolved {
    background-color: var(--button-background-color);
    color: var(--paragraph-color);
    border-color: transparent;
}

.style-liquid-glass #editorFolderBar.resolved {
    background: var(--liquid-glass-button-background);
    border: 1px solid var(--liquid-glass-button-border);
    color: var(--paragraph-color);
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    backdrop-filter: blur(var(--blur-heavy));
    box-shadow: none;
}

.style-flat #editorFolderBar.ok,
.style-liquid-glass #editorFolderBar.ok {
    background-color: color-mix(in srgb, var(--accent-color) 15%, transparent);
    border-color: color-mix(in srgb, var(--accent-color) 35%, transparent);
    color: var(--paragraph-color);
}

.browserSupportWarning {
    display: flex;
}

.section.editorForm,
.section.editorPreview {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
}

.editorField {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.editorField > span {
    font-weight: 600;
    color: var(--secondary-title-color);
}

.editorField small {
    color: var(--secondary-title-color);
}

.editorField input,
.editorField textarea {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    font: inherit;
    color: var(--title-color);
}

.editorField input.button,
.editorField textarea.button {
    border-radius: 12px;
    cursor: text;
    transition: none;
}

.editorField input[type="date"].button {
    cursor: auto;
}

.style-flat .editorField input.button:hover,
.style-flat .editorField textarea.button:hover {
    background-color: var(--button-background-color);
}

.style-liquid-glass .editorField input.button:hover,
.style-liquid-glass .editorField textarea.button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.editorField input[type="date"].button:read-only {
    color: var(--title-color);
    opacity: 1;
    cursor: auto;
}

.editorField input.button:read-only,
.editorField textarea.button:read-only,
.editorField input.button:disabled,
.editorField textarea.button:disabled {
    color: var(--secondary-title-color);
    opacity: .55;
    cursor: not-allowed;
}

.editorField input.button:active,
.editorField textarea.button:active {
    transform: none;
}

.editorField textarea { resize: vertical; }

.editorBody {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95em;
    line-height: 1.55;
    min-height: 320px;
}

.articleAdminNotice { min-height: 1.4em; margin: 0; }
.articleAdminNotice.ok { color: var(--accent-text); }
.articleAdminNotice.error { color: light-dark(#d70015, #ff6961); }

.editorPreview .article-content {
    min-height: 200px;
    overflow-wrap: break-word;
}

.info .description code,
.editorField small code,
main > .section > .section-content code {
    display: inline;
    margin: 0;
    padding: 2px 5px;
    white-space: normal;
}

.articleAdminBar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.articleAdminActions {
    display: inline-flex;
    gap: 8px;
    margin-right: 8px;
}

.articleAdminActions .button {
    padding: 8px 12px;
}

.articleAdminActions .button:disabled,
.articleAdminBar .button:disabled,
#editorFolderBar .button:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: grayscale(60%);
}

#fieldBodyEditor {
    border-radius: 10px;
    overflow: hidden;
}

#fieldBodyEditor code {
    display: inline;
    margin: 0;
    padding: 1px 4px;
    white-space: pre-wrap;
}

#fieldBodyEditor pre code {
    display: block;
    padding: 0;
}

#fieldBodyEditor .toastui-editor-contents {
    font-family: inherit;
    font-size: 1em;
    line-height: 1.6;
    color: var(--paragraph-color);
}

#fieldBodyEditor .toastui-editor-contents h1,
#fieldBodyEditor .toastui-editor-contents h2 {
    border-bottom: 0;
    padding-bottom: 0;
}

#fieldBodyEditor .toastui-editor-contents h1,
#fieldBodyEditor .toastui-editor-contents h2,
#fieldBodyEditor .toastui-editor-contents h3,
#fieldBodyEditor .toastui-editor-contents h4,
#fieldBodyEditor .toastui-editor-contents h5,
#fieldBodyEditor .toastui-editor-contents h6 {
    font-family: inherit;
    font-weight: 550;
    color: var(--secondary-title-color);
    margin: 20px 0 10px;
}

#fieldBodyEditor .toastui-editor-contents h1 { font-size: 2em; }
#fieldBodyEditor .toastui-editor-contents h2 { font-size: 1.5em; }
#fieldBodyEditor .toastui-editor-contents h3 { font-size: 1.17em; }

#fieldBodyEditor .toastui-editor-contents p {
    color: var(--paragraph-color);
    margin-bottom: 12px;
}

#fieldBodyEditor .toastui-editor-contents a {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

#fieldBodyEditor .toastui-editor-contents ul,
#fieldBodyEditor .toastui-editor-contents ol {
    color: var(--paragraph-color);
    margin-left: 2em;
    margin-bottom: 12px;
}

#fieldBodyEditor .toastui-editor-contents blockquote {
    border-left: 3px solid var(--accent-color);
    color: var(--paragraph-color);
    background: none;
}

#fieldBodyEditor .toastui-editor-contents img {
    max-width: 100%;
    height: auto;
}

.style-flat #fieldBodyEditor .toastui-editor-defaultUI {
    border-radius: 10px;
    border: 1px solid var(--button-background-color);
    background-color: transparent;
}

.style-flat #fieldBodyEditor .toastui-editor-defaultUI-toolbar {
    border-radius: 10px 10px 0 0;
    background-color: var(--button-background-color);
    border-bottom-color: var(--button-background-color);
}

.style-flat #fieldBodyEditor .toastui-editor-mode-switch {
    border-radius: 0 0 10px 10px;
    background-color: var(--button-background-color);
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-defaultUI {
    border-radius: 16px;
    background: var(--liquid-glass-button-background);
    border: 1px solid var(--liquid-glass-button-border);
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    backdrop-filter: blur(var(--blur-heavy));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.2);
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-defaultUI-toolbar {
    border-radius: 16px 16px 0 0;
    background: transparent;
    border-bottom: 1px solid var(--liquid-glass-button-border);
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-mode-switch {
    border-radius: 0 0 16px 16px;
    background: transparent;
    border-top: 1px solid var(--liquid-glass-button-border);
}

#fieldBodyEditor .toastui-editor-mode-switch .tab-item {
    color: var(--secondary-title-color);
    background: transparent;
}

#fieldBodyEditor .toastui-editor-mode-switch .tab-item.active {
    color: var(--title-color);
    background: var(--liquid-glass-button-slected);
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-md-container,
.style-liquid-glass #fieldBodyEditor .toastui-editor-ww-container,
.style-liquid-glass #fieldBodyEditor .toastui-editor-md-preview,
.style-liquid-glass #fieldBodyEditor .ProseMirror,
.style-liquid-glass #fieldBodyEditor .toastui-editor-defaultUI .toastui-editor {
    background: transparent;
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-toolbar-divider {
    background-color: var(--liquid-glass-button-border);
}

.style-liquid-glass #fieldBodyEditor .toastui-editor-toolbar-icons:hover {
    background-color: var(--liquid-glass-button-slected);
    border-color: var(--liquid-glass-button-border);
}

#fieldBodyEditor .toastui-editor-contents blockquote {
    margin: 0 0 12px;
    padding: 8px 16px;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    background-color: var(--card-background-color);
    color: var(--paragraph-color);
}

#fieldBodyEditor .toastui-editor-contents blockquote > :last-child {
    margin-bottom: 0;
}

#fieldBodyEditor .toastui-editor-contents pre {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 8px;
    overflow-x: auto;
    background-color: var(--card-background-color);
}

#fieldBodyEditor .toastui-editor-contents pre code {
    display: block;
    padding: 0;
    background: none;
    white-space: pre;
}

#fieldBodyEditor .toastui-editor-contents table {
    width: 100%;
    margin: 0 0 12px;
    border-collapse: collapse;
    color: var(--paragraph-color);
}

#fieldBodyEditor .toastui-editor-contents th,
#fieldBodyEditor .toastui-editor-contents td {
    padding: 8px 10px;
    border: 1px solid var(--liquid-glass-button-border);
    text-align: left;
}

#fieldBodyEditor .toastui-editor-contents th {
    color: var(--secondary-title-color);
    font-weight: 550;
    background-color: var(--card-background-color);
}

#fieldBodyEditor .toastui-editor-contents hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--liquid-glass-button-border);
}

#fieldBodyEditor .toastui-editor-contents strong {
    color: var(--secondary-title-color);
    font-weight: 600;
}
