.editor-detail-page .template-header-card {
    position: relative;
    min-height: 156px;
    padding: 10px 18px;
    border: 1px solid #dbe4f1;
    box-sizing: border-box;
}

.editor-detail-page .template-header-card::before {
    content: "";
    position: absolute;
    inset: 6px 12px;
    pointer-events: none;
    border: 1px solid #dbe4f1;
    border-radius: 12px;
}

.editor-page .template-header-card .header-content {
    grid-template-columns: minmax(360px, 1.25fr) minmax(360px, .92fr) minmax(330px, .78fr);
    align-items: stretch;
    gap: 18px;
    min-height: 132px;
}

.editor-page .template-header-card .template-summary,
.editor-page .template-header-card .header-title,
.editor-page .template-header-card .template-content-accent {
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
}

.editor-page .template-header-card .header-content > * {
    min-width: 0;
}

.editor-page .template-header-card .template-summary {
    align-items: stretch;
}

.editor-page .template-header-card .template-content-accent {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-left: 16px;
}

.editor-page .template-header-card .template-content-accent::before {
    content: none;
}

.editor-page .template-content-accent > .template-title-actions {
    margin-top: auto;
    padding-top: 5px;
    flex-wrap: wrap;
}

.editor-page .template-header-card #documentDescription {
    max-width: 760px;
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.editor-page .template-header-card #documentTitle {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.editor-page .template-header-card .header-template-file {
    min-height: 0;
}

.editor-page .template-header-card .template-file-block {
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.editor-page .template-header-card .template-file-details {
    flex: 1 1 auto;
    min-height: 80px;
    padding: 7px 14px;
}

.editor-page .template-header-card .template-file-copy {
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 3px;
}

.editor-page .template-download-status {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 18px;
    min-height: 18px;
    align-items: flex-end;
}

.editor-page .template-download-progress {
    width: 100%;
    height: 18px;
    visibility: hidden;
    opacity: 0;
}

.editor-page .template-download-progress.is-visible {
    visibility: visible;
    opacity: 1;
}

.editor-page .template-download-progress-copy {
    min-width: 0;
    margin-bottom: 2px;
    overflow: hidden;
    color: #405374;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-page .template-download-progress-track {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe4f8;
}

.editor-page .template-download-progress-track > span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #3157e5;
    transform: translateX(-140%);
    animation: document-output-progress-slide 1.25s ease-in-out infinite;
}

.editor-page .template-download-progress.is-determinate .template-download-progress-track > span {
    width: 0;
    transform: none;
    animation: none;
    transition: width .18s ease;
}

.editor-page .template-download-progress.is-complete .template-download-progress-copy {
    color: #16815d;
}

.editor-page .template-download-progress.is-complete .template-download-progress-track {
    background: #d5eee4;
}

.editor-page .template-download-progress.is-complete .template-download-progress-track > span {
    width: 100%;
    background: #20966f;
    transform: none;
    animation: none;
}

.editor-page .template-download-progress.is-error .template-download-progress-copy {
    color: #b33c47;
}

.editor-page .template-download-progress.is-error .template-download-progress-track {
    background: #f2d9dc;
}

.editor-page .template-download-progress.is-error .template-download-progress-track > span {
    width: 100%;
    background: #c84d59;
    transform: none;
    animation: none;
}

.editor-page .template-header-card .template-title-actions .template-field-sync-status {
    min-height: 30px;
    margin-left: 4px;
    padding: 4px 9px;
}

.editor-page .template-header-card .template-file-actions {
    width: 100%;
    min-height: 46px;
    justify-content: stretch;
    padding: 4px 6px;
    gap: 4px;
    border-top: 1px solid #dbe6f7;
    border-left: 0;
}

.editor-page .template-header-card .template-file-action {
    flex: 1 1 0;
    flex-direction: row;
    min-width: 0;
    min-height: 38px;
    padding: 4px 7px;
    gap: 6px;
    border: 1px solid #d2deef;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.editor-page .template-header-card .template-file-action:hover,
.editor-page .template-header-card .template-file-action:focus-visible {
    border-color: #aebfe0;
    background: #fff;
    box-shadow: 0 2px 7px rgba(36, 71, 132, .09), inset 0 1px 0 #fff;
}

.editor-page .template-header-card .template-file-action:focus-visible {
    outline: 2px solid rgba(49, 87, 229, .18);
    outline-offset: 1px;
}

.editor-page .header-document-create {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cfe0ff;
    border-radius: 13px;
    background: #f5f9ff;
}

.editor-page .header-document-create-copy {
    display: flex;
    flex: 1 1 auto;
    min-height: 80px;
    align-items: center;
    padding: 7px 14px;
    gap: 12px;
}

.editor-page .header-document-create-text {
    display: flex;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    gap: 3px;
}

.editor-page .header-document-create-text strong {
    color: #14223d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.editor-page .header-document-create-text > span {
    color: #7d899e;
    font-size: 13px;
    line-height: 1.35;
}

.editor-page .header-document-create-copy .document-output-status {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 18px;
    min-height: 18px;
    align-items: flex-end;
    padding: 0;
}

.editor-page .header-document-create-copy #documentOutputIdleLabel {
    display: none;
}

.editor-page .header-document-create-copy .document-output-progress {
    display: block;
    width: 100%;
    height: 18px;
    visibility: hidden;
    opacity: 0;
}

.editor-page .header-document-create-copy .document-output-progress.is-visible {
    visibility: visible;
    opacity: 1;
}

.editor-page .header-document-create-copy .document-output-progress-copy {
    margin-bottom: 2px;
    font-size: 9px;
}

.editor-page .header-document-create-copy .document-output-progress-track {
    height: 3px;
}

.editor-page .header-document-create-icon img {
    width: 27px;
    height: 27px;
}

.editor-page .header-document-create .header-output-actions.compact-output-actions {
    width: 100%;
    min-height: 46px;
    margin: 0;
    align-self: stretch;
    padding: 4px 6px;
    gap: 4px;
    border: 0;
    border-top: 1px solid #dbe6f7;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.editor-page .header-document-create .header-output-actions .compact-output-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 4px 7px;
    border-color: #d2deef;
    background: rgba(255, 255, 255, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.editor-page .header-document-create .header-output-actions .compact-output-action:hover,
.editor-page .header-document-create .header-output-actions .compact-output-action:focus-visible {
    border-color: #aebfe0;
    background: #fff;
    box-shadow: 0 2px 7px rgba(36, 71, 132, .09), inset 0 1px 0 #fff;
}

.editor-page .header-document-create .header-output-actions .compact-output-action:focus-visible {
    outline: 2px solid rgba(49, 87, 229, .18);
    outline-offset: 1px;
}

.editor-page .header-document-create .header-output-actions .primary-output-action {
    border-color: #b9cdf8;
    background: #fff;
    box-shadow: 0 2px 7px rgba(49, 87, 229, .08), inset 0 1px 0 #fff;
}

.editor-page .header-document-create .header-output-actions .compact-output-action img {
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 1px solid #dce7f8;
    border-radius: 9px;
    background: #fff;
    box-sizing: border-box;
}

@media (max-width: 1400px) {
    .editor-page .template-header-card .header-content {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
    }

    .editor-page .template-header-card .template-summary {
        grid-column: 1 / -1;
        min-height: 135px;
    }
}

@media (max-width: 850px) {
    .editor-detail-page .template-header-card {
        padding: 16px;
    }

    .editor-page .template-header-card .header-content {
        grid-template-columns: 1fr;
    }

    .editor-page .template-header-card .template-summary {
        grid-column: auto;
        min-height: 0;
    }

    .editor-page .template-header-card .template-content-accent > .template-title-actions {
        margin-top: 10px;
        padding-top: 0;
    }
}

@media (max-width: 520px) {
    .editor-page .template-header-card .template-title-actions .template-field-sync-status {
        margin-left: 0;
    }

    .editor-page .header-document-create .header-output-actions {
        flex-wrap: wrap;
    }

    .editor-page .header-document-create .header-output-actions .compact-output-action {
        flex-basis: calc(50% - 4px);
    }
}

.editor-page .template-file-action-danger:hover,
.editor-page .template-file-action-danger:focus-visible {
    border-color: #e7b9bf;
    color: #c9434d;
    background: #fff1f2;
}

.editor-page .template-file-action-danger:hover .template-file-action-icon,
.editor-page .template-file-action-danger:focus-visible .template-file-action-icon {
    border-color: #f1cdd1;
}

.editor-page .template-file-action-danger:hover .template-file-action-icon img,
.editor-page .template-file-action-danger:focus-visible .template-file-action-icon img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(54%) saturate(1966%) hue-rotate(326deg) brightness(92%) contrast(86%);
}

.editor-page .template-file-block.is-missing {
    border-color: #efc4c9;
    background: #fff6f7;
    box-shadow: 0 4px 14px rgba(185, 59, 70, .05);
}

.editor-page .template-file-block.is-missing #templateFileName {
    color: #b33c47;
}

.editor-page .template-file-block.is-missing .template-file-actions {
    border-left-color: #efd4d7;
}

.editor-page .template-file-block.is-missing #uploadBtn {
    color: #b33c47;
}

.editor-page .template-file-block.is-missing #uploadBtn:hover,
.editor-page .template-file-block.is-missing #uploadBtn:focus-visible {
    color: #a22f3a;
    background: #fdebed;
}

.editor-page .template-file-block.is-missing #uploadBtn .template-file-action-icon {
    border-color: #efcdd1;
}

.editor-page .template-file-block.is-missing #uploadBtn .template-file-action-icon img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(54%) saturate(1966%) hue-rotate(326deg) brightness(92%) contrast(86%);
}

