.demo-editor-page {
    min-width: 1180px;
}

.demo-editor-page .demo-editor-bar {
    min-height: 62px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    color: #13284b;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #d7e1f1;
    box-shadow: 0 5px 20px rgba(22, 47, 91, 0.07);
}

.demo-editor-bar__inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
}

.demo-editor-bar__home {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.demo-editor-bar__home img {
    display: block;
    width: 142px;
    height: auto;
}

.demo-editor-bar__message {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

.demo-editor-bar__message strong {
    font-size: 15px;
}

.demo-editor-bar__message span {
    color: #6f82a7;
    font-size: 13px;
}

.demo-editor-bar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-editor-back,
.demo-editor-reset,
.demo-editor-register {
    min-height: 40px;
    padding: 8px 15px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.demo-editor-back,
.demo-editor-reset {
    color: #3159bd;
    background: #fff;
    border: 1px solid #c7d6f4;
}

.demo-editor-back:hover,
.demo-editor-reset:hover {
    color: #2147a8;
    background: #f5f8ff;
    border-color: #9db8ee;
}

.demo-editor-register {
    color: #fff;
    background: #3158e8;
    border: 1px solid #3158e8;
}

.demo-editor-register:hover {
    color: #fff;
    background: #2449cf;
    border-color: #2449cf;
}

.demo-editor-page .app-container {
    display: block !important;
    width: 100% !important;
    min-height: calc(100vh - 62px);
}

.demo-editor-page .main-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    align-items: center;
}

.demo-editor-page.demo-dashboard-page .demo-editor-bar {
    margin-left: var(--dashboard-sidebar-width);
}

.demo-editor-page.demo-dashboard-page .demo-editor-bar__inner {
    max-width: var(--content-max-width);
}

.demo-editor-page.demo-dashboard-page .sidebar {
    top: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
}

.demo-editor-page.demo-dashboard-page .main-content {
    width: calc(100% - var(--dashboard-sidebar-width)) !important;
    margin-left: var(--dashboard-sidebar-width) !important;
    align-items: stretch;
}

.demo-editor-page .global-dropzone {
    display: none !important;
}

.demo-editor-page [data-demo-fixed-file="true"] {
    cursor: not-allowed;
}

/*
 * В обычном редакторе app-container занимает всё окно. В демо над ним есть
 * собственная шапка, поэтому рабочей области отдаём только оставшуюся высоту.
 * Иначе нижняя часть таблицы уходит за viewport, а её scrollbar появляется
 * уже под границей экрана.
 */
@media (min-width: 851px) and (min-height: 620px) {
    body.demo-editor-page {
        display: flex;
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        flex-direction: column;
        overflow: hidden;
    }

    .demo-editor-page .demo-editor-bar {
        flex: 0 0 auto;
    }

    .demo-editor-page.user-dashboard-page .app-container {
        flex: 1 1 auto;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .demo-editor-page.user-dashboard-page .main-content {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .demo-editor-page .tabs #fieldsTab .fields-table {
        scrollbar-gutter: stable;
    }
}

.demo-editor-page .bulk-demo-gate {
    max-width: 1120px;
    margin: 24px auto 8px;
}

.demo-editor-page .bulk-demo-gate .bulk-generation-locked {
    max-width: none;
    margin: 0 0 16px;
    border-color: #cbd9f5;
    background: linear-gradient(135deg, #f7f9ff 0%, #eef3ff 100%);
}

.demo-editor-page .bulk-demo-pitch {
    padding: 28px;
    border: 1px solid #d8e2f4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(28, 55, 105, 0.07);
}

.demo-editor-page .bulk-demo-pitch__lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 36px;
    align-items: end;
}

.demo-editor-page .bulk-demo-pitch__eyebrow {
    grid-column: 1;
    margin-bottom: 5px;
    color: #3158e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.demo-editor-page .bulk-demo-pitch__lead h3 {
    grid-column: 1;
    margin: 0 0 8px;
    color: #122746;
    font-size: 24px;
    font-weight: 800;
}

.demo-editor-page .bulk-demo-pitch__lead > p {
    grid-column: 1;
    max-width: 760px;
    margin: 0;
    color: #667897;
    font-size: 14px;
    line-height: 1.6;
}

.demo-editor-page .bulk-demo-pitch__promise {
    grid-column: 1;
    display: flex;
    align-items: center;
    max-width: 760px;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #c5d5ff;
    border-radius: 11px;
    color: #2449bd;
    background: linear-gradient(135deg, #f4f7ff 0%, #edf3ff 100%);
}

.demo-editor-page .bulk-demo-pitch__promise > i {
    flex: 0 0 auto;
    font-size: 22px;
}

.demo-editor-page .bulk-demo-pitch__promise div {
    display: grid;
    gap: 2px;
}

.demo-editor-page .bulk-demo-pitch__promise strong {
    color: #173aab;
    font-size: 14px;
}

.demo-editor-page .bulk-demo-pitch__promise span {
    color: #5f7195;
    font-size: 12px;
    line-height: 1.45;
}

.demo-editor-page .bulk-demo-pitch__facts {
    grid-column: 2;
    grid-row: 1 / span 4;
    display: grid;
    min-width: 230px;
    gap: 8px;
}

.demo-editor-page .bulk-demo-pitch__facts span {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #62728f;
    background: #f4f7fd;
    font-size: 12px;
}

.demo-editor-page .bulk-demo-pitch__facts strong {
    color: #254bc5;
    font-size: 13px;
}

.demo-editor-page .bulk-demo-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    margin-top: 24px;
    gap: 12px;
}

.demo-editor-page .bulk-demo-flow__step {
    position: relative;
    min-height: 178px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid #dce5f4;
    border-radius: 13px;
    background: #f9fbff;
}

.demo-editor-page .bulk-demo-flow__step--result {
    border-color: #bedbcc;
    background: #f3fbf7;
}

.demo-editor-page .bulk-demo-flow__number {
    position: absolute;
    top: 14px;
    right: 16px;
    color: #d5def1;
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.demo-editor-page .bulk-demo-flow__icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 11px;
    color: #3158e8;
    background: #e9efff;
    font-size: 21px;
}

.demo-editor-page .bulk-demo-flow__step--result .bulk-demo-flow__icon {
    color: #17825e;
    background: #def4e9;
}

.demo-editor-page .bulk-demo-flow__step h4 {
    margin: 0 0 7px;
    color: #182c49;
    font-size: 15px;
    font-weight: 800;
}

.demo-editor-page .bulk-demo-flow__step p {
    margin: 0;
    color: #73819a;
    font-size: 13px;
    line-height: 1.5;
}

.demo-editor-page .bulk-demo-flow__arrow {
    display: grid;
    place-items: center;
    color: #9aabd0;
    font-size: 20px;
}

@media (max-width: 1280px) {
    .demo-editor-page .demo-editor-bar {
        padding-inline: 14px;
    }

    .demo-editor-bar__message span {
        display: none;
    }

    .demo-editor-page .bulk-demo-pitch__lead {
        grid-template-columns: 1fr;
    }

    .demo-editor-page .bulk-demo-pitch__facts {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: repeat(3, 1fr);
        margin-top: 18px;
    }
}
