.homecms-v2-page .homecms-features-editor {
    --features-green: #153f30;
    --features-gold: #c89534;
    --features-border: rgba(20, 63, 47, 0.13);
    --features-shadow: 0 18px 48px rgba(17, 53, 40, 0.09);

    width: 100%;
    min-width: 0;
}

.homecms-v2-page .homecms-features-editor *,
.homecms-v2-page .homecms-features-editor *::before,
.homecms-v2-page .homecms-features-editor *::after {
    box-sizing: border-box;
}

.homecms-v2-page .homecms-features-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 23px 25px;
    margin-bottom: 16px;
    background:
        radial-gradient(
            circle at 8% 20%,
            rgba(194, 151, 64, 0.16),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #e5f4eb 0%,
            #d2eadf 50%,
            #eef8f2 100%
        );
    border: 1px solid rgba(33, 101, 72, 0.18);
    border-radius: 22px;
    box-shadow: var(--features-shadow);
}

.homecms-v2-page .homecms-features-title,
.homecms-v2-page .homecms-features-head-actions {
    position: relative;
    z-index: 1;
}

.homecms-v2-page .homecms-features-title h1 {
    margin: 0;
    color: #143c2d;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 900;
}

.homecms-v2-page .homecms-features-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.homecms-v2-page .homecms-features-head-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 42px;
    padding: 8px 16px;
    color: var(--features-green);
    background: #fffaf0;
    border: 1px solid #e3cfa4;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.homecms-v2-page .homecms-features-visibility {
    display: grid;
    grid-template-columns: 18px max-content;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 94px;
    min-height: 42px;
    padding: 8px 13px;
    direction: ltr;
    color: #17623d;
    white-space: nowrap;
    background: #e8f7ef;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.homecms-v2-page .homecms-features-visibility input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #20764c;
}

.homecms-v2-page .homecms-features-visibility span {
    direction: rtl;
    line-height: 1;
}

.homecms-v2-page .homecms-features-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.7fr);
    gap: 16px;
    align-items: start;
}

.homecms-v2-page .homecms-features-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.homecms-v2-page .homecms-features-panel,
.homecms-v2-page .homecms-features-preview-card {
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--features-border);
    border-radius: 21px;
    box-shadow: var(--features-shadow);
}

.homecms-v2-page .homecms-features-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
}

.homecms-v2-page .homecms-features-panel-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-panel-head button {
    min-height: 38px;
    padding: 7px 13px;
    color: var(--features-green);
    background: #e9f3ee;
    border: 1px solid #cce0d5;
    border-radius: 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.homecms-v2-page .homecms-features-heading-fields {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 11px;
}

.homecms-v2-page .homecms-features-heading-fields label,
.homecms-v2-page .homecms-features-fields label {
    min-width: 0;
}

.homecms-v2-page .homecms-features-heading-fields span,
.homecms-v2-page .homecms-features-fields span {
    display: block;
    margin-bottom: 5px;
    color: #56655d;
    font-size: 10px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-heading-fields input,
.homecms-v2-page .homecms-features-fields input,
.homecms-v2-page .homecms-features-fields textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    color: #17271f;
    background: #fafbf9;
    border: 1px solid #d9dfdc;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    outline: none;
}

.homecms-v2-page .homecms-features-heading-fields input {
    min-height: 44px;
}

.homecms-v2-page .homecms-features-fields textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.8;
}

.homecms-v2-page .homecms-features-list {
    display: grid;
    gap: 11px;
}

.homecms-v2-page .homecms-features-row {
    display: grid;
    grid-template-columns:
        43px
        minmax(0, 1fr)
        auto;
    gap: 11px;
    align-items: center;
    padding: 13px;
    background: #fafaf8;
    border: 1px solid #e8e9e6;
    border-radius: 15px;
}

.homecms-v2-page .homecms-features-order {
    display: grid;
    gap: 5px;
    justify-items: center;
}

.homecms-v2-page .homecms-features-order strong {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #fff;
    background: var(--features-green);
    border-radius: 9px;
    font-size: 11px;
}

.homecms-v2-page .homecms-features-order button {
    width: 30px;
    height: 25px;
    color: var(--features-green);
    background: #fff;
    border: 1px solid #d8dedb;
    border-radius: 7px;
    font-weight: 900;
    cursor: pointer;
}

.homecms-v2-page .homecms-features-fields {
    display: grid;
    grid-template-columns: 0.75fr 1.4fr;
    gap: 9px;
    min-width: 0;
}

.homecms-v2-page .homecms-features-row-actions {
    display: grid;
    gap: 7px;
}