.editor-page .template-settings-transfer {
    margin-left: 3px;
}

.editor-page .template-settings-transfer-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    gap: 6px;
    border: 1px solid #d7dfeb;
    border-radius: 8px;
    color: #526078;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.editor-page .template-settings-transfer-trigger::after {
    margin-left: 2px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-left-width: 4px;
}

.editor-page .template-settings-transfer-trigger:hover,
.editor-page .template-settings-transfer-trigger:focus,
.editor-page .template-settings-transfer-trigger[aria-expanded="true"] {
    border-color: #b8c9f4;
    color: #3157e5;
    background: #f7f9ff;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, .08);
    outline: 0;
}

.editor-page .template-settings-transfer-menu {
    min-width: 176px;
    margin-top: 5px !important;
    padding: 5px;
    border: 1px solid #dfe5ee;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(26, 43, 72, .14);
}

.editor-page .template-settings-transfer-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 10px;
    gap: 9px;
    border: 0;
    border-radius: 7px;
    color: #273650;
    font-size: 13px;
    font-weight: 600;
}

.editor-page .template-settings-transfer-menu .dropdown-item i {
    width: 17px;
    color: #3157e5;
    font-size: 15px;
    text-align: center;
}

.editor-page .template-settings-transfer-menu .dropdown-item:hover,
.editor-page .template-settings-transfer-menu .dropdown-item:focus {
    color: #244bc8;
    background: #f0f4ff;
}

.editor-page .settings-import-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #3157e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.editor-page .settings-import-file {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    gap: 11px;
    border: 1px solid #d9e4fd;
    border-radius: 10px;
    background: #f6f8fe;
}

.editor-page .settings-import-file > i {
    color: #3157e5;
    font-size: 24px;
}

.editor-page .settings-import-file div {
    min-width: 0;
}

.editor-page .settings-import-file span,
.editor-page .settings-import-file strong {
    display: block;
}

.editor-page .settings-import-file span {
    margin-bottom: 1px;
    color: #718099;
    font-size: 11px;
}

.editor-page .settings-import-file strong {
    overflow: hidden;
    color: #1c2b45;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-page .settings-import-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    overflow: hidden;
}

.editor-page .settings-import-summary > div {
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid #e1e6ee;
}

.editor-page .settings-import-summary > div:last-child {
    border-right: 0;
}

.editor-page .settings-import-summary dt {
    margin: 0 0 3px;
    color: #718099;
    font-size: 11px;
    font-weight: 600;
}

.editor-page .settings-import-summary dd {
    margin: 0;
    overflow: hidden;
    color: #1d2b45;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .editor-page .settings-import-summary {
        grid-template-columns: 1fr;
    }

    .editor-page .settings-import-summary > div {
        border-right: 0;
        border-bottom: 1px solid #e1e6ee;
    }

    .editor-page .settings-import-summary > div:last-child {
        border-bottom: 0;
    }
}

.editor-page .settings-import-name-field {
    margin-top: 14px;
}

.editor-page .settings-import-name-field label {
    display: block;
    margin-bottom: 6px;
    color: #34425b;
    font-size: 12px;
    font-weight: 700;
}

.editor-page .settings-import-name-field .form-control {
    min-height: 40px;
    font-size: 13px;
}

.editor-page .settings-import-name-field .form-control.settings-name-suggested {
    border-color: #8eabf5;
    background: #f7f9ff;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, .08);
}

.editor-page .settings-import-name-feedback {
    min-height: 17px;
    margin-top: 5px;
    color: #6f7d93;
    font-size: 11px;
    line-height: 1.4;
}

.editor-page .settings-import-name-feedback.is-error {
    color: #c33f49;
}

.editor-page .settings-import-name-feedback.is-suggestion {
    color: #3157e5;
}

.editor-page .settings-import-warning {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 9px;
    border: 1px solid #f0dfb4;
    border-radius: 9px;
    color: #75591f;
    background: #fffaf0;
    font-size: 12px;
    line-height: 1.45;
}

.editor-page .settings-import-warning i {
    flex: 0 0 auto;
    margin-top: 1px;
}

/* Рабочая область редактора. */
.editor-page .tabs {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(31, 52, 82, 0.06);
}

.editor-page .tabs > .tabs-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 0 14px;
}

.editor-page .editor-tag-limit-notice {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid #f0d89b;
    border-radius: 11px;
    color: #614b13;
    background: #fff9e9;
}

.editor-page .editor-tag-limit-notice[hidden] {
    display: none;
}

.editor-page .editor-tag-limit-notice__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #9a6b00;
    background: #ffedb9;
    font-size: 17px;
}

.editor-page .editor-tag-limit-notice__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.editor-page .editor-tag-limit-notice__copy strong {
    color: #4f3b0d;
    font-size: 14px;
    font-weight: 700;
}

.editor-page .editor-tag-limit-notice__copy span {
    color: #7b6630;
    font-size: 13px;
    line-height: 1.45;
}

.editor-page .editor-tag-limit-notice__action {
    min-height: 36px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d8b85b;
    border-radius: 9px;
    color: #755400;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.editor-page .editor-tag-limit-notice__action:hover {
    color: #5e4300;
    border-color: #bd9630;
    background: #fffdf7;
}

.editor-page .editor-tag-limit-notice__close {
    width: 32px;
    height: 32px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #846f3b;
    background: transparent;
}

.editor-page .editor-tag-limit-notice__close:hover {
    color: #4f3b0d;
    background: #f7e9bf;
}

