
.rs-article-edit-page {
    padding-top: 28px
}

.rs-edit-heading {
    margin-bottom: 20px
}

.rs-edit-heading .rs-heading-copy {
    position: relative
}

.rs-edit-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #777;
    font-size: 13px;
    font-weight: 600
}

.rs-edit-back:hover {
    color: #19a15f
}

.rs-edit-layout {
    align-items: flex-start
}

.rs-edit-form {
    min-width: 0
}

.rs-edit-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f8faf9;
    border: 1px solid #e5ebe7;
    border-radius: 5px
}

.rs-edit-state, .rs-edit-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.rs-edit-state > span:last-child {
    font-size: 12px;
    color: #78817c
}

.rs-edit-top-actions .rs-primary-button, .rs-edit-top-actions .rs-secondary-button {
    min-height: 38px
}

.rs-edit-card {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e3e7e5;
    border-radius: 5px;
    box-shadow: 0 2px 12px rgba(28, 39, 33, .035);
    overflow: hidden
}

.rs-edit-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-bottom: 1px solid #e8ecea;
    background: #fbfcfb
}

.rs-edit-card-heading > div {
    display: flex;
    align-items: center;
    gap: 10px
}

.rs-edit-card-heading h2 {
    margin: 0;
    color: #222;
    font: 600 19px/1.3 Roboto, sans-serif
}

.rs-edit-card-heading p {
    max-width: 330px;
    margin: 2px 0 0;
    color: #7a817e;
    font-size: 12px;
    line-height: 1.5;
    text-align: right
}

.rs-edit-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #19a15f;
    color: #fff;
    font: 700 13px/1 Roboto, sans-serif
}

.rs-edit-fields {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px 20px;
    padding: 20px
}

.rs-field {
    min-width: 0
}

.rs-field-wide {
    grid-column: 1/-1
}

.rs-field label, .rs-field-label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 13px;
    font-weight: 700
}

.rs-field input, .rs-field textarea, .rs-field select {
    display: block;
    width: 100%;
    border: 1px solid #ccd4d0;
    border-radius: 4px;
    background: #fff;
    color: #2a2d2b;
    font: 400 14px/1.5 Lato, sans-serif;
    transition: border-color .18s, box-shadow .18s
}

.rs-field input, .rs-field select {
    height: 43px;
    padding: 0 12px
}

.rs-field textarea {
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical
}

.rs-field input:focus, .rs-field textarea:focus, .rs-field select:focus {
    outline: 0;
    border-color: #19a15f;
    box-shadow: 0 0 0 3px rgba(25, 161, 95, .11)
}

.rs-field small {
    display: block;
    margin-top: 6px;
    color: #818985;
    font-size: 11.5px;
    line-height: 1.45
}

.rs-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.rs-field-meta span {
    margin-top: 6px;
    color: #858d89;
    font-size: 11.5px
}

.rs-id-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #e0e5e2;
    border-radius: 4px;
    background: #f8faf9;
    color: #6e7772
}

.rs-id-summary strong {
    color: #343a37
}

.rs-id-summary span {
    font-size: 12px
}

.rs-editor-card {
    overflow: visible
}

.rs-editor-heading {
    border-radius: 5px 5px 0 0
}

.rs-editor-shell {
    position: relative;
    border-top: 0;
    background: #fff
}

.rs-editor-toolbar {
    position: sticky;
    top: 58px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 50px;
    padding: 7px 9px;
    border-bottom: 1px solid #dfe5e2;
    background: #f6f8f7;
    box-shadow: 0 2px 7px rgba(25, 37, 30, .04)
}

.rs-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    padding-right: 6px;
    margin-right: 2px;
    border-right: 1px solid #d9dfdc
}

.rs-toolbar-group:last-child {
    border-right: 0;
    padding-right: 0;
    margin-left: auto
}

.rs-toolbar-group button, .rs-toolbar-group select {
    height: 34px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    color: #424945
}

.rs-toolbar-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 0 8px;
    cursor: pointer
}

.rs-toolbar-group button:hover, .rs-toolbar-group button.is-active {
    border-color: #cfd7d3;
    background: #fff;
    color: #159356
}

