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

.editorLayout {
    display: block;
}

#editorFolderBar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

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

#editorFolderBar .button {
    flex: 0 0 auto;
}

.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(12px);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

#editorFolderBar.resolved i {
    color: var(--accent-color);
}

.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);
    opacity: .8;
}

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

.editorField input.button,
.editorField textarea.button,
.editorField select.button,
.editorCategory input.button,
.editorCategory select.button {
    border-radius: 12px;
}

.editorField input.button,
.editorField textarea.button,
.editorCategory input.button {
    cursor: text;
}

.editorField select.button,
.editorCategory select.button {
    cursor: pointer;
}

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

.editorField input.button,
.editorField textarea.button,
.editorField select.button,
.editorCategory input.button,
.editorCategory select.button {
    transition: none;
}

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

.style-liquid-glass .editorField input.button:hover,
.style-liquid-glass .editorField textarea.button:hover,
.style-liquid-glass .editorField select.button:hover,
.style-liquid-glass .editorCategory input.button:hover,
.style-liquid-glass .editorCategory select.button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.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,
.editorField select.button:disabled,
.editorCategory input.button:disabled,
.editorCategory select.button:disabled {
    color: var(--secondary-title-color);
    opacity: .55;
    cursor: not-allowed;
}

.editorField input.button:active,
.editorField textarea.button:active,
.editorField select.button:active,
.editorCategory input.button:active,
.editorCategory select.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;
}

.editorCategory {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-bottom: 8px;
}

.editorStatus,
.articleAdminNotice { min-height: 1.4em; margin: 0; }
.editorStatus.ok,
.articleAdminNotice.ok { color: var(--accent-color); }
.editorStatus.error,
.articleAdminNotice.error { color: #ff3b30; }

.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-color);
    text-decoration: none;
}

#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(12px);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        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);
}

.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;
}