.editor-page .tabs > .tabs-navigation > .nav-tabs {
    display: inline-flex;
    width: min(100%, 320px);
    margin: 0;
    padding: 4px;
    gap: 4px;
    list-style: none;
    border: 0;
    border-radius: 10px;
    background: #f1f4f9;
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-item {
    flex: 1 1 0;
    margin: 0;
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-link {
    width: 100%;
    min-height: 36px;
    padding: 7px 14px;
    border: 0;
    border-radius: 8px;
    color: #66738a;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-link:hover {
    color: #3157e5;
    background: rgba(255, 255, 255, 0.55);
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-link.active {
    color: #3157e5;
    background: #fff;
    box-shadow: 0 2px 7px rgba(35, 58, 97, 0.11);
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-link.active::after {
    display: none;
}

.editor-page .tabs > .tabs-navigation > .nav-tabs .nav-link i {
    margin-right: 6px;
    font-size: 14px;
}

.editor-page .compact-output-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    gap: 3px;
    border: 1px solid #c9d8fb;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7f9ff 0%, #f1f5ff 100%);
    box-shadow: 0 4px 14px rgba(49, 87, 229, .09), inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: opacity .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.editor-page .compact-output-actions.is-disabled {
    border-color: #e3e7ee;
    background: #f5f6f8;
    box-shadow: none;
}

.editor-page .compact-output-actions.is-bulk-disabled {
    opacity: .62;
    cursor: not-allowed;
}

.editor-page .compact-output-actions.is-disabled .compact-output-label {
    color: #7d8798;
}

.editor-page .compact-output-label {
    padding: 0 8px;
    color: #405374;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.editor-page .compact-output-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 36px;
    padding: 6px 12px;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #536078;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.editor-page .compact-output-action img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.editor-page .compact-output-action:hover {
    border-color: #d3dceb;
    color: #233b69;
    background: #fff;
}

.editor-page .compact-output-action:disabled,
.editor-page .compact-output-action:disabled:hover {
    border-color: transparent;
    color: #7d8798;
    background: transparent;
    box-shadow: none;
    cursor: not-allowed;
}

.editor-page .compact-output-action:disabled img {
    filter: grayscale(1);
    opacity: .65;
}

.editor-page .compact-output-action.primary-output-action {
    border-color: #c9d8ff;
    color: #3157e5;
    background: #fff;
    box-shadow: 0 2px 7px rgba(35, 58, 97, .08);
}

.editor-page .compact-output-action.primary-output-action:disabled {
    border-color: transparent;
    color: #7d8798;
    background: transparent;
    box-shadow: none;
}

.editor-page .header-template-file {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.editor-page .header-template-tools-row {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.editor-page .template-field-sync-status {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    gap: 5px;
    border: 1px solid #c8e5d8;
    border-radius: 7px;
    color: #187a59;
    background: #f1faf6;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.editor-page .template-field-sync-status:hover,
.editor-page .template-field-sync-status:focus-visible {
    border-color: #91cbb4;
    color: #126347;
    background: #e8f7f0;
    outline: none;
}

.editor-page .template-field-sync-status.has-warning {
    border-color: #efd69f;
    color: #8d620b;
    background: #fff9eb;
}

.editor-page .template-field-sync-status.has-errors {
    border-color: #efc5ca;
    color: #b13b47;
    background: #fff4f5;
}

.editor-page .template-field-sync-status.is-loading,
.editor-page .template-field-sync-status.has-error {
    border-color: #d8e0ed;
    color: #68768d;
    background: #f7f9fc;
}

.editor-page .template-field-sync-status[hidden] {
    display: none;
}

.template-field-sync-drawer {
    position: fixed;
    z-index: 1085;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    width: min(440px, calc(100vw - 28px));
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-left: 1px solid #dfe5ef;
    background: #fff;
    box-shadow: -18px 0 50px rgba(22, 38, 67, .16);
    transform: translateX(calc(100% + 24px));
    visibility: hidden;
    transition: transform .24s ease, visibility 0s linear .24s;
}

.template-field-sync-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .24s ease;
}

.template-field-sync-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 20px 16px;
    gap: 16px;
    border-bottom: 1px solid #e7ebf2;
}

.template-field-sync-drawer-header h5 {
    margin: 0;
    color: #102344;
    font-size: 20px;
    font-weight: 750;
}

.template-field-sync-subtitle {
    margin: 4px 0 0;
    color: #748097;
    font-size: 13px;
}

.template-field-sync-close {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #637087;
    background: transparent;
    font-size: 18px;
}

.template-field-sync-close:hover,
.template-field-sync-close:focus-visible {
    border-color: #d8e0ed;
    color: #1f3355;
    background: #f5f7fb;
    outline: none;
}

.template-field-sync-drawer-body {
    display: grid;
    align-content: start;
    overflow-y: auto;
    padding: 16px 18px 20px;
    gap: 12px;
    overscroll-behavior: contain;
}

.template-field-sync-summary {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 10px;
    border: 1px solid #c8e5d8;
    border-radius: 10px;
    color: #176f52;
    background: #f2faf6;
    font-size: 14px;
    font-weight: 700;
}

.template-field-sync-summary.has-warning {
    border-color: #efd8aa;
    color: #825c12;
    background: #fff9ed;
}

.template-field-sync-summary.has-error {
    border-color: #efc7cb;
    color: #a93b46;
    background: #fff4f5;
}

.template-field-sync-summary i {
    font-size: 20px;
}

.template-field-sync-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    gap: 10px;
    border: 1px solid #dce4f5;
    border-radius: 9px;
    color: #64728a;
    background: #f8faff;
    font-size: 11px;
}

.template-field-sync-toolbar[hidden] {
    display: none;
}

.template-field-sync-add-all {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid #cdd9f8;
    border-radius: 7px;
    color: #2855d8;
    background: #f6f8ff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.template-field-sync-add-all:hover,
.template-field-sync-add-all:focus-visible {
    border-color: #9eb5f5;
    background: #edf2ff;
    outline: none;
}

.template-field-sync-add-all:disabled {
    cursor: wait;
    opacity: .6;
}

.template-field-sync-section {
    padding: 13px 14px;
    border: 1px solid #eadde0;
    border-radius: 10px;
    background: #fffafb;
}

.template-field-sync-section.is-secondary {
    border-color: #e1e6ee;
    background: #fafbfd;
}

.template-field-sync-section.is-type-warning {
    border-color: #ead9b7;
    background: #fffbf2;
}

.template-field-sync-section h6 {
    display: flex;
    align-items: center;
    margin: 0;
    gap: 7px;
    color: #263650;
    font-size: 14px;
    font-weight: 750;
}

.template-field-sync-section h6 i {
    color: #c34a55;
}

.template-field-sync-section.is-secondary h6 i {
    color: #728099;
}

.template-field-sync-section.is-type-warning h6 i {
    color: #a97814;
}

.template-field-sync-section p {
    margin: 5px 0 10px 24px;
    color: #748097;
    font-size: 12px;
}

.template-field-sync-section ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 7px;
    list-style: none;
}

.template-field-sync-section li {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    padding: 6px 7px 6px 9px;
    gap: 8px;
    border: 1px solid #d7e1f6;
    border-radius: 7px;
    background: #f4f7ff;
}

.template-field-sync-name {
    overflow: hidden;
    min-width: 0;
    padding: 0;
    border: 0;
    color: #254fcf;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-field-sync-identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.template-field-sync-type-change {
    color: #7b6840;
    font-size: 10px;
    font-weight: 650;
}

.template-field-sync-name:hover,
.template-field-sync-name:focus-visible {
    color: #173cae;
    text-decoration: underline;
    outline: none;
}

.template-field-sync-item-actions {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.template-field-sync-item-action {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    gap: 4px;
    border: 1px solid #d3dcf0;
    border-radius: 6px;
    color: #40516e;
    background: #fff;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
}

.template-field-sync-item-action:hover,
.template-field-sync-item-action:focus-visible {
    border-color: #9db3ec;
    color: #2453d7;
    background: #f8faff;
    outline: none;
}

.template-field-sync-item-action.is-primary {
    border-color: #b8c9f7;
    color: #2453d7;
}

.template-field-sync-item-action:disabled {
    cursor: wait;
    opacity: .55;
}

.template-field-sync-drawer-footer {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    gap: 10px;
    border-top: 1px solid #e7ebf2;
    background: #fff;
}

.template-field-sync-indexed-at {
    margin-right: auto;
    color: #8994a7;
    font-size: 11px;
}

@media (max-width: 620px) {
    .template-field-sync-drawer {
        top: auto;
        width: 100%;
        max-height: min(88dvh, 760px);
        border-top: 1px solid #dfe5ef;
        border-left: 0;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -18px 50px rgba(22, 38, 67, .18);
        transform: translateY(calc(100% + 24px));
    }

    .template-field-sync-drawer.is-open {
        transform: translateY(0);
    }

    .template-field-sync-drawer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .template-field-sync-indexed-at {
        margin: 0 0 2px;
    }

    .template-field-sync-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

.editor-page .header-output-actions {
    margin-left: auto;
    align-self: flex-end;
    padding: 2px;
    border-radius: 9px;
}

.editor-page .header-output-actions .compact-output-label {
    padding: 0;
    font-size: 12px;
}

.editor-page .document-output-status {
    display: flex;
    width: 142px;
    min-width: 142px;
    min-height: 32px;
    align-items: center;
    padding: 0 7px;
}

.editor-page .document-output-progress {
    display: none;
    width: 100%;
    min-width: 0;
}

.editor-page .document-output-progress.is-visible {
    display: block;
}

.editor-page .document-output-progress-copy {
    min-width: 0;
    margin-bottom: 4px;
    color: #405374;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.editor-page #documentOutputProgressTitle {
    overflow: hidden;
    text-overflow: ellipsis;
}

.editor-page .document-output-progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe4f8;
}

.editor-page .document-output-progress-track > span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: #3157e5;
    transform: translateX(-140%);
    animation: document-output-progress-slide 1.25s ease-in-out infinite;
}

.editor-page .document-output-progress.is-complete .document-output-progress-copy {
    color: #16815d;
}

.editor-page .document-output-progress.is-complete .document-output-progress-track {
    background: #d5eee4;
}

.editor-page .document-output-progress.is-complete .document-output-progress-track > span {
    width: 100%;
    background: #20966f;
    transform: none;
    animation: none;
}

@keyframes document-output-progress-slide {
    0% {
        transform: translateX(-140%);
    }
    100% {
        transform: translateX(340%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .editor-page .document-output-progress-track > span,
    .editor-page .template-download-progress-track > span {
        transform: translateX(70%);
        animation: none;
    }
}

.editor-page .header-output-actions.is-processing {
    border-color: #b9cbf7;
    background: #f4f7ff;
}

.editor-page .header-output-actions .compact-output-action {
    min-width: 76px;
    min-height: 32px;
    padding: 5px 9px;
    gap: 6px;
    font-size: 12px;
}

.editor-page .header-output-actions .compact-output-action img {
    width: 16px;
    height: 16px;
}

.editor-page .tabs > .tab-content {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.editor-page .tabs .tab-pane {
    height: 100%;
}

.editor-page .bulk-generation-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px 8px 15px;
    gap: 8px;
    border: 1px solid #cad8fa;
    border-radius: 10px;
    color: #254fcf;
    background: #f7f9ff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.editor-page .bulk-generation-tab:hover {
    border-color: #9bb4f5;
    color: #1f48c9;
    background: #f0f4ff;
    box-shadow: 0 4px 14px rgba(49, 87, 229, .08);
}

.editor-page .bulk-generation-tab.active {
    border-color: #3157e5;
    color: #fff;
    background: #3157e5;
    box-shadow: 0 6px 16px rgba(49, 87, 229, .2);
}

.editor-page .bulk-generation-workspace {
    height: 100%;
    padding: 24px;
    overflow: auto;
    border: 1px solid #e1e7f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfcff 0%, #fff 100%);
}

.editor-page .bulk-generation-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.editor-page .bulk-generation-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #3157e5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.editor-page .bulk-generation-heading h2 {
    margin: 0 0 6px;
    color: #102344;
    font-size: 22px;
    font-weight: 750;
}

.editor-page .bulk-generation-heading p {
    margin: 0;
    color: #6f7c93;
    font-size: 14px;
}

.editor-page .bulk-generation-result-note {
    display: flex;
    align-items: center;
    max-width: 290px;
    padding: 10px 13px;
    gap: 9px;
    border-radius: 9px;
    color: #55647c;
    background: #f0f4fa;
    font-size: 12px;
    line-height: 1.4;
}

.editor-page .bulk-generation-result-note i {
    color: #3157e5;
    font-size: 19px;
}

.editor-page .bulk-generation-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.editor-page .bulk-step-card {
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #dfe6f0;
    border-radius: 12px;
    background: #fff;
}

.editor-page .bulk-step-number {
    display: grid;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: #3157e5;
    background: #edf2ff;
    font-size: 12px;
    font-weight: 800;
}

.editor-page .bulk-step-header {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 12px;
    gap: 11px;
}

.editor-page .bulk-step-header h3 {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.editor-page .bulk-step-icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    color: #3157e5;
    background: #edf2ff;
    font-size: 20px;
}

.editor-page .bulk-step-card h3,
.editor-page .bulk-generation-locked h3 {
    margin: 0;
    color: #172944;
    font-size: 16px;
    font-weight: 750;
}

.editor-page .bulk-generation-locked h3 {
    margin-bottom: 6px;
}

.editor-page .bulk-step-card p,
.editor-page .bulk-generation-locked p {
    margin: 0 0 16px;
    color: #718097;
    font-size: 13px;
    line-height: 1.5;
}

.editor-page .bulk-step-action,
.editor-page .bulk-upload-control,
.editor-page .bulk-generate-action,
.editor-page .bulk-generation-upgrade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: auto;
    padding: 9px 14px;
    gap: 7px;
    border: 1px solid #cbd7ed;
    border-radius: 9px;
    color: #294bad;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.editor-page .bulk-step-action:disabled,
.editor-page .bulk-generate-action:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.editor-page .bulk-template-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: auto;
    gap: 8px;
}

.editor-page .bulk-template-actions .bulk-step-action,
.editor-page .bulk-upload-control {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    cursor: pointer;
    border-color: #b7c6e7;
    background: linear-gradient(180deg, #fff 0%, #f5f7fd 100%);
    box-shadow: 0 2px 5px rgba(40, 72, 154, .12);
    transition: transform .12s ease, border-color .16s ease, background-color .16s ease, box-shadow .12s ease;
}

.editor-page .bulk-template-actions .bulk-step-action {
    margin-top: 0;
}

.editor-page .bulk-template-actions .bulk-step-action:hover:not(:disabled),
.editor-page .bulk-upload-control:hover {
    border-color: #7895ea;
    color: #2149c5;
    background: #f2f5ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 9px rgba(40, 72, 154, .15);
}

.editor-page .bulk-template-actions .bulk-step-action:active:not(:disabled),
.editor-page .bulk-upload-control:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(40, 72, 154, .1);
}

.editor-page .bulk-template-actions .bulk-step-action:focus-visible,
.editor-page .bulk-upload-control:focus-visible {
    outline: 3px solid rgba(49, 87, 229, .18);
    outline-offset: 2px;
}

.editor-page .bulk-template-actions .bulk-step-action:disabled {
    cursor: wait;
    transform: none;
    box-shadow: 0 1px 3px rgba(40, 72, 154, .08);
}

.editor-page .bulk-template-actions .bulk-step-action.is-loading i {
    animation: bulk-status-spin .8s linear infinite;
}

.editor-page .bulk-upload-control {
    margin-top: auto;
}

.editor-page .bulk-upload-control span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-page .bulk-format-switch {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin: auto 0 10px;
    padding: 3px;
    border-radius: 9px;
    background: #eef2f8;
}

.editor-page .bulk-format-switch label {
    margin: 0;
    cursor: pointer;
}

.editor-page .bulk-format-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.editor-page .bulk-format-switch span {
    display: block;
    padding: 7px;
    border-radius: 7px;
    color: #6a768a;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.editor-page .bulk-format-switch input:checked + span {
    color: #3157e5;
    background: #fff;
    box-shadow: 0 1px 5px rgba(26, 49, 86, .12);
}

.editor-page .bulk-generate-action {
    width: 100%;
    border-color: #3157e5;
    color: #fff;
    background: #3157e5;
}

.editor-page .bulk-filename-field {
    display: block;
    width: 100%;
    margin: 0 0 10px;
}

.editor-page .bulk-filename-field > span {
    display: block;
    margin-bottom: 5px;
    color: #52617a;
    font-size: 11px;
    font-weight: 700;
}

.editor-page .bulk-filename-field small {
    color: #8a96a8;
    font-weight: 500;
}

.editor-page .bulk-filename-field input {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #d4deed;
    border-radius: 8px;
    outline: none;
    color: #243653;
    background: #fff;
    font-size: 12px;
}

.editor-page .bulk-filename-field input:focus {
    border-color: #6686ed;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, .1);
}

.editor-page .bulk-generation-status {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding: 11px 14px;
    gap: 8px;
    border-radius: 9px;
    color: #65738a;
    background: #f2f5fa;
    font-size: 12px;
}

.editor-page .bulk-generation-status.is-ready {
    color: #206b55;
    background: #eaf7f2;
}

.editor-page .bulk-generation-status.is-error {
    color: #a13b3b;
    background: #fff0f0;
}

.editor-page .bulk-generation-status.is-working i {
    animation: bulk-status-spin .8s linear infinite;
}

@keyframes bulk-status-spin {
    to { transform: rotate(360deg); }
}

.editor-page .bulk-validation-panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #dfe6f0;
    border-radius: 11px;
    background: #fff;
}

.editor-page .bulk-validation-panel[hidden],
.editor-page .bulk-progress[hidden],
.editor-page .bulk-validation-errors[hidden],
.editor-page .bulk-download-result[hidden] {
    display: none !important;
}

.editor-page .bulk-validation-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.editor-page .bulk-validation-summary > div {
    display: flex;
    align-items: baseline;
    padding: 10px 12px;
    gap: 7px;
    border-radius: 8px;
    background: #f4f7fc;
}

.editor-page .bulk-validation-summary strong {
    color: #142a4d;
    font-size: 20px;
}

.editor-page .bulk-validation-summary span {
    color: #728097;
    font-size: 12px;
}

.editor-page .bulk-progress {
    margin-top: 14px;
}

.editor-page .bulk-progress-copy {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    color: #53627a;
    font-size: 12px;
}

.editor-page .bulk-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecf5;
}

.editor-page .bulk-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3157e5, #5a7df0);
    transition: width .25s ease;
}

.editor-page .bulk-validation-errors {
    max-height: 210px;
    margin-top: 14px;
    padding: 12px 14px;
    overflow: auto;
    border: 1px solid #f1caca;
    border-radius: 9px;
    color: #8f3737;
    background: #fff7f7;
}

.editor-page .bulk-validation-errors h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
}