.rs-toolbar-group button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.rs-toolbar-group select {
    min-width: 116px;
    padding: 0 28px 0 8px;
    border-color: #d4dbd7;
    background: #fff
}

.rs-toolbar-labelled {
    gap: 6px
}

.rs-toolbar-labelled span {
    font-size: 12px;
    font-weight: 700
}

.rs-code-icon {
    font: 700 12px/1 monospace
}

.rs-editor-upload-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid #e6ebe8;
    background: #fbfdfc;
    color: #69736e;
    font-size: 11.5px
}

.rs-editor-upload-note svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #19a15f;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.rs-editor-upload-note strong {
    margin-left: auto;
    color: #198b55;
    font-weight: 600
}

.rs-editor-content {
    min-height: 510px;
    padding: 28px 31px 40px;
    outline: 0;
    font-size: 16px;
    line-height: 1.8
}

.rs-editor-content:focus {
    box-shadow: inset 0 0 0 2px rgba(25, 161, 95, .14)
}

.rs-editor-content h2 {
    margin: 30px 0 13px;
    font-size: 25px
}

.rs-editor-content h3 {
    margin: 25px 0 11px;
    font-size: 20px
}

.rs-editor-content blockquote {
    margin: 24px 0;
    padding: 14px 18px;
    border-left: 4px solid #19a15f;
    background: #f5faf7;
    color: #505a55
}

.rs-editor-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto 8px
}

.rs-editor-content table {
    width: 100%;
    margin: 22px 0;
    border-collapse: collapse
}

.rs-editor-content th, .rs-editor-content td {
    padding: 8px;
    border: 1px solid #d5dcd8
}

.rs-editor-content.is-drop-target {
    background: #f3fbf6;
    box-shadow: inset 0 0 0 2px #19a15f
}

.rs-source-editor {
    display: block;
    width: 100%;
    min-height: 510px;
    padding: 20px;
    border: 0;
    outline: 0;
    background: #17201b;
    color: #e9f4ed;
    font: 13px/1.65 Consolas, Monaco, monospace;
    resize: vertical
}

.rs-editor-status {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 12px;
    border-top: 1px solid #e4e9e6;
    background: #f8faf9;
    color: #818a85;
    font-size: 10.5px
}

.rs-edit-help {
    margin-bottom: 20px;
    border: 1px solid #dfe6e2;
    border-radius: 5px;
    background: #fff
}

.rs-edit-help summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 17px;
    cursor: pointer;
    list-style: none
}

.rs-edit-help summary::-webkit-details-marker {
    display: none
}

.rs-edit-help summary span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #343a37;
    font-size: 13px;
    font-weight: 700
}

.rs-edit-help summary svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #19a15f;
    stroke-width: 1.8
}

.rs-edit-help summary small {
    color: #838b87;
    font-size: 11.5px
}

.rs-help-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 0;
    border-top: 1px solid #e7ebe9
}

.rs-help-grid > div {
    padding: 15px 17px;
    border-right: 1px solid #e7ebe9;
    border-bottom: 1px solid #e7ebe9
}

.rs-help-grid > div:nth-child(2n) {
    border-right: 0
}

.rs-help-grid > div:nth-last-child(-n+2) {
    border-bottom: 0
}

.rs-help-grid strong {
    font-size: 12px
}

.rs-help-grid p {
    margin: 5px 0 0;
    color: #737c77;
    font-size: 11.5px;
    line-height: 1.55
}

.rs-edit-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px
}

.rs-edit-bottom-actions > div {
    display: flex;
    gap: 9px
}

.rs-edit-bottom-actions .rs-primary-button, .rs-edit-bottom-actions .rs-secondary-button {
    min-height: 40px
}

.rs-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 30px;
    background: rgba(17, 23, 20, .72);
    overflow: auto
}

.rs-preview-dialog {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
    overflow: hidden
}

.rs-preview-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    border-bottom: 1px solid #e4e8e6;
    background: #f8faf9
}

.rs-preview-toolbar button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #e9eeeb;
    font-size: 24px;
    line-height: 1;
    cursor: pointer
}