.homecms-v2-page .homecms-features-row-actions button {
    min-width: 60px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 9px;
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.homecms-v2-page .homecms-features-row-actions .copy {
    color: #175b3b;
    background: #eaf6ef;
    border: 1px solid #cbe5d6;
}

.homecms-v2-page .homecms-features-row-actions .delete {
    color: #b33b33;
    background: #fff1f1;
    border: 1px solid #f2cccc;
}

.homecms-v2-page .homecms-features-preview-column {
    position: sticky;
    top: 16px;
    min-width: 0;
}

.homecms-v2-page .homecms-features-preview-label {
    display: block;
    margin-bottom: 12px;
    color: var(--features-gold);
    font-size: 10px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-preview-heading {
    margin-bottom: 14px;
    text-align: center;
}

.homecms-v2-page .homecms-features-preview-heading > span {
    color: #b98228;
    font-size: 10px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-preview-heading h2 {
    margin: 5px 0 0;
    color: #153f30;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.45;
}

.homecms-v2-page .homecms-features-preview-grid {
    display: grid;
    gap: 8px;
}

.homecms-v2-page .homecms-features-preview-grid article {
    position: relative;
    padding: 13px 45px 13px 12px;
    background: #faf8f2;
    border: 1px solid #e7e0d1;
    border-radius: 12px;
}

.homecms-v2-page .homecms-features-preview-grid article > b {
    position: absolute;
    top: 12px;
    inset-inline-start: 11px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: #fff;
    background: #153f30;
    border-radius: 8px;
    font-size: 9px;
}

.homecms-v2-page .homecms-features-preview-grid strong {
    display: block;
    color: #173f31;
    font-size: 11px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-preview-grid p {
    margin: 3px 0 0;
    color: #68756e;
    font-size: 9px;
    line-height: 1.7;
}

.homecms-v2-page .homecms-features-preview-empty {
    padding: 25px;
    color: #7b857f;
    text-align: center;
    background: #f7f7f4;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

.homecms-v2-page .homecms-features-message {
    margin-top: 14px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
}

.homecms-v2-page .homecms-features-message[hidden] {
    display: none;
}

.homecms-v2-page .homecms-features-message.error {
    color: #a83030;
    background: #fff0f0;
    border: 1px solid #f3c7c7;
}

.homecms-v2-page .homecms-features-message.success {
    color: #17623d;
    background: #e9f8f0;
    border: 1px solid #c8ead8;
}

.homecms-v2-page .homecms-features-save-bar {
    position: sticky;
    z-index: 20;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--features-border);
    border-radius: 16px;
    box-shadow: 0 16px 45px rgba(15, 48, 36, 0.17);
    backdrop-filter: blur(12px);
}

.homecms-v2-page .homecms-features-save-bar > span {
    color: #78847e;
    font-size: 10px;
    font-weight: 800;
}

.homecms-v2-page .homecms-features-editor.is-dirty
.homecms-features-save-bar > span {
    color: #a36a20;
}

.homecms-v2-page .homecms-features-save-bar > div {
    display: flex;
    gap: 9px;
}

.homecms-v2-page .homecms-features-save-bar button {
    min-width: 105px;
    min-height: 41px;
    padding: 8px 16px;
    border-radius: 11px;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.homecms-v2-page .homecms-features-save-bar button.primary {
    color: #fff;
    background: var(--features-green);
    border: 1px solid var(--features-green);
}

.homecms-v2-page .homecms-features-save-bar button.secondary {
    color: #8a631c;
    background: #fff8e9;
    border: 1px solid #ead5a7;
}

@media (max-width: 1050px) {
    .homecms-v2-page .homecms-features-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .homecms-v2-page .homecms-features-preview-column {
        position: static;
    }
}

@media (max-width: 700px) {
    .homecms-v2-page .homecms-features-head {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        padding: 20px 18px;
    }

    .homecms-v2-page .homecms-features-title h1 {
        font-size: 25px;
    }

    .homecms-v2-page .homecms-features-head-actions {
        justify-content: space-between;
        width: 100%;
    }

    .homecms-v2-page .homecms-features-panel,
    .homecms-v2-page .homecms-features-preview-card {
        padding: 14px;
        border-radius: 17px;
    }

    .homecms-v2-page .homecms-features-heading-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .homecms-v2-page .homecms-features-row {
        grid-template-columns:
            34px
            minmax(0, 1fr);
        padding: 10px;
    }

    .homecms-v2-page .homecms-features-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .homecms-v2-page .homecms-features-row-actions {
        grid-column: 1 / -1;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .homecms-v2-page .homecms-features-save-bar {
        align-items: stretch;
        flex-direction: column;
        bottom: 5px;
    }

    .homecms-v2-page .homecms-features-save-bar > div {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .homecms-v2-page .homecms-features-save-bar button {
        min-width: 0;
        width: 100%;
    }
}