.editor-page .bulk-validation-errors ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.55;
}

.editor-page .bulk-download-result {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 14px;
    padding: 9px 15px;
    gap: 8px;
    border-radius: 9px;
    color: #fff;
    background: #238261;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.editor-page .bulk-download-result:hover {
    color: #fff;
    background: #1c7053;
}

.editor-page .bulk-generation-locked {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 920px;
    margin: 42px auto;
    padding: 24px;
    gap: 18px;
    border: 1px solid #d8e2f8;
    border-radius: 13px;
    background: #f6f8ff;
}

.editor-page .bulk-generation-lock-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 12px;
    color: #3157e5;
    background: #e5ecff;
    font-size: 22px;
}

.editor-page .bulk-generation-locked p {
    margin-bottom: 0;
}

.editor-page .bulk-generation-upgrade {
    margin: 0;
    border-color: #3157e5;
    color: #fff;
    background: #3157e5;
    white-space: nowrap;
}

.editor-page .field-review-panel {
    position: relative;
    display: flex;
    min-width: 210px;
    max-width: 620px;
    flex: 1 1 420px;
    align-items: center;
    justify-content: center;
}

.editor-page .field-delete-notice-stack {
    position: absolute;
    z-index: 40;
    top: 50%;
    left: calc(50% + 105px);
    display: grid;
    width: min(220px, calc(100vw - 32px));
    gap: 7px;
    pointer-events: none;
    transform: translateY(-50%);
}

.editor-page .field-delete-notice {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 8px 9px 8px 12px;
    gap: 9px;
    border: 1px solid #cbd8f4;
    border-radius: 10px;
    color: #33445f;
    background: rgba(255, 255, 255, .98);
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 10px 28px rgba(25, 44, 76, .16);
    pointer-events: auto;
    animation: field-delete-notice-lifetime 8s linear forwards;
}

.editor-page .field-delete-notice.is-restored {
    border-color: #bfe5d5;
    color: #176f52;
    background: rgba(243, 251, 247, .98);
    animation: field-delete-notice-restored-lifetime 2.5s linear forwards;
}