.rs-preview-scroll {
    padding: 36px 44px 50px
}

.rs-preview-scroll .article-title {
    margin-bottom: 14px
}

.rs-preview-scroll .article-lead {
    margin-bottom: 24px
}

.rs-editor-shell.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    background: #fff
}

.rs-editor-shell.is-fullscreen .rs-editor-toolbar {
    top: 0
}

.rs-editor-shell.is-fullscreen .rs-editor-content, .rs-editor-shell.is-fullscreen .rs-source-editor {
    flex: 1;
    overflow: auto;
    min-height: 0
}

.rs-editor-shell.is-fullscreen .rs-editor-status {
    flex: 0 0 auto
}

.page-rs-edit aside {
    padding-top: 0
}

.page-rs-edit .sidebar-box:first-child {
    margin-top: 0
}

@media (max-width: 991px) {
    .rs-editor-toolbar {
        top: 0;
        flex-wrap: wrap
    }

    .rs-toolbar-group:last-child {
        margin-left: 0
    }

    .rs-edit-layout aside {
        padding-top: 10px
    }

    .rs-edit-card-heading {
        flex-direction: column;
        gap: 5px
    }

    .rs-edit-card-heading p {
        text-align: left;
        max-width: none
    }

    .rs-editor-content {
        padding: 24px 24px 35px
    }

    .rs-toolbar-end {
        margin-left: auto !important
    }
}

@media (max-width: 767px) {
    .rs-article-edit-page {
        padding-top: 18px
    }

    .rs-edit-topbar {
        align-items: flex-start;
        flex-direction: column
    }

    .rs-edit-top-actions {
        width: 100%
    }

    .rs-edit-top-actions > * {
        flex: 1
    }

    .rs-edit-fields {
        grid-template-columns:1fr;
        padding: 16px
    }

    .rs-field-wide, .rs-field-half {
        grid-column: 1
    }

    .rs-editor-toolbar {
        padding: 6px;
        overflow-x: auto;
        flex-wrap: nowrap
    }

    .rs-toolbar-group {
        flex: 0 0 auto
    }

    .rs-toolbar-labelled span {
        display: none
    }

    .rs-editor-upload-note {
        align-items: flex-start
    }

    .rs-editor-upload-note strong {
        display: none
    }

    .rs-editor-content {
        min-height: 430px;
        padding: 20px 18px 30px;
        font-size: 15px
    }

    .rs-editor-status {
        flex-direction: column;
        gap: 2px
    }

    .rs-help-grid {
        grid-template-columns:1fr
    }

    .rs-help-grid > div, .rs-help-grid > div:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid #e7ebe9
    }

    .rs-help-grid > div:last-child {
        border-bottom: 0
    }

    .rs-edit-bottom-actions {
        align-items: stretch;
        flex-direction: column-reverse
    }

    .rs-edit-bottom-actions > div {
        display: grid;
        grid-template-columns:1fr 1.4fr
    }

    .rs-edit-bottom-actions > a {
        text-align: center
    }

    .rs-preview-backdrop {
        padding: 10px
    }

    .rs-preview-scroll {
        padding: 24px 18px 35px
    }
}

@media (max-width: 480px) {
    .rs-edit-top-actions {
        display: grid;
        grid-template-columns:1fr 1.35fr
    }

    .rs-toolbar-group select {
        min-width: 104px
    }

    .rs-edit-help summary small {
        display: none
    }

    .rs-preview-scroll .article-title {
        font-size: 27px
    }
}

/* v43: editor bez pravého sloupce a s obsahem výše */
.rs-edit-workspace {
    max-width: 1120px;
    margin: 0 auto
}

.rs-edit-main {
    width: 100%;
    min-width: 0
}

.rs-edit-topbar-compact {
    margin-bottom: 12px;
    padding: 9px 12px
}

.rs-edit-topbar-compact .rs-edit-state {
    gap: 8px
}

.rs-edit-topbar-compact .rs-article-meta {
    padding-right: 8px;
    border-right: 1px solid #dbe2de;
    color: #5f6964;
    font-size: 11.5px
}