@keyframes field-delete-notice-lifetime {
    0%, 50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes field-delete-notice-restored-lifetime {
    0%, 45% { opacity: 1; }
    100% { opacity: 0; }
}

.editor-page .field-delete-notice__message {
    min-width: 0;
    flex: 1 1 auto;
}

.editor-page .field-delete-notice__undo {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #b8c9f3;
    border-radius: 7px;
    color: #2852cf;
    background: #f7f9ff;
    font-size: 12px;
    font-weight: 700;
}

.editor-page .field-delete-notice__undo:hover {
    border-color: #8fa8eb;
    background: #eef3ff;
}

.editor-page .field-delete-notice__undo:disabled {
    opacity: .55;
    cursor: wait;
}

.editor-page .field-delete-notice__close {
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #7a879b;
    background: transparent;
}

.editor-page .field-delete-notice__close:hover {
    color: #33445f;
    background: #eff2f7;
}

.editor-page .field-review-inactive,
.editor-page .field-review-active {
    min-height: 44px;
}

.editor-page .field-review-inactive {
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-page .field-review-inactive[hidden],
.editor-page .field-review-active[hidden] {
    display: none !important;
}

.editor-page .field-review-progress-copy strong,
.editor-page .field-review-progress-copy span {
    display: block;
}

.editor-page .field-review-progress-copy strong {
    color: #243653;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.editor-page .field-review-progress-copy span {
    display: none;
}

.editor-page .field-review-start,
.editor-page .field-review-row-actions button {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #c7d4f3;
    border-radius: 7px;
    color: #3157e5;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.editor-page .field-review-start {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    gap: 7px;
    border-color: #c9d8fb;
    color: #3157e5;
    background: #f7f9ff;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(49, 87, 229, .08);
}

.editor-page .field-review-start:hover {
    border-color: #2749c8;
    color: #fff;
    background: #2749c8;
}

.editor-page .field-review-active {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(100px, 1fr);
    align-items: center;
    padding: 4px 5px 4px 11px;
    gap: 10px;
    border: 1px solid #d9e3f8;
    border-radius: 10px;
    background: #f7f9ff;
}

.editor-page .field-review-progress-track {
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #dfe6f5;
}

.editor-page .field-review-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #3157e5;
    transition: width .24s ease, background-color .24s ease;
}

.editor-page .field-review-panel.is-complete {
    color: #18825e;
}

.editor-page .field-review-panel.is-complete .field-review-active {
    border-color: #bfe5d5;
    background: #f3fbf7;
}

.editor-page .field-review-panel.is-complete .field-review-progress-track > span {
    background: #20966d;
}

.editor-page .field-review-start:disabled {
    border-color: #d9dfeb;
    color: #9aa5b7;
    background: #edf0f5;
    cursor: not-allowed;
}

.editor-page.field-review-mode-active .tabs .field-inputs {
    display: table-row;
    opacity: .48;
    filter: saturate(.55);
    transition: opacity .18s ease, filter .18s ease;
}

.editor-page .tabs .field-review-row-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.editor-page .tabs .field-review-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.editor-page .tabs .field-review-status.is-pending { color: #966b16; }
.editor-page .tabs .field-review-status.is-complete { color: #18825e; }
.editor-page .tabs .field-review-status.is-automatic { color: #536b9e; }

.editor-page .tabs .field-review-row-actions button {
    min-height: 29px;
    padding: 5px 7px;
}

.editor-page .tabs .field-review-keep-btn {
    border-color: #d8dfeb;
    color: #58677e;
}

.editor-page .tabs .field-review-editor .inline-field-name[readonly],
.editor-page .tabs .field-review-editor .inline-field-comment[readonly],
.editor-page .tabs .field-review-editor .inline-field-type:disabled {
    color: #7a8699;
    background: #f4f6f9;
    opacity: 1;
}

@media (max-width: 620px) {
    .editor-page .field-review-active {
        align-items: stretch;
        flex-direction: column;
    }

    .editor-page .field-review-active {
        display: flex;
        padding: 9px;
    }

    .editor-page .field-review-start {
        width: 100%;
    }
}

.editor-page .tabs .fields-table,
.editor-page .tabs .items-table {
    width: 100%;
    max-height: 100%;
    margin: 0;
    overflow: auto;
    border: 1px solid #e3e8f0;
    border-radius: 11px;
    background: #fff;
    scrollbar-color: #cbd5e4 transparent;
    scrollbar-width: thin;
}

.editor-page .tabs .fields-table::-webkit-scrollbar,
.editor-page .tabs .items-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.editor-page .tabs .fields-table::-webkit-scrollbar-thumb,
.editor-page .tabs .items-table::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    background: #cbd5e4;
    background-clip: padding-box;
}

.editor-page .tabs .table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #25324a;
}

.editor-page .tabs .fields-table .table {
    min-width: 920px;
    table-layout: fixed;
}

.editor-page .tabs .items-table .table {
    min-width: 900px;
}

.editor-page .tabs .fields-table thead,
.editor-page .tabs .items-table thead {
    position: sticky;
    top: 0;
    z-index: 4;
    padding: 0;
    background: #fff;
}

.editor-page .tabs .field-inputs,
.editor-page .tabs .table-inputs {
    background: #f7f9fc;
}

.editor-page .tabs .field-inputs td,
.editor-page .tabs .table-inputs td {
    padding: 18px 9px 11px;
    border-bottom: 1px solid #e3e8f0;
    background: #f7f9fc;
    vertical-align: middle;
}

.editor-page .tabs .field-inputs td:first-child,
.editor-page .tabs .table-inputs td:first-child {
    padding-left: 12px;
}

.editor-page .tabs .field-inputs td:last-child,
.editor-page .tabs .table-inputs td:last-child {
    padding-right: 12px;
}

.editor-page .tabs .form-control-bottom-border {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    color: #1f2d45;
    background: #fff;
    font-size: 14px;
    line-height: 1.35;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.editor-page .tabs .form-control-bottom-border:hover {
    border-color: #bdc8d9;
}

.editor-page .tabs .form-control-bottom-border:focus,
.editor-page .tabs .dropdown-custom.open .dropdown-custom-trigger {
    border-color: #6d8df2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, 0.11);
    outline: none;
}

.editor-page .tabs .form-control-bottom-border.is-required-missing,
.editor-page .tabs .form-control-bottom-border.is-required-missing:focus {
    border-color: #e25b63;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(226, 91, 99, .13);
}

.editor-page .tabs .form-control-bottom-border.is-required-missing + .floating-label {
    color: #c93f49;
}

.editor-page .tabs .floating-label {
    left: 8px;
    padding: 0 4px;
    border-radius: 4px;
    color: #718096;
    background: #f7f9fc;
    font-size: 12px;
    font-weight: 500;
}

.editor-page .tabs .form-control-bottom-border:focus + .floating-label,
.editor-page .tabs .dropdown-custom > .floating-label,
.editor-page .tabs input.form-control-bottom-border:not(:placeholder-shown) + .floating-label {
    opacity: 1;
    color: #3157e5;
    transform: translateY(-0.7rem) scale(0.86);
}

.editor-page .tabs .label-type-data {
    padding-top: 0;
    font-size: 12px !important;
}

.editor-page .tabs .dropdown-custom-trigger {
    padding-right: 30px;
}

.editor-page .tabs .field-type-choice-value {
    display: flex;
    min-width: 0;
    align-items: center;
}

.editor-page .tabs .dropdown-arrow {
    right: 11px !important;
    color: #738096;
    font-size: 13px;
}

.editor-page .tabs .dropdown-custom-options {
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 52, 82, 0.14);
}

.editor-page .tabs .dropdown-custom-option {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 7px 10px;
    color: #34425a;
    font-size: 14px;
    cursor: pointer;
}

.editor-page .tabs .dropdown-custom-option:hover,
.editor-page .tabs .dropdown-custom-option.selected {
    background: #f4f7fc;
}

.editor-page .tabs .dropdown-custom-option:focus-visible {
    background: #f4f7fc;
    outline: 2px solid #8ca5f4;
    outline-offset: -2px;
}

.editor-page .tabs .dropdown-custom-trigger .field-type-badge,
.editor-page .tabs .dropdown-custom-option .field-type-badge {
    justify-content: flex-start;
}

.editor-page .tabs .formula-highlighter {
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.editor-page .tabs .formula-input-wrapper {
    border-radius: 8px;
    background: #fff;
}

.editor-page .tabs .formula-input-wrapper #fieldValueInput {
    display: block;
    min-height: 40px;
    box-sizing: border-box;
}

.editor-page .tabs .formula-input-wrapper textarea#fieldValueInput {
    height: 40px;
    margin: 0;
    overflow: hidden;
    resize: none;
}

.editor-page .tabs #addFieldBtn,
.editor-page .tabs #addItemBtn {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #3157e5;
    border-radius: 8px;
    color: #fff;
    background: #3157e5;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.editor-page .tabs #addFieldBtn:hover,
.editor-page .tabs #addItemBtn:hover {
    border-color: #2849c7;
    background: #2849c7;
}

.editor-page .tabs #addFieldBtn:active,
.editor-page .tabs #addItemBtn:active {
    transform: translateY(1px);
}

.editor-page .tabs .table thead tr:last-child th {
    padding: 9px 12px;
    border: 0 !important;
    border-bottom: 1px solid #e3e8f0 !important;
    color: #66738a !important;
    background: #f3f6fa !important;
    font-size: 12px;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    line-height: 1.35;
    vertical-align: middle;
}

.editor-page .tabs .table tbody td {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf0f5;
    color: #26344c;
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
    transition: background-color 0.15s ease;
}

.editor-page .tabs .table tbody tr:last-child td {
    border-bottom: 0;
}

.editor-page .tabs .table tbody tr:hover td {
    background: #f9fbff;
}

.editor-page .tabs .table tbody tr.selected td,
.editor-page .tabs .table tbody tr.editing-row td {
    background: #eef4ff !important;
}

.editor-page .tabs .fields-loading-row td,
.editor-page .tabs .fields-loading-row:hover td,
.editor-page .tabs .fields-load-error-row td,
.editor-page .tabs .fields-load-error-row:hover td {
    padding: 0;
    background: #fff;
}

.editor-page .tabs .fields-loading-state,
.editor-page .tabs .fields-load-error-state {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 28px 24px;
    gap: 13px;
    color: #6f7c92;
}

.editor-page .tabs .fields-loading-state strong,
.editor-page .tabs .fields-load-error-state strong {
    display: block;
    margin-bottom: 3px;
    color: #253653;
    font-size: 14px;
    font-weight: 650;
}

.editor-page .tabs .fields-loading-state p,
.editor-page .tabs .fields-load-error-state p {
    margin: 0;
    font-size: 12px;
}

.editor-page .tabs .fields-loading-spinner {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 3px solid #dce6ff;
    border-top-color: #3157e5;
    border-radius: 50%;
    animation: fields-loading-spin .75s linear infinite;
}

.editor-page .tabs .fields-load-error-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 9px;
    color: #c24750;
    background: #fff1f2;
    font-size: 18px;
}

.editor-page .tabs .fields-load-error-state .btn {
    margin-left: 8px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease,
                box-shadow .15s ease, transform .15s ease;
}

/* Строка ошибки — это статус, а не интерактивная карточка. */
.editor-page .tabs .fields-load-error-row,
.editor-page .tabs .fields-load-error-row:hover,
.editor-page .tabs .fields-load-error-row td,
.editor-page .tabs .fields-load-error-row:hover td,
.editor-page .tabs .fields-load-error-state,
.editor-page .tabs .fields-load-error-state:hover {
    transform: none !important;
    box-shadow: none !important;
}

.editor-page .tabs .fields-load-error-state .btn:hover,
.editor-page .tabs .fields-load-error-state .btn:focus-visible {
    transform: translateY(-1px);
}

.editor-page .tabs .fields-load-error-state .btn:active {
    transform: translateY(0);
}

@keyframes fields-loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .editor-page .tabs .fields-loading-spinner {
        animation: none;
    }
}

.editor-page .tabs .fields-empty-row td,
.editor-page .tabs .fields-empty-row:hover td {
    padding: 0;
    background: #fff;
}

.editor-page .tabs .fields-empty-row,
.editor-page .tabs .fields-empty-row:hover,
.editor-page .tabs .fields-empty-row td,
.editor-page .tabs .fields-empty-row:hover td,
.editor-page .tabs .fields-empty-state,
.editor-page .tabs .fields-empty-state:hover,
.editor-page .tabs .fields-empty-state * {
    transform: none !important;
    transition: none !important;
}

.editor-page .tabs .fields-empty-row {
    pointer-events: none;
}

.editor-page .tabs .fields-empty-state {
    display: flex;
    min-height: clamp(220px, 34vh, 340px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    color: #6f7c92;
    text-align: center;
}

.editor-page .tabs .fields-empty-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    place-items: center;
    border: 1px solid #d8e3fb;
    border-radius: 12px;
    color: #3157e5;
    background: #f1f5ff;
    font-size: 21px;
}

.editor-page .tabs .fields-empty-state strong {
    margin-bottom: 6px;
    color: #253653;
    font-size: 16px;
    font-weight: 700;
}

.editor-page .tabs .fields-empty-state p {
    max-width: 420px;
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.editor-page .copy-notification {
    position: fixed;
    z-index: 11000;
    display: flex;
    max-width: min(460px, calc(100vw - 20px));
    align-items: center;
    padding: 8px 11px;
    gap: 7px;
    border: 1px solid #bdd2ff;
    border-radius: 8px;
    color: #1749bd;
    background: #eef4ff;
    box-shadow: 0 7px 20px rgba(31, 66, 137, .16);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity .16s ease, transform .16s ease;
}

.editor-page .copy-notification::after {
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid #bdd2ff;
    border-bottom: 1px solid #bdd2ff;
    background: #eef4ff;
    content: '';
    transform: translateX(-50%) rotate(45deg);
}

.editor-page .copy-notification.is-below::after {
    top: -6px;
    bottom: auto;
    border: 0;
    border-top: 1px solid #bdd2ff;
    border-left: 1px solid #bdd2ff;
}

.editor-page .copy-notification.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.editor-page .copy-notification.is-fallback {
    top: 16px;
    left: 50%;
}

.editor-page .copy-notification i {
    flex: 0 0 auto;
    color: #2f63e9;
}

@media (prefers-reduced-motion: reduce) {
    .editor-page .copy-notification {
        transition: none;
    }
}

.editor-page .tabs .field-name span,
.editor-page .tabs .field-name:not(:has(span)) {
    padding: 4px 7px;
    border: 1px solid #d9e5ff;
    border-radius: 6px;
    color: #3157e5 !important;
    background: #f1f5ff;
    font-weight: 600;
    box-shadow: none;
}

.editor-page .tabs .field-name span:hover,
.editor-page .tabs .field-name:not(:has(span)):hover {
    border-color: #c1d3ff;
    background: #e8efff;
    box-shadow: none;
    transform: none;
}

.editor-page .tabs .field-type-cell {
    white-space: nowrap;
}

.editor-page .tabs .field-type-badge {
    display: inline-flex;
    min-width: 76px;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.editor-page .tabs .field-type-badge__icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background-color: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.editor-page .tabs .field-type-badge--text .field-type-badge__icon {
    -webkit-mask-image: url('/static/img/shablon/align-center.svg');
    mask-image: url('/static/img/shablon/align-center.svg');
}

.editor-page .tabs .field-type-badge--date .field-type-badge__icon {
    -webkit-mask-image: url('/static/img/shablon/daily-calendar.svg');
    mask-image: url('/static/img/shablon/daily-calendar.svg');
}

.editor-page .tabs .field-type-badge--number .field-type-badge__icon {
    -webkit-mask-image: url('/static/img/shablon/square2.svg');
    mask-image: url('/static/img/shablon/square2.svg');
}

.editor-page .tabs .field-type-badge--unknown .field-type-badge__icon {
    display: none;
}

.editor-page .tabs .field-type-badge--text {
    border-color: #cbd9ff;
    color: #3157e5;
    background: #eef3ff;
}

.editor-page .tabs .field-type-badge--date {
    border-color: #ddd1fb;
    color: #7652d6;
    background: #f5f1ff;
}

.editor-page .tabs .field-type-badge--number {
    border-color: #c8e9dc;
    color: #187b5b;
    background: #edf8f3;
}

.editor-page .tabs .field-type-badge--unknown {
    border-color: #dce1e9;
    color: #68758a;
    background: #f5f7fa;
}

.editor-page .tabs .field-value-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-page .tabs .formula-auto-badge,
.editor-page .tabs .field-dynamic-date-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 7px;
    gap: 5px;
    border: 1px solid #cfdbfa;
    border-radius: 6px;
    color: #3157e5;
    background: #f1f5ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.editor-page .tabs .formula-auto-badge,
.editor-page .tabs .field-dynamic-date-badge {
    position: relative;
    cursor: help;
    outline: none;
}

.editor-page .tabs .formula-auto-badge:focus-visible,
.editor-page .tabs .field-dynamic-date-badge:focus-visible {
    box-shadow: 0 0 0 3px rgba(49, 87, 229, 0.2);
}

.editor-page .formula-auto-tooltip {
    position: fixed;
    z-index: 1080;
    display: flex;
    width: max-content;
    max-width: min(620px, 80vw);
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #dce3ef;
    border-radius: 10px;
    color: #35415a;
    background: #fff;
    box-shadow: 0 10px 28px rgba(35, 49, 79, 0.18);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 120ms ease, visibility 120ms ease;
}

.editor-page .formula-auto-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--formula-tooltip-arrow-left, 50%);
    width: 10px;
    height: 10px;
    border-right: 1px solid #dce3ef;
    border-bottom: 1px solid #dce3ef;
    background: #fff;
    transform: translate(-50%, -5px) rotate(45deg);
}

.editor-page .formula-auto-tooltip--below::after {
    top: auto;
    bottom: 100%;
    border: 0;
    border-top: 1px solid #dce3ef;
    border-left: 1px solid #dce3ef;
    transform: translate(-50%, 5px) rotate(45deg);
}

.editor-page .formula-auto-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.editor-page .formula-auto-tooltip__label {
    color: #59667d;
    white-space: nowrap;
}

.editor-page .formula-auto-tooltip__expression {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.editor-page .formula-auto-tooltip__field {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid #cbd9ff;
    border-radius: 6px;
    color: #3157e5;
    background: #eef3ff;
    font-weight: 750;
    white-space: nowrap;
}

.editor-page .formula-auto-tooltip__operator {
    min-width: 18px;
    color: #d34f3f;
    font-size: 19px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
}

.editor-page .formula-auto-tooltip__number,
.editor-page .formula-auto-tooltip__parenthesis {
    color: #27344c;
    font-weight: 750;
}

.editor-page .dynamic-date-tooltip__description {
    max-width: 560px;
    color: #4f5d73;
    line-height: 1.45;
}

.editor-page .dynamic-date-calendar-tooltip__description {
    max-width: 420px;
    color: #4f5d73;
    line-height: 1.45;
}

.editor-page .dynamic-date-calendar-tooltip {
    z-index: 100001;
}

.editor-page .tabs .drag-handle {
    color: #a6b0c1 !important;
    opacity: 0.55;
}

.editor-page .tabs tr:hover .drag-handle {
    color: #718096 !important;
    opacity: 1;
}

.editor-page .tabs .field-item td:last-child .d-flex,
.editor-page .tabs #itemsTableBody td:last-child .d-flex {
    align-items: center;
    gap: 4px !important;
}

.editor-page .tabs .field-item .btn-sm,
.editor-page .tabs #itemsTableBody .btn-sm {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 31px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.editor-page .tabs .field-item .btn-sm:hover,
.editor-page .tabs #itemsTableBody .btn-sm:hover {
    border-color: #d8e3fa;
    background: #eef4ff;
}

.editor-page .tabs .field-item .delete-field-btn:hover,
.editor-page .tabs #itemsTableBody .delete-item-btn:hover {
    border-color: #f2d1d5;
    background: #fff1f2;
}

.editor-page .tabs .field-item .btn-sm img,
.editor-page .tabs #itemsTableBody .btn-sm img {
    width: 17px !important;
    height: 17px !important;
    display: block;
    opacity: 0.82;
}

/* Редактирование метки непосредственно в строке */
.editor-page .tabs .table tbody tr.inline-field-edit-row td,
.editor-page .tabs .table tbody tr.inline-field-edit-row:hover td {
    position: relative;
    height: var(--inline-field-row-height);
    padding: 0;
    background: #eef4ff !important;
    border-bottom: 1px solid #c9d9ff;
    box-shadow: inset 0 1px 0 #c9d9ff;
}

.editor-page .tabs .table tbody tr.inline-field-edit-row td:first-child {
    box-shadow: inset 3px 0 0 #3157e5, inset 0 1px 0 #c9d9ff;
}