.rs-edit-basics-compact {
    margin-bottom: 12px;
    box-shadow: none
}

.rs-edit-fields-compact {
    grid-template-columns:minmax(0, 2.25fr) minmax(210px, .75fr);
    gap: 12px 16px;
    padding: 14px 16px
}

.rs-edit-fields-compact .rs-field input, .rs-edit-fields-compact .rs-field select {
    height: 40px
}

.rs-field-title {
    grid-column: 1
}

.rs-field-category {
    grid-column: 2
}

.rs-field-perex-compact {
    grid-column: 1/-1
}

.rs-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.rs-field-label-row label {
    margin-bottom: 7px
}

.rs-field-label-row span {
    color: #858d89;
    font-size: 11.5px
}

.rs-editor-card-prominent {
    margin-bottom: 14px;
    border-color: #d9e1dd;
    box-shadow: 0 3px 14px rgba(28, 39, 33, .045)
}

.rs-editor-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 15px;
    border-bottom: 1px solid #dfe5e2;
    background: #fbfcfb
}

.rs-editor-titlebar h2 {
    margin: 0;
    color: #222;
    font: 600 17px/1.3 Roboto, sans-serif
}

.rs-editor-titlebar span {
    color: #78817c;
    font-size: 11.5px
}

.rs-editor-toolbar {
    top: 0
}

.rs-editor-content {
    width: 100%;
    max-width: 880px;
    min-height: 620px;
    margin: 0 auto;
    padding: 30px 38px 45px
}

.rs-source-editor {
    min-height: 620px
}

.rs-editor-status {
    align-items: center
}

.rs-editor-status #rs-upload-state {
    margin-left: auto;
    color: #198b55;
    font-weight: 600
}

.rs-editor-status #rs-upload-state:empty {
    display: none
}

.rs-edit-help {
    margin-top: 0
}

.page-rs-edit aside {
    display: none !important
}

@media (max-width: 991px) {
    .rs-edit-workspace {
        max-width: 100%
    }

    .rs-editor-content {
        max-width: none
    }

    .rs-edit-topbar-compact .rs-edit-state {
        align-items: flex-start
    }

    .rs-edit-topbar-compact .rs-article-meta {
        border-right: 0;
        padding-right: 0
    }
}

@media (max-width: 767px) {
    .rs-edit-fields-compact {
        grid-template-columns:1fr;
        padding: 13px
    }

    .rs-field-title, .rs-field-category, .rs-field-perex-compact {
        grid-column: 1
    }

    .rs-editor-titlebar {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px
    }

    .rs-editor-content {
        min-height: 500px;
        padding: 22px 18px 32px
    }

    .rs-source-editor {
        min-height: 500px
    }

    .rs-edit-topbar-compact .rs-edit-state {
        display: grid;
        grid-template-columns:auto 1fr
    }

    .rs-edit-topbar-compact #rs-save-state {
        grid-column: 1/-1
    }

    .rs-editor-status {
        align-items: flex-start
    }

    .rs-editor-status #rs-upload-state {
        margin-left: 0
    }
}

@media (max-width: 480px) {
    .rs-edit-topbar-compact .rs-edit-state {
        grid-template-columns:1fr
    }

    .rs-edit-topbar-compact .rs-edit-state > * {
        grid-column: 1
    }

    .rs-edit-topbar-compact .rs-edit-top-actions {
        display: grid;
        grid-template-columns:1fr 1.35fr
    }
}
.rs-tinymce-shell {
    min-height: 620px;
}

.rs-tinymce-shell > textarea {
    display: block;
    width: 100%;
    min-height: 620px;
    padding: 20px;
    border: 0;
    resize: vertical;
    font: 400 15px/1.7 Roboto, Arial, sans-serif;
}

.rs-tinymce-shell .tox-tinymce {
    min-height: 620px;
    border: 0;
    border-radius: 0;
}

body.rs-preview-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .rs-tinymce-shell,
    .rs-tinymce-shell > textarea,
    .rs-tinymce-shell .tox-tinymce {
        min-height: 500px;
    }
}