.editor-page .tabs .inline-field-cell-editor {
    position: absolute;
    inset: 0 12px;
    display: flex;
    min-width: 0;
    align-items: center;
}

.editor-page .tabs .inline-field-name-editor .drag-handle {
    flex: 0 0 auto;
    cursor: default !important;
}

.editor-page .tabs .inline-field-name-editor .inline-field-control {
    flex: 1 1 auto;
}

.editor-page .tabs .inline-field-control {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid #c7d5ef;
    border-radius: 7px;
    color: #1d2b45;
    background: #fff;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.35;
}

.editor-page .tabs .inline-field-control:focus {
    border-color: #3157e5;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, .12);
}

.editor-page .tabs .inline-field-control.is-invalid {
    border-color: #d94a56;
    box-shadow: 0 0 0 3px rgba(217, 74, 86, .1);
}

.editor-page .tabs .inline-field-type-dropdown {
    position: relative;
    width: 100%;
    min-width: 0;
}

.editor-page .tabs .inline-field-type-trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    padding: 6px 30px 6px 8px;
    border: 1px solid #c7d5ef;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
}

.editor-page .tabs .inline-field-type-trigger:focus {
    border-color: #3157e5;
    box-shadow: 0 0 0 3px rgba(49, 87, 229, .12);
}

.editor-page .tabs .inline-field-type-trigger[aria-disabled="true"] {
    color: #7a8699;
    background: #f4f6f9;
    cursor: default;
    opacity: .72;
}

.editor-page .tabs .inline-field-type-selected {
    display: flex;
    min-width: 0;
    align-items: center;
}

.editor-page .tabs .inline-field-type-dropdown .dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 10px !important;
    transform: translateY(-50%);
    pointer-events: none;
}

.editor-page .tabs .inline-field-type-dropdown.open .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.editor-page .tabs .inline-field-type-options {
    min-width: 138px;
    margin-top: 0;
}

.editor-page .tabs .inline-formula-input-wrapper {
    position: relative;
    width: 100%;
}

.editor-page .tabs .inline-formula-highlighter {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 7px;
    color: transparent;
    background: #fff;
    pointer-events: none;
    white-space: pre;
}

.editor-page .tabs .inline-formula-input-wrapper .inline-field-value {
    position: relative;
    z-index: 2;
    background-color: #fff;
}

.editor-page .tabs .inline-formula-input-wrapper .inline-field-value.inline-formula-transparent {
    color: transparent !important;
    background-color: transparent;
    caret-color: #3157e5;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.editor-page .tabs .inline-field-date-value {
    padding-right: 36px;
    background-color: #fff;
    background-image: url('/static/img/shablon/daily-calendar.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 17px 17px;
    cursor: pointer;
}

.editor-page .inline-formula-autocomplete {
    z-index: 12000;
    overflow: hidden auto;
    border-color: #cad6ea;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 52, 82, .18);
}

.editor-page .inline-formula-autocomplete .autocomplete-item {
    color: #2b3952;
    background: #fff;
    font-size: 13px;
}

.editor-page .inline-formula-autocomplete .autocomplete-item:hover,
.editor-page .inline-formula-autocomplete .autocomplete-item.selected {
    color: #244fcf;
    background: #eef4ff;
}

.editor-page .tabs .inline-field-action-cell {
    min-width: 0;
    overflow: visible;
}

.editor-page .tabs .inline-field-actions {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.editor-page .tabs .inline-field-actions .btn {
    min-height: 34px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.editor-page .tabs .inline-field-save-btn {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    border: 1px solid #3157e5;
    color: #fff;
    background: #3157e5;
    text-overflow: ellipsis;
}

.editor-page .tabs .inline-field-save-btn.is-saving {
    color: transparent !important;
}

.editor-page .tabs .inline-field-save-btn.is-saving::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    content: "";
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: inline-field-save-spin .7s linear infinite;
}

@keyframes inline-field-save-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.editor-page .tabs .inline-field-save-btn:hover,
.editor-page .tabs .inline-field-save-btn:focus-visible {
    border-color: #2448c7;
    color: #fff;
    background: #2448c7;
}

.editor-page .tabs .inline-field-cancel-btn {
    min-width: 0;
    flex: 0 1 auto;
    border: 1px solid #ccd5e4;
    color: #4e5e77;
    background: #fff;
}

.editor-page .tabs .inline-field-cancel-btn:hover,
.editor-page .tabs .inline-field-cancel-btn:focus-visible {
    border-color: #aebbd0;
    color: #26344c;
    background: #f7f9fc;
}

.editor-page .tabs .inline-field-error {
    position: absolute;
    z-index: 8;
    top: calc(50% + 22px);
    right: 12px;
    left: 12px;
    margin: 0;
    padding: 5px 7px;
    border: 1px solid #f1c5ca;
    border-radius: 6px;
    color: #c33b47;
    background: #fff5f6;
    box-shadow: 0 5px 14px rgba(104, 37, 45, .12);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.editor-page .tabs .inline-field-error:empty {
    display: none;
}

.editor-page .tabs .inline-field-saved-feedback {
    display: inline-flex;
    max-width: 100%;
    min-height: 31px;
    box-sizing: border-box;
    align-items: center;
    padding: 5px 8px;
    gap: 6px;
    border: 1px solid #bfe7d3;
    border-radius: 7px;
    color: #16744d;
    background: #e8f7f0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .28s ease;
}

.editor-page .tabs .field-review-row-actions .inline-field-saved-feedback {
    height: 29px;
    min-height: 29px;
    padding: 4px 7px;
    box-sizing: border-box;
}

.editor-page .tabs tr.inline-field-recently-saved .field-review-row-actions {
    flex-wrap: nowrap;
}

.editor-page .tabs .inline-field-saved-feedback.is-fading {
    opacity: 0;
}

.editor-page .field-review-completion-toast {
    position: fixed;
    z-index: 11000;
    top: 20px;
    left: 50%;
    display: inline-flex;
    max-width: calc(100vw - 32px);
    min-height: 46px;
    align-items: center;
    padding: 11px 16px;
    gap: 9px;
    border: 1px solid #b9e4d1;
    border-radius: 12px;
    color: #126f4a;
    background: #edfaf4;
    box-shadow: 0 16px 42px rgba(22, 116, 77, .2);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -10px);
    transition: opacity .2s ease, transform .2s ease;
}

.editor-page .field-review-completion-toast i {
    flex: 0 0 auto;
    font-size: 17px;
}

.editor-page .field-review-completion-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.editor-page .field-review-completion-toast.is-leaving {
    opacity: 0;
    transform: translate(-50%, -8px);
}

.editor-page #formatPanel.format-side-panel {
    --bs-offcanvas-width: min(760px, calc(100vw - 32px));
    width: var(--bs-offcanvas-width);
    border-left: 1px solid #d8e1ef;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(27, 48, 85, 0.16);
}

.editor-page .tabs .field-item.field-sync-highlight > td {
    background: #eef3ff;
    transition: background-color .25s ease;
}

.editor-page .tabs .field-item.field-sync-highlight > td:first-child {
    box-shadow: inset 3px 0 #315bea;
}

.editor-page #formatPanel .format-side-panel-header {
    align-items: flex-start;
    padding: 20px 22px 17px;
    border-bottom: 1px solid #e1e8f2;
    background: #ffffff;
}

.editor-page #formatPanel .format-side-panel-heading {
    min-width: 0;
}

.editor-page #formatPanel .format-side-panel-kicker {
    display: block;
    margin-bottom: 4px;
    color: #315be8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.editor-page #formatPanel .offcanvas-title {
    color: #0d2348;
    font-size: 20px;
    font-weight: 750;
}

.editor-page #formatPanel .format-side-panel-heading p {
    margin: 4px 0 0;
    color: #71809c;
    font-size: 13px;
}

.editor-page #formatPanel .format-side-panel-body {
    padding: 0 16px 16px;
    overflow: auto;
}

.editor-page #formatPanel .format-list {
    min-width: 0;
}

.editor-page #formatPanel .format-stack-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: #ffffff;
}

.editor-page #formatPanel .format-stack-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #d9e1ec;
    background: #f3f6fb !important;
    color: #263653;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
}

.editor-page #formatPanel .format-stack-table .format-stack-index {
    width: 44px;
    text-align: center;
}

.editor-page #formatPanel .format-stack-table tbody td {
    padding: 0;
    border: 0;
    border-bottom: 1px solid #dfe5ee;
    vertical-align: middle;
}

.editor-page #formatPanel .format-stack-table tbody td.format-stack-index {
    color: #697a96;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.editor-page #formatPanel .format-stack-content {
    min-width: 0;
    padding: 12px 15px 13px !important;
    border-left: 1px solid #dfe5ee !important;
}

.editor-page #formatPanel .format-id {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 9px;
    color: #2455c7;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.editor-page #formatPanel .format-stack-details {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr);
    align-items: start;
    gap: 22px;
}

.editor-page #formatPanel .format-stack-detail {
    min-width: 0;
}

.editor-page #formatPanel .format-stack-caption {
    display: block;
    margin-bottom: 3px;
    color: #8491a7;
    font-size: 12px;
    line-height: 1.3;
}

.editor-page #formatPanel .format-stack-table .format-value {
    max-width: none;
    overflow: visible;
    color: #182943;
    font-size: 14px;
    line-height: 1.4;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.editor-page #formatPanel .format-stack-table .format-description {
    max-width: none;
    color: #687790;
    font-size: 14px;
    line-height: 1.4;
}

.editor-page #formatPanel .number-precision-panel {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(170px, 220px) auto;
    align-items: center;
    padding: 14px 16px;
    margin: 16px 0 14px;
    gap: 10px 12px;
    border: 1px solid #dce5f1;
    border-radius: 11px;
    background: #f7f9fc;
}

.editor-page #formatPanel .number-precision-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.editor-page #formatPanel .number-precision-copy strong {
    color: #263653;
    font-size: 14px;
}

.editor-page #formatPanel .number-precision-copy span,
.editor-page #formatPanel .number-precision-help {
    color: #718096;
    font-size: 12px;
    line-height: 1.35;
}

.editor-page #formatPanel .number-precision-select,
.editor-page #formatPanel .number-precision-save {
    min-height: 40px;
    border-radius: 8px;
    font-size: 13px;
}

.editor-page #formatPanel .number-precision-help {
    grid-column: 1 / -1;
    margin: 0;
}

.editor-page #formatPanel .format-description span,
.editor-page #formatPanel .format-precision-note {
    display: block;
}

.editor-page #formatPanel .format-precision-note {
    margin-top: 3px;
    color: #5874ad;
    font-size: 11px;
    line-height: 1.3;
}

.editor-page #formatPanel .format-precision-note.is-fixed {
    color: #756044;
}

@media (max-width: 760px) {
    .editor-page #formatPanel.format-side-panel {
        --bs-offcanvas-width: 100vw;
    }

    .editor-page #formatPanel .format-side-panel-header {
        padding: 16px;
    }

    .editor-page #formatPanel .format-side-panel-body {
        padding: 0 12px 12px;
    }

    .editor-page #formatPanel .format-stack-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .editor-page #formatPanel .number-precision-panel {
        grid-template-columns: 1fr;
    }

    .editor-page #formatPanel .number-precision-help {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editor-page .field-review-completion-toast {
        transition: none;
    }
}

.editor-page .tabs .inline-field-actions-hidden {
    display: none !important;
}

.editor-page.inline-field-edit-active .main-content .template-header-card button:disabled,
.editor-page.inline-field-edit-active .main-content .field-inputs {
    opacity: .48;
}

.editor-page.inline-field-edit-active .main-content .template-header-card a,
.editor-page.inline-field-edit-active .main-content .tabs-navigation > *,
.editor-page.inline-field-edit-active .main-content #fieldsTableBody tr:not(.inline-field-edit-row) {
    pointer-events: none;
}

.editor-page .inline-field-page-locked {
    cursor: not-allowed !important;
}

@media (max-width: 1180px) {
    .editor-page .tabs .inline-field-actions {
        gap: 4px;
    }

    .editor-page .tabs .inline-field-actions .btn {
        padding-right: 6px;
        padding-left: 6px;
    }
}

.editor-page .tabs .table-instruction {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 12px;
    padding: 9px 12px;
    border: 1px solid #dce7fb;
    border-radius: 9px;
    color: #607089;
    background: #f5f8fe;
    font-size: 13px;
    font-style: normal;
}

.editor-page .tabs .table-instruction .tag-chip {
    margin-right: 6px;
    padding: 3px 7px;
    border: 1px solid #cbdcff;
    border-radius: 6px;
    color: #3157e5 !important;
    background: #eaf1ff;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
}

.editor-page .tabs .table-instruction .tag-chip:hover {
    border-color: #adc5fa;
    background: #dfe9ff;
}

.editor-page .tabs .items-table tfoot td {
    padding: 10px 12px;
    border: 0;
    border-top: 1px solid #dfe5ee;
    color: #1d2a42;
    background: #f7f9fc;
    font-size: 14px;
}

.editor-page .tabs .table-total-summary {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.editor-page .tabs .table-total-label,
.editor-page .tabs #totalAmount {
    color: #16233d;
    font-weight: 700;
    white-space: nowrap;
}

.editor-page .tabs #totalAmount {
    min-width: 112px;
    padding: 4px 7px;
    border: 1px solid #d9e5ff;
    border-radius: 6px;
    color: #3157e5;
    text-align: right;
    background: #eef3ff;
    cursor: copy;
    white-space: nowrap;
}

.editor-page .tabs #totalAmount:hover,
.editor-page .tabs #totalAmount:focus-visible {
    border-color: #c1d3ff;
    color: #3157e5;
    background: #e8efff;
    outline: none;
}

.editor-page .tabs .table-total-format-btn {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
}

.editor-page .tabs .table-total-format-btn:hover,
.editor-page .tabs .table-total-format-btn:focus-visible {
    border-color: #cbdcff;
    background: #eef4ff;
}

.editor-page .tabs .table-total-format-btn img {
    width: 17px;
    height: 17px;
}

.editor-page .tabs .system-field-row {
    background: #fbfdff;
}

.editor-page .tabs .system-field-row .field-name-token {
    cursor: copy;
}

.editor-page .tabs .system-field-row .btn:disabled {
    border-color: transparent;
    background: transparent;
    opacity: .34;
    cursor: not-allowed;
}

.editor-page .tabs .system-field-row .disabled-field-action {
    display: inline-flex;
    width: 31px;
    height: 31px;
}

@media (max-width: 900px) {
    .editor-page .tabs .table-total-summary {
        flex-wrap: wrap;
        gap: 8px;
    }
}

.editor-page .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(21, 38, 68, 0.2);
}

.editor-page .modal-header,
.editor-page .modal-footer {
    padding: 14px 18px;
    border-color: #e8ecf2;
}

.editor-page .modal-body {
    padding: 18px;
}

.editor-page .modal-title {
    color: #172640;
    font-weight: 700;
}

.editor-page .modal .form-control,
.editor-page .modal .form-select {
    border-color: #d8dfe9;
    border-radius: 8px;
}

.editor-page .modal .btn {
    border-radius: 8px;
}

/*
 * На рабочих экранах редактор занимает ровно высоту окна. Верхняя карточка,
 * навигация и форма добавления остаются на месте, а длинный список прокручивается
 * внутри таблицы. На компактных экранах сохраняем обычную прокрутку страницы.
 */
@media (min-width: 851px) and (min-height: 620px) {
    body.editor-page {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .editor-page.user-dashboard-page .app-container {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .editor-page.user-dashboard-page .main-content {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding-bottom: 18px;
        overflow: hidden;
    }

    .editor-page .template-header-card {
        flex: 0 0 auto;
    }

    .editor-page .tabs {
        flex: 1 1 auto;
        min-height: 0;
    }

    .editor-page .tabs > .tabs-navigation {
        flex: 0 0 auto;
    }

    .editor-page .tabs > .tab-content {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .editor-page .tabs #fieldsTab.active {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .editor-page .tabs #fieldsTab .fields-table {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .editor-page .tabs #tablesTab.active,
    .editor-page .tabs #bulkGenerationTab.active {
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
}

@media (max-width: 1100px) {
    .editor-page .editor-tag-limit-notice {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .editor-page .editor-tag-limit-notice__action {
        grid-column: 2;
        justify-self: start;
    }

    .editor-page .editor-tag-limit-notice__close {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .editor-page .tabs > .tabs-navigation {
        flex-wrap: wrap;
    }

    .editor-page .field-review-panel {
        order: 3;
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }

    .editor-page .field-delete-notice-stack {
        right: 0;
        left: auto;
    }

    .editor-page .compact-output-actions {
        order: 3;
        width: 100%;
    }

    .editor-page .compact-output-action {
        flex: 1 1 0;
    }
}

@media (max-width: 850px) {
    .editor-page .template-settings-transfer-trigger {
        padding-inline: 8px;
    }

    .editor-page .tabs {
        padding: 11px;
    }

    .editor-page .tabs > .tabs-navigation {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .editor-page .tabs > .tabs-navigation > .nav-tabs {
        width: 100%;
    }

    .editor-page .field-review-panel {
        order: 0;
        width: 100%;
        max-width: none;
    }

    .editor-page .field-delete-notice-stack {
        top: calc(100% + 7px);
        right: 0;
        transform: none;
    }

    .editor-page .bulk-generation-tab {
        width: 100%;
    }

    .editor-page .compact-output-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .editor-page .compact-output-label {
        width: 100%;
        padding: 5px 8px 3px;
        text-align: center;
    }

    .editor-page .compact-output-action {
        flex: 1 1 0;
        min-width: 0;
    }

    .editor-page .bulk-generation-heading {
        flex-direction: column;
    }

    .editor-page .bulk-generation-result-note {
        max-width: none;
    }

    .editor-page .bulk-generation-steps {
        grid-template-columns: 1fr;
    }

    .editor-page .bulk-generation-locked {
        grid-template-columns: auto 1fr;
        margin: 20px auto;
    }

    .editor-page .bulk-generation-upgrade {
        grid-column: 1 / -1;
        width: 100%;
    }

    .editor-page .tabs .table-instruction {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* Динамическая дата выбирается в подвале самого календаря. */
.flatpickr-calendar .dynamic-date-calendar-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 12px 12px;
    border-top: 1px solid #e4e9f2;
    background: #fff;
}

.flatpickr-calendar .dynamic-date-calendar-option {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #d7dfed;
    border-radius: 8px;
    background: #f7f9fc;
    color: #455773;
    font-size: 13px;
    font-weight: 650;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.flatpickr-calendar .dynamic-date-calendar-option:hover {
    border-color: #b9c9f8;
    background: #eef3ff;
    color: #2458e8;
}

.flatpickr-calendar .dynamic-date-calendar-option.active {
    border-color: #3159e8;
    background: #3159e8;
    color: #fff;
    box-shadow: 0 3px 9px rgba(49, 89, 232, 0.22);
}

.editor-page .field-dynamic-date-preview {
    color: inherit;
    font: inherit;
}
