.editor-v2-html,
.editor-v2-mode {
    width: 100%;
    min-width: 1120px;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #f6f7f9;
    color: #1f2328;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-mode .wrapper-holder,
.editor-v2-mode #wrapper,
.editor-v2-mode #editor {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
}

.editor-v2-mode #editorheader,
.editor-v2-mode #editorfooter,
.editor-v2-mode #workspace,
.editor-v2-mode #editor-debug {
    display: none !important;
}

.editor-v2-mode .editor-v2-app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: #f6f7f9;
}

.editor-v2-header {
    position: relative;
    z-index: 3100;
    display: flex;
    flex: 0 0 70px;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 0 24px;
    border-bottom: 1px solid #e2e5e9;
    background: #fff;
}

.editor-v2-brand-slot {
    display: flex;
    flex: 0 0 178px;
    align-items: center;
    height: 44px;
    padding-right: 20px;
    border-right: 1px solid #e2e5e9;
}

.editor-v2-brand.logo {
    width: 158px;
    height: 42px;
    margin: 0;
    border-radius: 0;
    background-color: transparent;
    background-position: left center;
    background-size: auto 34px;
}

.editor-v2-header-title {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.editor-v2-history-slot {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 40px;
    margin-left: 20px;
}

.editor-v2-document-meta {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 14px;
    min-width: 140px;
    color: #30343a;
    font-size: 14px;
    white-space: nowrap;
}

.editor-v2-meta-divider {
    width: 1px;
    height: 24px;
    background: #e2e5e9;
}

.editor-v2-design-number {
    display: inline-block;
    margin: 3px 0 0 -4px;
    padding: 2px 4px;
    border-radius: 5px;
    color: #737a83;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    cursor: copy;
    -webkit-user-select: text;
    user-select: text;
    transition: color .15s ease, background-color .15s ease;
}

.editor-v2-design-number:not(:empty):hover {
    color: #c90052;
    background: #fff0f6;
}

.editor-v2-design-number:focus-visible {
    outline: 2px solid rgba(201, 0, 82, .25);
    outline-offset: 1px;
}

.editor-v2-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.editor-v2-tablet-header-actions,
.editor-v2-mobile-new,
.editor-v2-mobile-download {
    display: none !important;
}

.editor-v2-header-actions [data-editor-v2-action],
.editor-v2-header-actions [data-editor-v2-action] * {
    cursor: pointer !important;
}

.editor-v2-help-trigger {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #f1c7d8;
    border-radius: 10px;
    outline: 0;
    background: #fff0f6;
    box-shadow: 0 2px 7px rgba(210, 11, 92, .08);
    color: #d20b5c;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-help-trigger > span {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

.editor-v2-help-trigger:hover,
.editor-v2-help-trigger:focus-visible {
    border-color: #e8aec6;
    background: #ffe4ef;
    box-shadow: 0 4px 10px rgba(210, 11, 92, .12);
}

.editor-v2-help-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .15), 0 4px 10px rgba(210, 11, 92, .12);
}

.editor-v2-help-trigger:active {
    transform: scale(.97);
}

.editor-v2-button,
.editor-v2-icon-button,
.editor-v2-classic-button,
.editor-v2-rail-button,
.editor-v2-panel-primary,
.editor-v2-custom-panel button {
    box-sizing: border-box;
    border: 0;
    outline: 0;
    font-family: inherit;
    cursor: pointer;
}

.editor-v2-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-button:active,
.editor-v2-classic-button:active,
.editor-v2-rail-button:active {
    transform: scale(.97);
}

.editor-v2-button-new {
    color: #424850;
}

.editor-v2-button-secondary {
    border: 1px solid #d7dbe0;
    background: #fff;
    color: #252a30;
}

.editor-v2-button-secondary:hover,
.editor-v2-button-secondary:focus {
    border-color: #9ea5ae;
    background: #f8f9fa;
}

.editor-v2-save-split {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.editor-v2-save-split .editor-v2-save-main {
    border-radius: 8px 0 0 8px;
}

.editor-v2-save-split .editor-v2-save-toggle {
    width: 34px;
    min-width: 34px;
    padding: 0;
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.editor-v2-save-split.is-open .editor-v2-save-main,
.editor-v2-save-split.is-open .editor-v2-save-toggle {
    border-color: #9ea5ae;
    background: #f8f9fa;
}

.editor-v2-save-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 1400;
    display: none;
    min-width: 214px;
    padding: 6px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 35, 40, .16);
}

.editor-v2-save-split.is-open .editor-v2-save-menu {
    display: block;
}

.editor-v2-save-menu-item {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #252a30;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.editor-v2-save-menu-item:hover,
.editor-v2-save-menu-item:focus {
    background: #f4f6f8;
    outline: 0;
}

.editor-v2-button-primary {
    border: 1px solid #d20b5c;
    background: #d20b5c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(210, 11, 92, .18);
}

.editor-v2-button-primary:hover,
.editor-v2-button-primary:focus {
    border-color: #b9084e;
    background: #b9084e;
}

.editor-v2-icon-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    color: #5d646d;
    font-size: 16px;
}

.editor-v2-icon-button:hover,
.editor-v2-icon-button:focus {
    background: #f0f2f4;
    color: #1f2328;
}

.editor-v2-classic-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
    color: #5d646d;
    font-size: 12px;
    white-space: nowrap;
}

.editor-v2-classic-button-icon {
    width: 40px;
    justify-content: center;
    padding: 0;
}

.editor-v2-classic-button:hover,
.editor-v2-classic-button:focus {
    border-color: #aeb4bc;
    background: #f5f6f8;
    color: #252a30;
}

.editor-v2-workarea {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.editor-v2-sidebar {
    display: flex;
    flex: 0 0 392px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    border-right: 1px solid #dfe3e7;
    background: #fff;
    box-shadow: none;
    transition: flex-basis .18s ease;
}

.editor-v2-sidebar.editor-v2-sidebar-wide {
    flex-basis: 600px;
}

.editor-v2-sidebar.editor-v2-sidebar-collapsed {
    flex-basis: 82px;
}

.editor-v2-sidebar-collapsed .editor-v2-library {
    display: none;
}

.editor-v2-rail {
    display: flex;
    flex: 0 0 82px;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 12px 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid #e6e8eb;
    background: #fff;
    scrollbar-color: #c7cdd4 transparent;
    scrollbar-width: thin;
}

.editor-v2-rail::-webkit-scrollbar {
    width: 4px;
}

.editor-v2-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c7cdd4;
}

.editor-v2-rail-button {
    position: relative;
    display: flex;
    min-height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 4px;
    background: #fff;
    color: #30363d;
    font-size: 12px;
    line-height: 1.2;
    transition: background-color .15s ease, color .15s ease;
}

.editor-v2-header-action-divider {
    width: 1px;
    height: 30px;
    flex: 0 0 1px;
    margin: 0 6px;
    background: #e2e5e9;
}

.editor-v2-rail-button,
.editor-v2-rail-button * {
    cursor: pointer;
}

.editor-v2-rail-icon {
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.editor-v2-rail-button:hover,
.editor-v2-rail-button:focus {
    background: #f7f8fa;
    color: #d20b5c;
}

.editor-v2-rail-button.is-active {
    background: #fff1f6;
    color: #d20b5c;
}

.editor-v2-rail-button.is-active:before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #d20b5c;
    content: '';
}

.editor-v2-library {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    background: #fff;
}

.editor-v2-library-header {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 18px;
    border-bottom: 1px solid #eceef0;
    font-size: 17px;
}

.editor-v2-library-tools {
    flex: 0 0 auto;
    padding: 14px 16px 10px;
}

.editor-v2-images-tools,
.editor-v2-qr-tools {
    padding: 16px 16px 8px;
}

#editor-v2-upload-slot {
    margin-top: 0;
    cursor: pointer !important;
}

#editor-v2-upload-slot #js-topToolbar-load {
    display: flex !important;
    flex-direction: row !important;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 14px;
    border: 1px solid #d20b5c;
    border-radius: 8px;
    background: #d20b5c;
    color: #fff;
    cursor: pointer !important;
    font: 600 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.editor-v2-mode #editor-v2-upload-slot,
body.editor-v2-mode #editor-v2-upload-slot *,
body.editor-v2-mode #editor-v2-upload-slot #js-topToolbar-load,
body.editor-v2-mode #editor-v2-upload-slot input[type="file"],
body.editor-v2-mode #editor-v2-upload-slot > *,
body.editor-v2-mode #editor-v2-upload-slot > * > * {
    cursor: pointer !important;
}

#editor-v2-upload-slot .moxie-shim,
#editor-v2-upload-slot .moxie-shim *,
#editor-v2-upload-slot .moxie-shim input[type="file"],
#editor-v2-upload-slot [id$="_html5_container"],
#editor-v2-upload-slot [id$="_html5_container"] * {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.editor-v2-mode .moxie-shim,
body.editor-v2-mode .moxie-shim *,
body.editor-v2-mode .moxie-shim input[type="file"] {
    cursor: pointer !important;
}

body.editor-v2-mode #user_images > .uploadifyQueueItem,
body.editor-v2-mode #user_images > .top-panels-item:not(.editor-v2-media-card) {
    display: none !important;
}

body.editor-v2-mode #user_image_scroller > .top-panels-pics {
    display: block;
    margin: 0 !important;
}

body.editor-v2-mode #filelist .editor-v2-upload-progress {
    position: fixed;
    z-index: 61000;
    top: 22px;
    left: 50%;
    display: flex;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    min-height: 54px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 11px 16px;
    border: 1px solid rgba(210, 11, 92, .14);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 24, 29, .18);
    color: #252a30;
    transform: translateX(-50%);
}

body.editor-v2-mode #filelist .editor-v2-upload-progress__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}

body.editor-v2-mode #filelist .editor-v2-upload-progress .top-panels-item__name,
body.editor-v2-mode #filelist .editor-v2-upload-progress .top-panels-item__percent {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #252a30;
    font-size: 13px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.editor-v2-mode #filelist .editor-v2-upload-progress .top-panels-item__name {
    font-weight: 700;
}

body.editor-v2-mode #filelist .editor-v2-upload-progress .top-panels-item__percent {
    color: #747b84;
    font-weight: 400;
}

#editor-v2-upload-slot #js-topToolbar-load img {
    display: none;
}

#editor-v2-upload-slot #js-topToolbar-load > i,
.editor-v2-create-qr > i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    line-height: 18px;
    text-align: center;
}

#editor-v2-upload-slot #js-topToolbar-load .toolbar-item-text,
.editor-v2-create-qr > span {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: inherit;
    font: inherit !important;
}

.editor-v2-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    padding: 8px 16px 16px;
}

.editor-v2-panel-body #top_panels {
    position: static !important;
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    background: #fff;
}

.editor-v2-panel-body #my_images_panel,
.editor-v2-panel-body #my_qrcodes_panel,
.editor-v2-panel-body #templates_panel,
.editor-v2-panel-body #layouts_panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
    overflow: visible !important;
}

.editor-v2-panel-body #user_image_scroller,
.editor-v2-panel-body #user_qrcodes_scroller {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
}

.editor-v2-panel-body #user_images,
.editor-v2-panel-body #user_qrcodes {
    position: static !important;
    display: grid;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    white-space: normal;
}

.editor-v2-panel-body #user_images > .editor-v2-media-card,
.editor-v2-panel-body #user_qrcodes > .editor-v2-media-card {
    position: relative !important;
    float: none !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    height: 126px !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-panel-body #user_images .editor-v2-media-card img,
.editor-v2-panel-body #user_qrcodes .editor-v2-media-card img {
    cursor: pointer !important;
}

/* Нативный file-input некоторых браузеров принудительно возвращает стрелку.
   Выбор файла открывает видимая v2-кнопка, а shim остаётся только транспортом. */
#editor-v2-upload-slot .moxie-shim {
    pointer-events: none !important;
}

.editor-v2-panel-body #user_images > .editor-v2-media-card.is-loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(210, 11, 92, .18);
    border-top-color: #d20b5c;
    border-radius: 50%;
    box-sizing: border-box;
    content: '';
    animation: editor-v2-spin .75s linear infinite;
}

.editor-v2-panel-body #user_images .editor-v2-media-card img,
.editor-v2-panel-body #user_qrcodes .editor-v2-media-card img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.editor-v2-panel-body #user_images .editor-v2-media-card.is-loading img {
    opacity: 0;
}

.editor-v2-panel-body #user_images .editor-v2-media-card img {
    transition: opacity .12s ease;
}

.editor-v2-panel-body #user_qrcodes .editor-v2-media-card img {
    height: 94px !important;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.editor-v2-panel-body #user_qrcodes > .editor-v2-media-card {
    flex-direction: column;
}

.editor-v2-panel-body #user_qrcodes .user-qrcode-thumb-caption {
    display: block;
    width: 100%;
    height: 31px;
    box-sizing: border-box;
    padding: 5px 8px 6px;
    overflow: hidden;
    border-top: 1px solid #eef0f2;
    color: #4e5660;
    font-size: 11px;
    line-height: 19px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-panel-body #user_images .editor-v2-media-card:hover,
.editor-v2-panel-body #user_qrcodes .editor-v2-media-card:hover {
    border-color: #d20b5c;
    box-shadow: 0 3px 10px rgba(31, 35, 40, .08);
}

.editor-v2-panel-body #user_images .editor-v2-image-delete {
    position: absolute !important;
    right: 6px !important;
    bottom: 6px !important;
    top: auto !important;
    left: auto !important;
    z-index: 3;
    display: inline-flex !important;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(210, 11, 92, .12);
    border-radius: 6px;
    background: #fff0f4 !important;
    color: #c30a54;
    font-size: 13px;
    line-height: 1;
    opacity: .92;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.editor-v2-panel-body #user_images .editor-v2-image-delete:hover,
.editor-v2-panel-body #user_images .editor-v2-image-delete:focus {
    background: #d20b5c !important;
    color: #fff;
    opacity: 1;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .18);
}

.editor-v2-panel-body #user_images .editor-v2-image-delete.is-deleting {
    color: transparent !important;
    pointer-events: none;
}

.editor-v2-panel-body #user_images .editor-v2-image-delete.is-deleting::after {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(210, 11, 92, .22);
    border-top-color: #d20b5c;
    border-radius: 50%;
    content: '';
    animation: editor-v2-spin .7s linear infinite;
}

.editor-v2-panel-body .nav-arrow {
    display: none !important;
}

.editor-v2-panel-body #left_panel {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0;
}

.editor-v2-panel-body #text_fields {
    display: block !important;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible;
}

.editor-v2-panel-body #text_fields:empty:after {
    display: block;
    padding: 18px;
    border: 1px dashed #d9dde2;
    border-radius: 8px;
    color: #7b828b;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
    content: 'В макете пока нет текстовых блоков';
}

.editor-v2-text-tools {
    margin-bottom: 14px;
}

.editor-v2-text-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 10px;
    padding: 4px;
    border-radius: 9px;
    background: #f0f2f4;
}

.editor-v2-text-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #545c66;
    font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.editor-v2-text-tabs button:hover,
.editor-v2-text-tabs button:focus-visible {
    color: #b9084e;
}

.editor-v2-text-tabs button.is-active {
    background: #fff;
    color: #d20b5c;
    box-shadow: 0 1px 4px rgba(36, 42, 49, .1);
}

.editor-v2-text-tab-panel[hidden] {
    display: none !important;
}

.editor-v2-text-tab-panel {
    display: grid;
    gap: 7px;
}

.editor-v2-text-preset {
    width: 100%;
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f7f8fa;
    color: #20242a;
    text-align: center;
    cursor: pointer;
}

.editor-v2-text-preset:hover,
.editor-v2-text-preset:focus {
    border-color: #d20b5c;
    background: #fff5f9;
}

.editor-v2-text-preset.is-heading {
    font-size: 22px;
    font-weight: 700;
}

.editor-v2-text-preset.is-subheading {
    font-size: 17px;
    font-weight: 600;
}

.editor-v2-text-preset.is-body {
    font-size: 13px;
}

.editor-v2-user-fonts {
    display: grid;
    gap: 7px;
}

.editor-v2-user-font-row {
    display: grid;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fff;
    grid-template-columns: minmax(0, 1fr) 40px;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.editor-v2-user-font-row:hover,
.editor-v2-user-font-row:focus-within {
    border-color: #d20b5c;
    background: #fff5f9;
}

.editor-v2-user-font {
    min-width: 0;
    min-height: 40px;
    padding: 7px 6px 7px 12px;
    overflow: hidden;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252a30;
    font-size: 17px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.editor-v2-user-font:hover,
.editor-v2-user-font:focus {
    background: transparent;
}

.editor-v2-user-font-delete {
    display: inline-flex;
    width: 38px;
    height: 40px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 7px;
    outline: 0;
    background: transparent;
    color: #7a8491;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 150ms ease, color 150ms ease, transform 120ms ease-out;
}

.editor-v2-user-font-delete:hover,
.editor-v2-user-font-delete:focus-visible {
    background: #ffe7f0;
    color: #c30a54;
}

.editor-v2-user-font-delete:active {
    transform: scale(.94);
}

.editor-v2-user-fonts p {
    margin: 4px 0 0;
    color: #717983;
    font-size: 12px;
    line-height: 1.45;
}

.editor-v2-user-fonts a {
    color: #c30a54;
    font-size: 12px;
}

.editor-v2-add-font {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 3px;
    padding: 0 13px;
    border: 1px solid #d20b5c;
    border-radius: 8px;
    background: #fff;
    color: #b9084e;
    font: 600 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 120ms ease-out;
}

.editor-v2-add-font:hover,
.editor-v2-add-font:focus {
    background: #fff2f7;
}

.editor-v2-add-font:active {
    transform: scale(.97);
}

.editor-v2-panel-body .textbox-n-friends {
    position: relative;
    width: 100% !important;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0 0 9px;
    padding: 0 104px 0 0;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.editor-v2-panel-body .textbox-n-friends:focus-within {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-panel-body .textbox-n-friends.is-editor-selected {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .12);
}

.editor-v2-panel-body #text_fields textarea {
    display: block;
    width: 100% !important;
    min-height: 40px !important;
    box-sizing: border-box;
    padding: 10px 12px !important;
    border: 0;
    outline: 0;
    background: transparent;
    color: #24292f;
    font: 14px/20px Arial, Helvetica, sans-serif;
    overflow-y: hidden;
    resize: none;
}

/* In v2 #text_fields lives inside the "Text" subpanel. */
body.editor-v2-mode #text_fields textarea {
    resize: none !important;
}

.editor-v2-size.has-tooltip {
    position: relative;
    cursor: help;
    outline: none;
}

.editor-v2-size.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 10030;
    top: calc(100% + 12px);
    left: 50%;
    width: max-content;
    max-width: 320px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #263746;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 8px 22px rgba(23, 35, 48, .2);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity .12s ease, transform .12s ease;
}

.editor-v2-size.has-tooltip::before {
    content: '';
    position: absolute;
    z-index: 10031;
    top: calc(100% + 6px);
    left: 50%;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #263746;
    border-left: 6px solid transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .12s ease;
}

.editor-v2-size.has-tooltip:hover::after,
.editor-v2-size.has-tooltip:focus::after,
.editor-v2-size.has-tooltip:hover::before,
.editor-v2-size.has-tooltip:focus::before {
    opacity: 1;
}

.editor-v2-size.has-tooltip:hover::after,
.editor-v2-size.has-tooltip:focus::after {
    transform: translate(-50%, 0);
}

.editor-v2-panel-intro {
    margin: 4px 0 14px;
    color: #69717b;
    font-size: 12px;
    line-height: 1.45;
}

.editor-v2-layers-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.editor-v2-layer-row {
    display: grid;
    min-height: 48px;
    grid-template-columns: 18px 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #2d333a;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.editor-v2-layer-row > :not(.editor-v2-layer-actions),
.editor-v2-layer-row > :not(.editor-v2-layer-actions) * {
    cursor: pointer;
}

.editor-v2-layer-row[data-editor-v2-layer-kind="image"],
.editor-v2-layer-row[data-editor-v2-layer-kind="image"] > :not(.editor-v2-layer-actions),
.editor-v2-layer-row[data-editor-v2-layer-kind="image"] > :not(.editor-v2-layer-actions) * {
    cursor: grab;
}

.editor-v2-layer-row[data-editor-v2-layer-kind="image"].is-dragging,
.editor-v2-layer-row[data-editor-v2-layer-kind="image"].is-dragging > :not(.editor-v2-layer-actions),
.editor-v2-layer-row[data-editor-v2-layer-kind="image"].is-dragging > :not(.editor-v2-layer-actions) * {
    cursor: grabbing;
}

.editor-v2-layer-row:hover {
    border-color: #c8ced6;
    box-shadow: 0 3px 10px rgba(35, 42, 50, .07);
}

.editor-v2-layer-row.is-selected {
    border-color: #d20b5c;
    background: #fff5f8;
    box-shadow: 0 0 0 2px rgba(210, 11, 92, .09);
}

.editor-v2-layer-row.is-new {
    border-color: #d20b5c;
    background: #fff1f6;
    box-shadow: inset 3px 0 0 #d20b5c;
}

.editor-v2-layer-row.is-dragging {
    opacity: .45;
}

.editor-v2-layer-row.is-drop-target {
    border-top: 3px solid #d20b5c;
}

.editor-v2-layer-handle {
    color: #8b939d;
    cursor: grab;
    text-align: center;
}

.editor-v2-layer-type {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f5f7;
    color: #4b535d;
}

.editor-v2-layer-name {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-layer-actions {
    display: flex;
    gap: 2px;
}

.editor-v2-layer-actions,
.editor-v2-layer-actions * {
    cursor: pointer;
}

.editor-v2-layer-actions button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b535d;
    cursor: pointer;
}

.editor-v2-layer-actions button:hover,
.editor-v2-layer-actions button:focus {
    background: #eceff2;
    color: #d20b5c;
}

.editor-v2-layers-empty {
    padding: 28px 14px;
    color: #747c86;
    text-align: center;
}

.editor-v2-background-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border-radius: 9px;
    background: #f0f2f4;
}

.editor-v2-background-tabs button {
    min-height: 38px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #545c66;
    cursor: pointer;
    font-size: 12px;
}

.editor-v2-background-tabs button.is-active {
    background: #fff;
    color: #d20b5c;
    box-shadow: 0 1px 4px rgba(36, 42, 49, .1);
    font-weight: 600;
}

.editor-v2-background-colors {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 20px;
    overflow: hidden;
}

.editor-v2-media-loading {
    grid-column: 1 / -1;
    display: flex;
    min-height: 128px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #69717b;
}

.editor-v2-media-loading-more {
    grid-column: 1 / -1;
    min-height: 52px;
    margin-top: 4px;
}

.editor-v2-retry-images {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #d20b5c;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.editor-v2-toast.editor-v2-toast-error {
    border-color: #f0b7cb;
    background: #fff5f8;
    color: #8f123f;
}

.editor-v2-toast.editor-v2-toast-error .editor-v2-toast-icon {
    background: #d20b5c;
}

.editor-v2-toast.editor-v2-toast-warning {
    max-width: min(520px, calc(100vw - 32px));
    border-color: rgba(210, 11, 92, .2);
    background: #fff;
    color: #4a2936;
}

.editor-v2-toast.editor-v2-toast-warning .editor-v2-toast-icon {
    background: #fff0f6;
    color: #c10952;
}

.editor-v2-toast-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.editor-v2-toast-copy strong {
    color: #2c3137;
    font-size: 14px;
}

.editor-v2-toast-copy > span {
    color: #68707a;
    font-size: 12px;
    font-weight: 400;
}

.editor-v2-background-colors button {
    width: 100%;
    max-width: 38px;
    height: auto;
    aspect-ratio: 1;
    box-sizing: border-box;
    border: 1px solid rgba(25, 30, 36, .14);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease;
}

.editor-v2-background-colors button:hover,
.editor-v2-background-colors button:focus {
    border-color: #d20b5c;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .14);
}

.editor-v2-background-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.editor-v2-background-card {
    position: relative;
    min-height: 132px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #f3f5f7;
    cursor: pointer;
}

.editor-v2-background-card img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
    transition: transform .18s ease;
}

.editor-v2-background-card:hover img,
.editor-v2-background-card:focus img {
    transform: scale(1.025);
}

.editor-v2-background-card:hover,
.editor-v2-background-card:focus {
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .2);
}

.editor-v2-background-loading {
    grid-column: 1 / -1;
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 10px;
    color: #69717b;
    text-align: center;
}

.editor-v2-create-qr {
    display: inline-flex;
    width: 100%;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: #d20b5c;
    color: #fff;
    cursor: pointer;
    font: 600 14px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-create-qr,
.editor-v2-create-qr * {
    cursor: pointer;
}

.editor-v2-create-qr:hover,
.editor-v2-create-qr:focus {
    background: #b9084e;
}

.editor-v2-mode #editor-qr-code-form-popup.editor-v2-dialog {
    width: calc(100vw - 32px) !important;
    max-width: 880px;
    height: calc(100vh - 32px) !important;
    max-height: 620px;
}

.editor-v2-mode #editor-qr-code-form-popup .simple-popup__frame {
    display: block;
    width: 100%;
    height: calc(100% - 66px);
    box-sizing: border-box;
    border: 0;
}

.editor-v2-mode #editor-qr-code-form-popup .simple-popup-close::before,
.editor-v2-mode #editor-qr-code-form-popup .simple-popup-close::after {
    position: absolute;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
}

.editor-v2-mode #editor-qr-code-form-popup .simple-popup-close::before {
    transform: rotate(45deg);
}

.editor-v2-mode #editor-qr-code-form-popup .simple-popup-close::after {
    transform: rotate(-45deg);
}

.editor-v2-mode #editor-qr-code-form-popup .simple-popup-close {
    position: absolute !important;
    top: 17px !important;
    right: 18px !important;
    z-index: 5;
    display: flex !important;
}

.editor-v2-clipart-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    border-radius: 9px;
    background: #f0f2f4;
}

.editor-v2-clipart-groups button {
    min-width: 0;
    min-height: 34px;
    padding: 0 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #545c66;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
    transition: background-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.editor-v2-clipart-groups button:hover,
.editor-v2-clipart-groups button:focus {
    background: rgba(255, 255, 255, .58);
    color: #b9084e;
}

.editor-v2-clipart-groups button.is-active {
    background: #fff;
    color: #d20b5c;
    box-shadow: 0 1px 4px rgba(36, 42, 49, .1);
    font-weight: 600;
}

.editor-v2-clipart-results #elementsbrowser {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: transparent !important;
}

.editor-v2-clipart-results #elementsresults {
    display: grid !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
    box-sizing: border-box;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.editor-v2-clipart-results .elements-searching {
    grid-column: 1 / -1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #69717b;
}

.editor-v2-clipart-results .elementsbrowser_menuitem,
.editor-v2-clipart-results .elementsbrowser_menuitem:hover {
    display: flex;
    width: auto;
    height: 132px;
    min-width: 0;
    flex-direction: column;
    float: none;
    box-sizing: border-box;
    margin: 0;
    padding: 8px;
    border: 1px solid #e3e7eb;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-clipart-results .elementsbrowser_menuitem:hover,
.editor-v2-clipart-results .elementsbrowser_menuitem:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 2px rgba(210, 11, 92, .12);
}

.editor-v2-clipart-results .elementsbrowser_menuitem_picture,
.editor-v2-clipart-results .elementsbrowser_menuitem_picture:hover {
    width: 100%;
    height: 92px;
    flex: 1 1 auto;
    margin: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.editor-v2-clipart-results .elementsbrowser_menuitem_title {
    width: 100%;
    margin: 5px 0 0;
    overflow: hidden;
    color: #515963;
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-context-toolbar #shape_tools {
    align-items: center;
    gap: 8px;
}

.editor-v2-context-toolbar.has-shape-selection #shape_tools {
    display: flex !important;
}

.editor-v2-context-toolbar #shape_tools > .drop-down {
    position: relative;
    float: none !important;
    min-width: 112px;
    margin: 0 !important;
}

.editor-v2-context-toolbar #shape_tools .drop-down-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 42px;
    padding: 6px 10px;
    box-sizing: border-box;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-context-toolbar #shape_tools .toolbar-item-text {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #354052;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.editor-v2-context-toolbar #shape_tools .selected-color {
    flex: 0 0 26px;
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border: 1px solid #d6dce3;
    border-radius: 6px;
    box-shadow: none !important;
}

.editor-v2-context-toolbar #shape_tools .drop-down-menu {
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 190px;
    max-height: 360px;
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 31, 45, .16);
}

.editor-v2-context-toolbar #shape_fill_color_control_menu,
.editor-v2-context-toolbar #shape_border_color_control_menu {
    display: none;
    grid-template-columns: repeat(11, 26px);
    gap: 5px;
    width: 360px !important;
}

.editor-v2-context-toolbar #shape_fill_color_control.open #shape_fill_color_control_menu,
.editor-v2-context-toolbar #shape_border_color_control.open #shape_border_color_control_menu {
    display: grid !important;
}

.editor-v2-context-toolbar #shape_fill_color_control_menu .color-pick,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-pick {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border: 1px solid rgba(40, 47, 56, .18);
    border-radius: 6px;
    box-sizing: border-box;
}

.editor-v2-context-toolbar #shape_border_sizes,
.editor-v2-context-toolbar #shape_border_stroke_control_menu {
    width: 220px !important;
}

.editor-v2-context-toolbar #shape_border_sizes .drop-down-item,
.editor-v2-context-toolbar #shape_border_stroke_control_menu .drop-down-item {
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    box-sizing: border-box;
    border-radius: 7px;
    background-color: transparent;
    cursor: pointer;
}

.editor-v2-context-toolbar #shape_border_sizes .drop-down-item:hover,
.editor-v2-context-toolbar #shape_border_stroke_control_menu .drop-down-item:hover {
    background-color: #fff0f6;
}

/* Figure tools: compact controls matching the text toolbar. */
.editor-v2-context-toolbar #shape_tools > .drop-down {
    min-width: 42px;
}

.editor-v2-context-toolbar #shape_fill_color_control,
.editor-v2-context-toolbar #shape_border_color_control {
    min-width: 54px;
}

.editor-v2-context-toolbar #shape_tools .drop-down-header {
    justify-content: center;
    min-width: 42px;
    width: auto;
    height: 42px;
    min-height: 42px;
    padding: 6px;
}

.editor-v2-context-toolbar #shape_fill_color_control_header,
.editor-v2-context-toolbar #shape_border_color_control_header {
    min-width: 54px;
    gap: 4px;
}

.editor-v2-context-toolbar #shape_fill_color_control .toolbar-item-text,
.editor-v2-context-toolbar #shape_border_color_control .toolbar-item-text,
.editor-v2-context-toolbar #shape_border_size_control #shape_border_text {
    display: none !important;
}

.editor-v2-context-toolbar #shape_tools .selected-color {
    flex-basis: 24px;
    width: 24px !important;
    height: 24px !important;
    border-radius: 5px;
}

.editor-v2-context-toolbar #shape_border_size_control {
    min-width: 68px;
}

.editor-v2-context-toolbar #shape_border_size_control_header {
    min-width: 68px;
    padding: 6px 10px;
}

.editor-v2-context-toolbar #selected_shape_border_width {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #26313e;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none !important;
}

.editor-v2-context-toolbar #shape_border_stroke_control {
    min-width: 112px !important;
}

.editor-v2-context-toolbar #shape_border_stroke_control_header {
    justify-content: center !important;
    min-width: 112px;
    padding: 6px 10px !important;
}

.editor-v2-context-toolbar #selected_shape_border_stroke {
    display: none;
}

.editor-v2-context-toolbar #shape_stroke_text {
    display: block !important;
    font-size: 13px !important;
    line-height: 20px !important;
}

.editor-v2-context-toolbar #shape_fill_color_control_menu,
.editor-v2-context-toolbar #shape_border_color_control_menu,
.editor-v2-context-toolbar #element_color1_control_menu,
.editor-v2-context-toolbar #element_color2_control_menu,
.editor-v2-context-toolbar #element_color3_control_menu {
    max-height: none !important;
    overflow: visible !important;
}

.editor-v2-context-toolbar #shape_border_sizes {
    width: 112px !important;
    max-height: 330px;
    overflow-y: auto;
}

.editor-v2-context-toolbar #shape_border_sizes .drop-down-item {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 20px;
}

.editor-v2-context-toolbar #shape_border_stroke_control_menu {
    display: none;
    width: 300px !important;
    max-height: none !important;
    padding: 8px !important;
    overflow: visible !important;
}

.editor-v2-context-toolbar #shape_border_stroke_control.open #shape_border_stroke_control_menu {
    display: grid !important;
    gap: 2px;
}

.editor-v2-context-toolbar #shape_border_stroke_control_menu .shape-border-stroke {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 36px;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 7px;
    background-color: transparent !important;
    background-image: none !important;
    box-sizing: border-box;
    color: #303946;
    font-size: 13px;
    line-height: 20px;
}

.editor-v2-context-toolbar #shape_border_stroke_control_menu .shape-border-stroke::before {
    content: "";
    display: block;
    width: 82px;
    height: 4px;
    background-repeat: repeat-x;
    background-position: center;
    box-sizing: border-box;
}

.editor-v2-context-toolbar #border_stroke_solid::before {
    height: 2px;
    background: #48515b;
}

.editor-v2-context-toolbar #border_stroke_round_dot::before {
    background-image: radial-gradient(circle, #48515b 0 2px, transparent 2.2px);
    background-size: 8px 4px;
}

.editor-v2-context-toolbar #border_stroke_square_dot::before {
    background-image: linear-gradient(90deg, #48515b 0 4px, transparent 4px 8px);
    background-size: 8px 3px;
}

.editor-v2-context-toolbar #border_stroke_dash::before {
    background-image: linear-gradient(90deg, #48515b 0 12px, transparent 12px 18px);
    background-size: 18px 3px;
}

.editor-v2-context-toolbar #border_stroke_dash_dot::before {
    background-image: linear-gradient(90deg, #48515b 0 12px, transparent 12px 17px, #48515b 17px 20px, transparent 20px 26px);
    background-size: 26px 3px;
}

.editor-v2-context-toolbar #border_stroke_long_dash::before {
    background-image: linear-gradient(90deg, #48515b 0 22px, transparent 22px 30px);
    background-size: 30px 3px;
}

.editor-v2-context-toolbar #border_stroke_long_dash_dot::before {
    background-image: linear-gradient(90deg, #48515b 0 22px, transparent 22px 28px, #48515b 28px 31px, transparent 31px 38px);
    background-size: 38px 3px;
}

.editor-v2-context-toolbar #shape_border_stroke_control_menu .shape-border-stroke::after {
    content: attr(data-label);
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-context-toolbar #shape_border_stroke_control_menu .shape-border-stroke:hover,
.editor-v2-context-toolbar #shape_border_stroke_control_menu .shape-border-stroke.on {
    background-color: #fff0f6 !important;
}

/* Clipart uses its own tools only: one crop, one rotation and three compact palettes. */
.editor-v2-context-toolbar #elements_tools {
    align-items: center;
    gap: 8px;
}

.editor-v2-context-toolbar.has-element-selection #elements_tools {
    display: flex !important;
}

.editor-v2-context-toolbar.has-element-selection #image_tools,
.editor-v2-context-toolbar.has-element-selection #make_bg_button {
    display: none !important;
}

/* QR codes stay editable images, but cropping or turning them into a page
   background would make the encoded data unreliable or unreadable. */
.editor-v2-context-toolbar.has-qr-image-selection #editor-v2-crop-image,
.editor-v2-context-toolbar.has-qr-image-selection #make_bg_button,
.editor-v2-context-toolbar.has-qr-image-selection #image_tools > .toolbar-divider,
.editor-v2-context-toolbar.has-qr-image-selection #copy_tools > .toolbar-divider {
    display: none !important;
}

.editor-v2-context-toolbar #elements_tools > .toolbar-item-box,
.editor-v2-context-toolbar #elements_tools > .drop-down {
    float: none !important;
    margin: 0 !important;
}

.editor-v2-context-toolbar #elements_tools > .toolbar-item-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 82px;
    height: 42px;
    padding: 6px 10px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

/* Crop and rotate are lightweight clipart actions, not framed property fields. */
.editor-v2-context-toolbar #element_crop_control,
.editor-v2-context-toolbar #element_rotate_control {
    min-width: 72px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.editor-v2-context-toolbar #element_crop_control:hover,
.editor-v2-context-toolbar #element_rotate_control:hover {
    background: #f3f5f7 !important;
}

.editor-v2-context-toolbar #elements_tools > .toolbar-item-box .toolbar-item-icon {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    background-image: none !important;
    color: #26313e;
    font-size: 16px;
    line-height: 18px;
}

.editor-v2-context-toolbar #elements_tools > .toolbar-item-box .toolbar-item-text {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: #26313e;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-context-toolbar #elements_tools > .drop-down {
    position: relative;
    min-width: 54px;
}

.editor-v2-context-toolbar #elements_tools > .drop-down > .drop-down-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 42px;
    min-height: 42px;
    padding: 6px;
    gap: 4px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.editor-v2-context-toolbar #elements_tools .selected-color {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    border: 1px solid #d6dce3;
    border-radius: 5px;
    box-sizing: border-box;
}

.editor-v2-context-toolbar #elements_tools > .drop-down > .drop-down-header .toolbar-item-text {
    display: none !important;
}

.editor-v2-context-toolbar #element_color1_control_menu,
.editor-v2-context-toolbar #element_color2_control_menu,
.editor-v2-context-toolbar #element_color3_control_menu {
    top: calc(100% + 6px) !important;
    left: 0 !important;
    display: none;
    grid-template-columns: repeat(11, 26px);
    gap: 5px;
    width: 360px !important;
    padding: 10px;
    border: 1px solid #e1e5ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(23, 31, 45, .16);
    box-sizing: border-box;
}

.editor-v2-context-toolbar #element_color1_control.open #element_color1_control_menu,
.editor-v2-context-toolbar #element_color2_control.open #element_color2_control_menu,
.editor-v2-context-toolbar #element_color3_control.open #element_color3_control_menu {
    display: grid !important;
}

.editor-v2-context-toolbar #element_color1_control_menu .color-pick,
.editor-v2-context-toolbar #element_color2_control_menu .color-pick,
.editor-v2-context-toolbar #element_color3_control_menu .color-pick {
    width: 26px !important;
    height: 26px !important;
    margin: 0 !important;
    border: 1px solid rgba(40, 47, 56, .18);
    border-radius: 6px;
    box-sizing: border-box;
}

.editor-v2-background-crop-dialog.simple-popup {
    width: min(520px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    overflow: auto;
}

body.editor-v2-mode #outline_layers .loading,
body.editor-v2-mode #image_layers .loading {
    /* Legacy .loading dims the whole object and paints ajax-loader-s.gif.
       Keep the object's fixed box untouched and replace only its visual state. */
    background: transparent !important;
    filter: none !important;
    opacity: 1 !important;
}

body.editor-v2-mode #outline_layers .loading::after,
body.editor-v2-mode #image_layers .loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 12;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(210, 11, 92, .2);
    border-top-color: #d20b5c;
    border-radius: 50%;
    box-sizing: border-box;
    content: '';
    pointer-events: none;
    animation: editor-v2-spin .75s linear infinite;
}

body.editor-v2-mode .resolution-notice.editor-v2-resolution-marker {
    display: none !important;
}

.editor-v2-background-crop-dialog .simple-popup-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px 24px;
    box-sizing: border-box;
}

.editor-v2-background-crop-intro {
    margin: 0;
    color: #626a74;
    font-size: 14px;
    line-height: 1.45;
}

.editor-v2-background-crop-layout,
.editor-v2-background-crop-layout tbody,
.editor-v2-background-crop-layout tr {
    display: block;
    width: 100%;
}

.editor-v2-background-crop-layout tr {
    display: block;
}

.editor-v2-images-sentinel {
    grid-column: 1 / -1;
    display: flex !important;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.editor-v2-background-crop-dialog #popup_cropper_left {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.editor-v2-background-crop-dialog #popup_cropper_right {
    display: none;
}

.editor-v2-background-crop-actions {
    display: flex;
    justify-content: center;
    width: 100%;
}

.editor-v2-background-crop-dialog .editor-v2-crop-apply {
    width: min(320px, 100%);
    min-height: 46px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    background: #d20b5c;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.editor-v2-background-crop-dialog #popup_cropper {
    margin: 0 auto;
}

.editor-v2-background-crop-dialog .simple-popup-close {
    display: flex !important;
    z-index: 4;
}

.editor-v2-background-crop-dialog .simple-popup-close::before {
    content: '\00d7';
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

.editor-v2-effect-toggle {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f6f7f9;
    color: #3d4650;
    cursor: pointer;
    font-size: 13px;
}

.editor-v2-effect-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #d20b5c;
}

@media (max-width: 760px) {
    .editor-v2-background-crop-dialog.simple-popup {
        width: calc(100vw - 24px) !important;
    }

    .editor-v2-background-crop-dialog .simple-popup-content {
        padding: 18px;
    }

    .editor-v2-background-crop-dialog .editor-v2-crop-apply {
        width: 100%;
    }
}

.editor-v2-text-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 0;
}

.editor-v2-text-action {
    display: inline-flex;
    width: 32px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: #fff;
    color: #4b535d;
    cursor: pointer;
}

.editor-v2-text-action:hover,
.editor-v2-text-action:focus {
    background: #fff0f4;
    color: #c30a54;
}

.editor-v2-template-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
}

.editor-v2-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #59616b;
    font-size: 12px;
    font-weight: 600;
}

.editor-v2-filter select {
    display: block;
    width: 100% !important;
    height: 42px;
    box-sizing: border-box;
    padding: 0 36px 0 12px !important;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #252a30;
    font: 13px Arial, Helvetica, sans-serif;
}

.editor-v2-filter select:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-select {
    position: relative;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-select .editor-v2-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.editor-v2-select-trigger {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #252a30;
    cursor: pointer;
    font: 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-select-trigger:hover {
    border-color: #cbd1d7;
}

.editor-v2-select-trigger:focus,
.editor-v2-select.is-open .editor-v2-select-trigger {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-select-chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: -4px;
    border-right: 1.5px solid #59636f;
    border-bottom: 1.5px solid #59636f;
    transform: rotate(45deg);
}

.editor-v2-select.is-open .editor-v2-select-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}

.editor-v2-select-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 286px;
    box-sizing: border-box;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 35, 40, .18), 0 0 0 1px rgba(31, 35, 40, .06);
}

.editor-v2-select-menu[hidden] {
    display: none !important;
}

.editor-v2-select-option {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    box-sizing: border-box;
    padding: 7px 34px 7px 10px;
    border: 0;
    border-radius: 7px;
    outline: 0;
    background: transparent;
    color: #303740;
    cursor: pointer;
    font: 13px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: left;
}

.editor-v2-select-option:hover,
.editor-v2-select-option:focus {
    background: #f3f5f7;
}

.editor-v2-select-option.is-selected {
    background: #fff0f6;
    color: #c10952;
    font-weight: 600;
}

.editor-v2-select-option.is-selected::after {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #d20b5c;
    content: '✓';
    font-size: 13px;
    transform: translateY(-50%);
}

.editor-v2-hidden-filter {
    display: none !important;
}

.editor-v2-template-results {
    position: static !important;
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    overflow: visible !important;
}

.editor-v2-template-results .templates-searching,
.editor-v2-template-results > div:not(.template-result-item) {
    grid-column: 1 / -1;
}

.editor-v2-template-skeleton {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.editor-v2-template-skeleton > i {
    display: block;
    aspect-ratio: 9 / 5;
    border-radius: 5px;
    background: #eef1f4;
    animation: editor-v2-template-pulse 1.1s ease-in-out infinite alternate;
}

.editor-v2-template-skeleton > i:nth-of-type(2n) {
    animation-delay: 120ms;
}

.editor-v2-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.editor-v2-template-more {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 4px;
    border: 1px solid #d20b5c;
    border-radius: 8px;
    background: #fff;
    color: #c50954;
    font: 600 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.editor-v2-template-more:hover,
.editor-v2-template-more:focus {
    outline: 0;
    background: #fff1f6;
}

.editor-v2-template-more.is-loading {
    color: #777f88;
    border-color: #dfe3e7;
    cursor: wait;
}

.editor-v2-template-error {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #646b74;
    text-align: center;
}

.editor-v2-template-error strong {
    color: #252a30;
    font-size: 15px;
}

.editor-v2-template-error button {
    min-height: 40px;
    margin-top: 4px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #d20b5c;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

@keyframes editor-v2-template-pulse {
    from { opacity: .55; }
    to { opacity: 1; }
}

.editor-v2-template-results .template-result-item {
    position: relative;
    width: auto !important;
    min-width: 0;
    aspect-ratio: 9 / 5;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease-out;
}

.editor-v2-template-results button.template-result-item {
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
}

.editor-v2-template-results .template-result-item.is-loading {
    pointer-events: none;
    cursor: wait;
}

.editor-v2-template-results .template-result-item:active {
    transform: scale(.98);
}

.editor-v2-template-results .template-result-item:hover,
.editor-v2-template-results .template-result-item:focus,
.editor-v2-template-results .template-result-item.is-selected {
    outline: 0;
}

.editor-v2-template-results .template-result-item:hover .template-thumb,
.editor-v2-template-results .template-result-item:focus .template-thumb {
    box-shadow: 0 7px 20px rgba(20, 24, 29, .18);
}

.editor-v2-template-results .template-result-item.is-selected .template-thumb {
    box-shadow: 0 0 0 3px #d20b5c, 0 8px 22px rgba(210, 11, 92, .2);
}

.editor-v2-template-results .template-thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 0 !important;
    border-radius: 5px;
    background: transparent !important;
}

.editor-v2-template-results .template-thumb-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    box-sizing: border-box;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    object-fit: cover;
}

.editor-v2-template-results .template-result-item.is-multipage .template-thumb {
    overflow: visible;
}

.editor-v2-template-results .template-result-item.is-multipage .template-thumb-img {
    position: absolute;
    width: calc(100% - 7px) !important;
    height: calc(100% - 5px) !important;
    border-radius: 5px;
    box-shadow: 0 2px 7px rgba(20, 24, 29, .16);
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.editor-v2-template-results .template-result-item.is-multipage .template-thumb-img-back {
    z-index: 1;
    top: 0;
    right: 0;
}

.editor-v2-template-results .template-result-item.is-multipage .template-thumb-img-front {
    z-index: 2;
    bottom: 0;
    left: 0;
}

.editor-v2-template-results .template-result-item.is-multipage:hover .template-thumb-img-back,
.editor-v2-template-results .template-result-item.is-multipage:focus .template-thumb-img-back {
    transform: translate(3px, -2px);
}

.editor-v2-template-results .template-result-item.is-multipage:hover .template-thumb-img-front,
.editor-v2-template-results .template-result-item.is-multipage:focus .template-thumb-img-front {
    transform: translate(-3px, 2px);
}

.editor-v2-template-results .template-result-item.is-multipage:hover .template-thumb-img,
.editor-v2-template-results .template-result-item.is-multipage:focus .template-thumb-img {
    box-shadow: 0 5px 14px rgba(20, 24, 29, .2);
}

.editor-v2-template-loading {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(255, 255, 255, .86);
    color: #d20b5c;
    font-size: 22px;
}

.editor-v2-template-results .template-result-item.is-loading .editor-v2-template-loading {
    display: flex;
}

.editor-v2-mode #gray_box {
    position: fixed !important;
    z-index: 49000 !important;
    inset: 0;
    width: auto !important;
    height: auto !important;
    background: rgba(21, 25, 30, .56) !important;
    filter: none !important;
    opacity: 1 !important;
}

.editor-v2-dialog.simple-popup {
    position: fixed !important;
    z-index: 50000;
    top: 50% !important;
    left: 50% !important;
    width: min(480px, calc(100vw - 40px)) !important;
    height: auto !important;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(20, 24, 29, .08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 24, 29, .24);
    transform: translate(-50%, -50%);
}

/* The crop dialog needs room for the full image and selection frame. Keep this
   after the generic v2 dialog rule so it is not collapsed back to 480px. */
.editor-v2-dialog.editor-v2-background-crop-dialog.simple-popup {
    width: min(520px, calc(100vw - 40px)) !important;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

.editor-v2-dialog.editor-v2-background-crop-dialog .simple-popup-header {
    flex: 0 0 auto;
}

.editor-v2-dialog.editor-v2-background-crop-dialog .simple-popup-content {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.editor-v2-mobile .editor-v2-background-crop-dialog #popup_cropper {
    touch-action: pan-y;
}

.editor-v2-mobile .editor-v2-background-crop-dialog #popup_cropper_outline,
.editor-v2-mobile .editor-v2-background-crop-dialog #popup_cropper_outline .handle {
    touch-action: none;
}

.editor-v2-dialog .simple-popup-header {
    height: auto;
    min-height: 66px;
    box-sizing: border-box;
    padding: 22px 58px 16px 24px;
    border: 0;
    background: #fff;
    color: #22272e;
    font-size: 20px;
    line-height: 28px;
}

.editor-v2-dialog .simple-popup-close {
    top: 17px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5 !important;
    color: #59616b;
    font-size: 15px;
    line-height: 1;
}

.editor-v2-dialog .simple-popup-close::before,
.editor-v2-dialog .simple-popup-close::after {
    position: absolute;
    width: 15px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
}

.editor-v2-dialog .simple-popup-close::before {
    transform: rotate(45deg);
}

.editor-v2-dialog .simple-popup-close::after {
    transform: rotate(-45deg);
}

.editor-v2-dialog .simple-popup-close:hover,
.editor-v2-dialog .simple-popup-close:focus {
    background: #e7eaee !important;
    color: #2f353d;
}

.editor-v2-dialog .simple-popup-content {
    margin: 0;
    padding: 0 24px 24px;
}

.editor-v2-dialog.simple-popup:not(.editor-v2-progress-dialog):not(.editor-v2-background-crop-dialog):not(.editor-v2-new-design-dialog) .simple-popup-content {
    max-height: calc(100vh - 132px);
    overflow-y: auto;
}

.editor-v2-dialog .simple-popup-content > :first-child {
    margin-top: 0;
}

.editor-v2-dialog .simple-popup-content > :last-child {
    margin-bottom: 0;
}

.editor-v2-dialog-copy,
.editor-v2-dialog-help,
.editor-v2-progress-content p {
    color: #626a74;
    font-size: 14px;
    line-height: 21px;
}

.editor-v2-dialog-label {
    display: block;
    margin: 0 0 7px;
    color: #343a40;
    font-size: 13px;
    font-weight: 600;
}

.editor-v2-dialog-help {
    margin: 0 0 14px;
}

.editor-v2-dialog #save_as_name {
    width: 100% !important;
    height: 44px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    outline: 0;
    font-size: 15px;
}

.editor-v2-dialog #save_as_name:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .1);
}

.editor-v2-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 20px 0 0 !important;
    padding-top: 16px;
    border-top: 1px solid #eceff2;
}

.editor-v2-dialog-button {
    min-height: 42px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #d8dde3;
    border-radius: 8px;
    background: #fff;
    color: #333941;
    font: 600 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 120ms ease-out;
}

.editor-v2-dialog-button:active { transform: scale(.97); }
.editor-v2-dialog-button-primary { border-color: #d20b5c; background: #d20b5c; color: #fff; }
.editor-v2-dialog-button-primary:hover { border-color: #b9084e; background: #b9084e; }
.editor-v2-dialog-button-danger { border-color: #efbfd2; background: #fff; color: #a30746; }
.editor-v2-dialog-button-danger:hover { border-color: #dfa0bb; background: #fff1f6; }
.editor-v2-dialog-button-secondary:hover { background: #f4f5f7; }

.editor-v2-help-dialog.editor-v2-dialog.simple-popup {
    width: min(720px, calc(100vw - 40px)) !important;
}

.editor-v2-help-dialog .editor-v2-dialog-help {
    margin-bottom: 16px;
}

.editor-v2-help-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-v2-help-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    background: #f8f9fa;
}

.editor-v2-help-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f7dce7;
    color: #b9084e;
    font-size: 13px;
    font-weight: 700;
}

.editor-v2-help-copy h3 {
    margin: 1px 0 5px;
    color: #282e35;
    font-size: 14px;
    line-height: 18px;
}

.editor-v2-help-copy p {
    margin: 0;
    color: #626b75;
    font-size: 12px;
    line-height: 17px;
}

.editor-v2-help-copy kbd {
    display: inline-block;
    padding: 0 5px;
    border: 1px solid #d5dae0;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #fff;
    color: #323840;
    font: 600 11px/17px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
}

.editor-v2-help-copy sup {
    margin-left: 1px;
    color: #8b939d;
    font-size: 9px;
    font-weight: 700;
    line-height: 0;
}

.editor-v2-help-actions {
    justify-content: space-between;
    gap: 16px;
}

.editor-v2-help-platform-note {
    flex: 1 1 auto;
    margin: 0;
    color: #7b848e;
    font-size: 11px;
    line-height: 16px;
    text-align: left;
}

.editor-v2-help-platform-note kbd {
    color: #4f5862;
    font: 600 11px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-help-platform-note sup {
    color: #d20b5c;
    font-size: 9px;
    font-weight: 700;
}

@media (max-width: 620px) {
    .editor-v2-help-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .editor-v2-help-actions {
        flex-wrap: wrap;
    }
}

.editor-v2-bug-report-trigger {
    position: fixed;
    z-index: 3200;
    top: 50%;
    right: 0;
    display: flex;
    width: 150px;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 10px 13px 10px 12px;
    border: 1px solid #f1c7d8;
    border-radius: 14px 0 0 14px;
    background: #fff0f6;
    box-shadow: 0 4px 14px rgba(210, 11, 92, .12);
    color: #c10952;
    font: 600 13px/17px Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-bug-report-trigger,
.editor-v2-bug-report-trigger *,
.editor-v2-bug-file-picker,
.editor-v2-bug-file-picker * {
    cursor: pointer;
}

.editor-v2-bug-report-trigger:hover,
.editor-v2-bug-report-trigger:focus-visible {
    border-color: #e8aec6;
    outline: 0;
    background: #ffe4ef;
    box-shadow: 0 6px 18px rgba(210, 11, 92, .17);
}

.editor-v2-bug-report-trigger:focus-visible {
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .15), 0 6px 18px rgba(210, 11, 92, .17);
}

.editor-v2-bug-report-trigger:active {
    transform: translateY(-50%) scale(.98);
}

.editor-v2-bug-report-trigger svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: currentColor;
}

.editor-v2-bug-report-dialog.editor-v2-dialog.simple-popup {
    width: min(560px, calc(100vw - 40px)) !important;
}

.editor-v2-bug-report-form {
    font-family: Arial, Helvetica, sans-serif;
}

.editor-v2-bug-report-form .editor-v2-dialog-label {
    margin-top: 15px;
}

.editor-v2-bug-report-form .editor-v2-dialog-label > span {
    color: #858d96;
    font-weight: 400;
}

.editor-v2-bug-report-form textarea,
.editor-v2-bug-report-form > input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dce2;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #242a31;
    font: 15px/21px Arial, Helvetica, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-bug-report-form textarea {
    min-height: 126px;
    padding: 11px 13px;
    resize: vertical;
}

.editor-v2-bug-report-form > input[type="text"] {
    height: 44px;
    padding: 0 13px;
}

.editor-v2-bug-report-form textarea:focus,
.editor-v2-bug-report-form > input[type="text"]:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .1);
}

.editor-v2-bug-file-picker {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: 13px;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px dashed #c9cfd6;
    border-radius: 10px;
    background: #f8f9fa;
    color: #30363d;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-bug-file-picker:hover,
.editor-v2-bug-file-picker:focus-within {
    border-color: #d20b5c;
    background: #fff6fa;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .07);
}

.editor-v2-bug-file-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f7dce7;
    color: #b9084e;
    font-size: 18px;
}

.editor-v2-bug-file-picker strong,
.editor-v2-bug-file-picker small {
    display: block;
}

.editor-v2-bug-file-picker strong {
    margin-bottom: 3px;
    font-size: 14px;
}

.editor-v2-bug-file-picker small {
    color: #707983;
    font-size: 12px;
    line-height: 17px;
}

.editor-v2-bug-file-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.editor-v2-bug-file-list {
    display: none;
    margin-top: 8px;
    color: #59616b;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-bug-file-list.is-visible {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.editor-v2-bug-file-list span {
    max-width: 100%;
    overflow: hidden;
    padding: 3px 7px;
    border-radius: 6px;
    background: #f0f2f4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-bug-honeypot {
    position: fixed !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.editor-v2-bug-status {
    display: none;
    margin: 12px 0 0;
    color: #b42318;
    font-size: 13px;
    line-height: 18px;
}

.editor-v2-bug-status.is-visible {
    display: block;
}

.editor-v2-bug-report-form .editor-v2-dialog-button:disabled {
    opacity: .58;
    cursor: wait;
}

.editor-v2-mobile .editor-v2-bug-report-trigger,
body.editor-v2-mobile .editor-v2-bug-report-trigger {
    display: none !important;
}

@media (max-width: 767px) {
    .editor-v2-bug-report-trigger {
        display: none;
    }
}

.editor-v2-inline-text-dialog.editor-v2-dialog {
    z-index: 50000 !important;
    width: min(420px, calc(100vw - 40px)) !important;
}

.editor-v2-inline-text-dialog .simple-popup-header {
    min-height: 60px;
    padding: 20px 24px 12px;
}

.editor-v2-inline-text-dialog .simple-popup-content {
    padding: 0 24px 22px;
}

.editor-v2-preview-dialog.editor-v2-dialog.simple-popup {
    width: min(955px, calc(100vw - 40px)) !important;
}

.editor-v2-stock-dialog.editor-v2-dialog.simple-popup {
    width: min(550px, calc(100vw - 40px)) !important;
}

.editor-v2-elements-dialog.editor-v2-dialog.simple-popup {
    width: min(720px, calc(100vw - 40px)) !important;
}

.editor-v2-upload-dialog.editor-v2-dialog.simple-popup {
    width: min(450px, calc(100vw - 40px)) !important;
    min-height: 190px;
}

.editor-v2-font-upload-dialog.editor-v2-dialog.simple-popup {
    width: min(500px, calc(100vw - 32px)) !important;
}

.editor-v2-font-upload-form {
    font-family: Arial, Helvetica, sans-serif;
}

.editor-v2-font-file-picker {
    position: relative;
    display: flex;
    min-height: 118px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-sizing: border-box;
    padding: 20px;
    border: 1px dashed #cbd1d8;
    border-radius: 11px;
    background: #f8f9fa;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-font-file-picker:hover,
.editor-v2-font-file-picker:focus-within,
.editor-v2-font-file-picker.is-dragging {
    border-color: #d20b5c;
    background: #fff5f9;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-font-file-picker.has-file {
    border-style: solid;
    border-color: #d20b5c;
    background: #fff8fb;
}

.editor-v2-font-file-picker,
.editor-v2-font-file-picker * {
    cursor: pointer;
}

.editor-v2-font-file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.editor-v2-font-file-icon {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8dce8;
    color: #b9084e;
    font-size: 20px;
}

.editor-v2-font-file-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #24292f;
}

.editor-v2-font-file-copy strong {
    font-size: 14px;
    line-height: 19px;
}

.editor-v2-font-file-copy small {
    color: #707782;
    font-size: 12px;
    line-height: 17px;
}

.editor-v2-font-file-name {
    min-height: 18px;
    margin: 9px 2px 0;
    overflow: hidden;
    color: #343a40;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-font-license-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #fff8e5;
    color: #65500f;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-font-license-note i {
    margin-top: 2px;
    color: #a67b00;
}

.editor-v2-font-upload-error {
    min-height: 18px;
    margin: 9px 2px -7px;
    color: #b42318;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-font-upload-dialog .editor-v2-dialog-button-primary.is-loading {
    cursor: wait;
}

.editor-v2-font-upload-dialog .editor-v2-dialog-button:disabled {
    border-color: #d9dde2;
    background: #eef0f2;
    color: #9aa1aa;
    cursor: default;
    transform: none;
}

.editor-v2-font-delete-dialog.editor-v2-dialog.simple-popup {
    width: min(440px, calc(100vw - 32px)) !important;
}

.editor-v2-font-delete-error {
    min-height: 18px;
    margin: 10px 2px -8px;
    color: #b42318;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-font-delete-dialog .editor-v2-dialog-button-danger.is-loading {
    cursor: wait;
}

.editor-v2-font-delete-dialog .editor-v2-dialog-button:disabled {
    cursor: wait;
    opacity: .68;
    transform: none;
}

.editor-v2-inline-textarea {
    display: block;
    width: 100% !important;
    margin: 0 !important;
    min-height: 132px;
    box-sizing: border-box;
    padding: 12px 13px !important;
    border: 1px solid #d7dce2 !important;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #24292f;
    font: 15px/21px Arial, Helvetica, sans-serif !important;
    resize: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-inline-textarea:focus {
    border-color: #d20b5c !important;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .1);
}

.editor-v2-inline-text-help {
    margin: 10px 0 0;
    color: #6b727c;
    font-size: 12px;
    line-height: 18px;
}

.editor-v2-progress-dialog .simple-popup-close {
    display: none;
}

.editor-v2-warning-dialog .simple-popup-close {
    display: none;
}

.editor-v2-progress-dialog .simple-popup-header {
    display: none;
}

.editor-v2-progress-dialog .simple-popup-content {
    padding: 0;
}

.editor-v2-progress-content,
.editor-v2-flow-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.editor-v2-progress-content {
    min-height: 76px;
    box-sizing: border-box;
    padding: 20px 22px;
}

.editor-v2-progress-content strong,
.editor-v2-flow-card strong {
    color: #23282f;
    font-size: 16px;
}

.editor-v2-progress-content p,
.editor-v2-flow-card p {
    margin: 6px 0 0;
}

.editor-v2-spinner {
    display: block;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 3px solid #f1c2d5;
    border-top-color: #d20b5c;
    border-radius: 50%;
    animation: editor-v2-spin .7s linear infinite;
}

@keyframes editor-v2-spin { to { transform: rotate(360deg); } }

/* Legacy-движок показывает #loading во время смены страницы. В v2 сохраняем
   тот же служебный слой, но заменяем старый GIF на единый розовый индикатор. */
body.editor-v2-mode #loading {
    opacity: 1;
    background-color: rgba(246, 247, 249, .72);
    background-image: none !important;
}

body.editor-v2-mode #loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    margin: -17px 0 0 -17px;
    border: 3px solid #f1c2d5;
    border-top-color: #d20b5c;
    border-radius: 50%;
    animation: editor-v2-spin .7s linear infinite;
}

.editor-v2-toast {
    position: fixed;
    z-index: 61000;
    top: 22px;
    left: 50%;
    display: flex;
    min-height: 48px;
    max-width: min(420px, calc(100vw - 32px));
    align-items: center;
    gap: 11px;
    box-sizing: border-box;
    padding: 11px 16px;
    border: 1px solid rgba(28, 122, 75, .18);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(20, 24, 29, .18);
    color: #26312b;
    font-size: 14px;
    font-weight: 600;
    transform: translate(-50%, -12px);
    opacity: 0;
    transition: opacity 160ms ease, transform 180ms ease-out;
}

.editor-v2-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.editor-v2-toast-icon {
    display: flex;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9f7ef;
    color: #16834f;
    font-size: 13px;
}

.editor-v2-flow-overlay {
    position: fixed;
    z-index: 60000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(21, 25, 30, .56);
}

.editor-v2-flow-card {
    width: min(500px, calc(100vw - 40px));
    box-sizing: border-box;
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 24, 29, .24);
}

.editor-v2-page-count {
    display: block;
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #fff1f6;
    color: #a30746;
    font-size: 12px;
    line-height: 17px;
}

@media (prefers-reduced-motion: reduce) {
    .editor-v2-template-results .template-result-item,
    .editor-v2-dialog-button,
    .editor-v2-template-skeleton > i,
    body.editor-v2-mode #loading::after {
        transition: none;
        animation: none;
    }
}

.editor-v2-panel-body .panel-item {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e5e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.editor-v2-panel-body .panel-item-header {
    border-radius: 8px 8px 0 0;
    background: #343a40;
}

.editor-v2-panel-primary {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0;
    border-radius: 8px;
    background: #d20b5c;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.editor-v2-custom-panel {
    display: none;
    padding-top: 14px;
}

.editor-v2-custom-panel p {
    margin: 0 0 14px;
    color: #68707a;
    font-size: 13px;
    line-height: 1.45;
}

.editor-v2-custom-panel > button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    margin: 0 0 8px;
    padding: 0 13px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fff;
    color: #30363d;
    text-align: left;
}

.editor-v2-custom-panel > button:hover,
.editor-v2-custom-panel > button:focus {
    border-color: #d20b5c;
    color: #d20b5c;
}

#editor-v2-shapes-panel {
    padding-top: 14px;
}

.editor-v2-shapes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.editor-v2-shape-card {
    display: flex;
    min-width: 0;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 12px 8px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fff;
    color: #30363d;
    cursor: pointer;
    text-align: center;
}

.editor-v2-shape-card:hover,
.editor-v2-shape-card:focus-visible {
    border-color: #d20b5c;
    box-shadow: 0 0 0 2px rgba(210, 11, 92, .08);
    color: #d20b5c;
}

.editor-v2-shape-card svg {
    width: 44px;
    height: 44px;
    overflow: visible;
    fill: #edf1f5;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-v2-shape-card span {
    display: flex;
    max-width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

#editor-v2-calendar-slot #insert_calendars_control {
    float: none !important;
    width: 100%;
    margin: 0 !important;
}

#editor-v2-calendar-slot #insert_calendars_control_header {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fff;
    color: #30363d;
    cursor: pointer;
    font: 600 13px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#editor-v2-calendar-slot #insert_calendars_control_header .toolbar-item-text,
#editor-v2-calendar-slot #insert_calendars_control_header .drop-down-header-text {
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: inherit;
    font: inherit !important;
}

#editor-v2-calendar-slot #insert_calendars_control_header .drop-down-header-arrow {
    margin-left: auto !important;
}

.editor-v2-main {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    background: #f6f7f9;
}

.editor-v2-context-toolbar {
    position: relative;
    z-index: 2800;
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    min-width: 0;
    padding: 0 20px;
    border-bottom: 1px solid #e3e6e9;
    background: #fff;
}

.editor-v2-context-toolbar #top_toolbar_placeholder {
    position: static !important;
    width: 100%;
    height: 62px !important;
    min-width: 0;
    margin: 0;
}

.editor-v2-context-toolbar #top_toolbar {
    position: static !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    height: 62px !important;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.editor-v2-context-toolbar #insert_tools,
.editor-v2-context-toolbar #zoom_tools,
.editor-v2-context-toolbar #undo_tools,
.editor-v2-context-toolbar .clearer {
    display: none !important;
}

.editor-v2-context-toolbar #top_toolbar > div {
    flex: 0 0 auto;
    float: none !important;
}

.editor-v2-context-toolbar .toolbar-divider {
    height: 28px;
    margin: 0 8px;
    border-left-color: #e3e6e9;
}

.editor-v2-context-toolbar .toolbar-item-box,
.editor-v2-context-toolbar .toolbar-item-line {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    padding: 0 8px;
    border-radius: 7px;
}

.editor-v2-context-toolbar .toolbar-item-box:hover,
.editor-v2-context-toolbar .toolbar-item-line:hover {
    background-color: #f1f3f5;
}

.editor-v2-context-toolbar #copy_tools,
.editor-v2-context-toolbar #canvas_tools,
.editor-v2-context-toolbar #text_tools,
.editor-v2-context-toolbar #image_tools,
.editor-v2-context-toolbar #elements_tools,
.editor-v2-context-toolbar #shape_tools,
.editor-v2-context-toolbar #align_tools,
.editor-v2-context-toolbar #arrange_tools {
    float: none !important;
    margin-top: 0 !important;
}

.editor-v2-context-toolbar #copy_tools,
.editor-v2-context-toolbar #image_tools,
.editor-v2-context-toolbar #arrange_tools,
.editor-v2-context-toolbar #align_tools {
    display: flex;
    align-items: center;
}

.editor-v2-context-toolbar #copy_tools .toolbar-item-text,
.editor-v2-context-toolbar #image_tools .toolbar-item-text {
    width: auto;
    color: #4b5159;
    font-size: 12px !important;
}

.editor-v2-context-toolbar .editor-v2-toolbar-icon {
    color: #252a30;
    font-size: 17px;
    line-height: 1;
}

.editor-v2-context-toolbar #copy_tools .toolbar-item-box {
    flex-direction: row !important;
    width: 38px;
    height: 38px;
    gap: 0;
    padding: 0;
}

.editor-v2-context-toolbar #copy_tools .toolbar-item-text {
    display: none !important;
}

.editor-v2-context-toolbar #copy_tools .toolbar-item-disabled .editor-v2-toolbar-icon {
    opacity: .42;
}

.editor-v2-context-toolbar #toolbar_copy,
.editor-v2-context-toolbar #toolbar_paste,
.editor-v2-context-toolbar #toolbar_delete {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}

.editor-v2-context-toolbar [data-editor-v2-keyboard-button]:focus-visible,
.editor-v2-view-row:focus-visible {
    outline: 2px solid rgba(210, 11, 92, .72);
    outline-offset: 2px;
}

.editor-v2-context-toolbar #toolbar_copy .toolbar-item-text,
.editor-v2-context-toolbar #toolbar_paste .toolbar-item-text,
.editor-v2-context-toolbar #toolbar_delete .toolbar-item-text {
    display: none;
}

.editor-v2-context-toolbar #text_tools {
    min-height: 40px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.editor-v2-context-toolbar #text_tools:not([style*="display: none"]) {
    display: flex !important;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
}

/* Legacy toolbar values are meaningful only for an actual selection. */
.editor-v2-context-toolbar:not(.has-selection) #text_tools,
.editor-v2-context-toolbar:not(.has-selection) #image_tools,
.editor-v2-context-toolbar:not(.has-selection) #shape_tools,
.editor-v2-context-toolbar:not(.has-selection) #elements_tools,
.editor-v2-context-toolbar:not(.has-selection) #align_tools,
.editor-v2-context-toolbar:not(.has-selection) #arrange_tools,
.editor-v2-context-toolbar:not(.has-selection) #editor-v2-filters-control,
.editor-v2-context-toolbar:not(.has-selection) #editor-v2-appearance-control,
.editor-v2-context-toolbar:not(.has-selection) #editor-v2-lock-control,
.editor-v2-context-toolbar:not(.has-selection) #editor-v2-remove-background-control {
    display: none !important;
}

/* Text formatting must never leak into image/shape context. Legacy updateToolbar()
   may leave #text_tools visible after changing the selected object type. */
.editor-v2-context-toolbar:not(.has-text-selection) #text_tools {
    display: none !important;
}

.editor-v2-context-toolbar:not(.has-image-selection) #image_tools,
.editor-v2-context-toolbar:not(.has-image-selection) #editor-v2-filters-control,
.editor-v2-context-toolbar:not(.has-image-selection) #editor-v2-remove-background-control,
.editor-v2-context-toolbar:not(.has-shape-selection) #shape_tools,
.editor-v2-context-toolbar:not(.has-element-selection) #elements_tools {
    display: none !important;
}

.editor-v2-context-toolbar:not(.has-croppable-selection) #crop_tools,
.editor-v2-context-toolbar #canvas_tools,
.editor-v2-context-toolbar.has-croppable-selection #image_tools,
.editor-v2-context-toolbar.has-croppable-selection #editor-v2-filters-control,
.editor-v2-context-toolbar.has-croppable-selection #editor-v2-appearance-control,
.editor-v2-context-toolbar.has-croppable-selection #editor-v2-lock-control,
.editor-v2-context-toolbar.has-croppable-selection #arrange_tools {
    display: none !important;
}

@media (max-width: 560px) {
    .editor-v2-dialog .simple-popup-header {
        padding: 18px 54px 13px 18px;
        font-size: 18px;
        line-height: 25px;
    }

    .editor-v2-dialog .simple-popup-content {
        padding-right: 18px;
        padding-bottom: 18px;
        padding-left: 18px;
    }

    .editor-v2-dialog-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .editor-v2-dialog-actions .editor-v2-dialog-button {
        width: 100%;
    }
}

.editor-v2-dialog.editor-v2-new-design-dialog.simple-popup {
    width: min(760px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.editor-v2-new-design-dialog .simple-popup-content {
    padding-bottom: 26px;
}

.editor-v2-new-design-help {
    margin-top: -2px;
}

.editor-v2-new-design-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.editor-v2-new-design-card {
    display: flex;
    min-width: 0;
    min-height: 68px;
    align-items: center;
    gap: 11px;
    box-sizing: border-box;
    padding: 13px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #2d333a;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 120ms ease-out;
}

.editor-v2-new-design-card:hover,
.editor-v2-new-design-card:focus,
.editor-v2-new-design-card.is-selected {
    border-color: #d20b5c;
    background: #fff8fb;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-new-design-card:active {
    transform: scale(.98);
}

.editor-v2-new-design-card-icon {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff0f6;
    color: #c20a55;
    font-size: 16px;
}

.editor-v2-new-design-card-copy,
.editor-v2-new-design-custom-heading > span:last-child {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
}

.editor-v2-new-design-card strong,
.editor-v2-new-design-custom-heading strong {
    font-size: 14px;
    line-height: 18px;
    white-space: normal;
}

.editor-v2-new-design-card small,
.editor-v2-new-design-custom-heading small {
    color: #737b85;
    font-size: 12px;
    line-height: 16px;
}

.editor-v2-new-design-card-arrow {
    flex: 0 0 auto;
    color: #a2a8b0;
    font-size: 11px;
    transition: transform 160ms cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-new-design-card.is-selected .editor-v2-new-design-card-arrow {
    transform: rotate(180deg);
}

.editor-v2-new-design-details {
    min-height: 126px;
    margin-top: 12px;
}

.editor-v2-new-design-empty {
    box-sizing: border-box;
    min-height: 126px;
    margin: 0;
    padding: 48px 18px;
    border: 1px dashed #d5dae0;
    border-radius: 10px;
    background: #fafbfc;
    color: #737b85;
    text-align: center;
}

.editor-v2-new-design-sizes {
    padding: 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #f8f9fb;
}

.editor-v2-new-design-sizes-heading {
    display: block;
    margin: 0 0 10px;
    color: #343a41;
    font-size: 13px;
    line-height: 18px;
}

.editor-v2-new-design-size-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #d9dee4;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #343a41;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 120ms cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option:hover,
.editor-v2-new-design-dialog button.editor-v2-new-design-size-option:focus {
    border-color: #d20b5c;
    background: #fff8fb;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option:active {
    transform: scale(.97);
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option small {
    color: #737b85;
    font-size: 12px;
    line-height: 16px;
}

.editor-v2-new-design-dialog button.editor-v2-new-design-size-option .editor-v2-new-design-sheet-size {
    margin-top: -2px;
    color: #9299a2;
    font-size: 11px;
}

.editor-v2-new-design-custom {
    margin-top: 0;
    padding: 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #f8f9fb;
}

.editor-v2-new-design-custom-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.editor-v2-new-design-custom-fields {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 13px;
    padding-left: 47px;
}

.editor-v2-new-design-custom-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #454b53;
    font-size: 12px;
    font-weight: 600;
}

.editor-v2-size-input {
    position: relative;
    display: block;
}

.editor-v2-size-input input {
    width: 112px;
    height: 42px;
    box-sizing: border-box;
    padding: 0 38px 0 12px;
    border: 1px solid #d5dae0;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: #292f36;
    font-size: 14px;
}

.editor-v2-size-input input:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .1);
}

.editor-v2-size-input i {
    position: absolute;
    top: 0;
    right: 11px;
    color: #858c95;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 42px;
    pointer-events: none;
}

.editor-v2-new-design-size-separator {
    height: 42px;
    color: #858c95;
    line-height: 42px;
}

.editor-v2-new-design-custom-fields .editor-v2-dialog-button {
    margin-left: auto;
}

.editor-v2-new-design-size-help,
.editor-v2-new-design-error {
    margin: 8px 0 0 47px;
    color: #747c86;
    font-size: 11px;
    line-height: 16px;
}

.editor-v2-new-design-error {
    display: none;
    color: #b1084c;
    font-weight: 600;
}

.editor-v2-new-design-error.is-visible {
    display: block;
}

@media (max-width: 760px) {
    .editor-v2-new-design-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-v2-new-design-size-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-v2-new-design-custom-fields {
        flex-wrap: wrap;
    }

    .editor-v2-new-design-custom-fields .editor-v2-dialog-button {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .editor-v2-dialog.editor-v2-new-design-dialog.simple-popup {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px);
    }

    .editor-v2-new-design-grid {
        grid-template-columns: 1fr;
    }

    .editor-v2-new-design-size-grid {
        grid-template-columns: 1fr;
    }

    .editor-v2-new-design-custom-fields {
        padding-left: 0;
    }

    .editor-v2-new-design-size-help,
    .editor-v2-new-design-error {
        margin-left: 0;
    }
}

/* Authorization keeps the legacy request handlers, but Editor v2 gets its
   own calm, accessible shell. Every selector is scoped so Editor v1 remains
   pixel-for-pixel on the established login form. */
body.editor-v2-mode #gray_box {
    background: rgba(20, 24, 31, .52);
    backdrop-filter: blur(2px);
}

#login_popup_new.editor-v2-auth-dialog.simple-popup {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    width: min(780px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e0e3e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(22, 27, 35, .24);
    color: #252a31;
    transform: translate(-50%, -50%);
}

#login_popup_new.editor-v2-auth-dialog .simple-popup-header {
    box-sizing: border-box;
    min-height: 74px;
    padding: 24px 66px 18px 30px;
    border: 0;
    border-bottom: 1px solid #eceef1;
    background: #fff;
    color: #20242a;
    font: 700 24px/31px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog .editor-v2-auth-domain {
    color: #d20b5c;
}

#login_popup_new.editor-v2-auth-dialog .simple-popup-close {
    top: 20px;
    right: 22px;
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e3e8;
    border-radius: 50%;
    background-color: #fff;
    background-image: none;
    color: #7a8089;
    font-size: 14px;
    text-indent: 0;
}

#login_popup_new.editor-v2-auth-dialog .simple-popup-close:hover,
#login_popup_new.editor-v2-auth-dialog .simple-popup-close:focus {
    border-color: #edbfd1;
    color: #d20b5c;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform,
#login_popup_new.editor-v2-auth-dialog #loginpopupform * {
    box-sizing: border-box;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform {
    color: #252a31;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .columns {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 28px 30px 30px;
    background: #fff;
    isolation: isolate;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .columns:before {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 178px;
    height: 238px;
    background: url('/edtfiles/images/printdesign-mark.png') center / 164px auto no-repeat;
    content: "";
    opacity: .055;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .join-col,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-col {
    position: relative;
    z-index: 1;
    width: auto;
    min-width: 0;
    margin: 0;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-col {
    grid-column: 3;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-col:after {
    display: none;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .title {
    margin: 0 0 7px;
    color: #252a31;
    font: 700 18px/24px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog .editor-v2-auth-lead,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .gray-text {
    min-height: 42px;
    margin: 0 0 17px;
    padding: 0;
    color: #707782;
    font: 13px/19px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .row {
    margin: 0 0 12px;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .input-holder {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d9dde3;
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .input-holder:focus-within {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .1);
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .input-holder input {
    float: none;
    width: 100%;
    height: 40px;
    outline: 0;
    color: #252a31;
    font: 14px/40px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .gray-btn.btn,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn {
    display: inline-flex;
    width: auto;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #d20b5c;
    border-radius: 9px;
    background: #d20b5c;
    box-shadow: 0 8px 18px rgba(210, 11, 92, .18);
    color: #fff;
    font: 700 14px/20px Arial, Helvetica, sans-serif;
    text-decoration: none;
    text-shadow: none;
    cursor: pointer;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .gray-btn.btn:hover,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .gray-btn.btn:focus,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn:hover,
#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn:focus {
    border-color: #b9084e;
    background: #b9084e;
    color: #fff;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .link-btn.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin-left: 9px;
    padding: 0;
    color: #a50848;
    font: 600 12px/18px Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn {
    width: 100%;
    min-height: 46px;
    flex-direction: row;
    align-items: center;
    padding: 0 15px;
    background-image: none;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn .text {
    padding: 0;
    color: #fff;
    font: 700 14px/19px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-btn .description {
    color: rgba(255, 255, 255, .82);
    font: 12px/17px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .control-label {
    float: none;
    display: block;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    color: #454b54;
    font: 600 12px/17px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .control-label + .input-holder {
    margin-left: 0;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform label {
    color: #59616c;
    font: 12px/17px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .btn-holder {
    margin-top: 15px;
}

#login_popup_new.editor-v2-auth-dialog #loginpopupform .btn-holder .pull-right {
    float: none;
}

#login_popup_new.editor-v2-auth-dialog .editor-v2-auth-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 30px 17px;
    border-top: 1px solid #f1dbe4;
    background: #fff7fa;
    color: #5a3544;
    font: 13px/19px Arial, Helvetica, sans-serif;
}

#login_popup_new.editor-v2-auth-dialog .editor-v2-auth-note i {
    margin-top: 2px;
    color: #d20b5c;
    font-size: 15px;
}

body.editor-v2-mode #notice_bar {
    top: 18px;
    right: auto;
    left: 50%;
    display: flex;
    width: auto;
    height: auto;
    justify-content: center;
    text-align: left;
    pointer-events: none;
    transform: translateX(-50%);
}

body.editor-v2-mode #notice_box {
    display: flex;
    width: auto;
    max-width: min(420px, calc(100vw - 36px));
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid #eed7e0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(22, 27, 35, .2);
    color: #4c3540;
    font: 600 13px/18px Arial, Helvetica, sans-serif;
}

body.editor-v2-mode #notice_box.notice {
    border-color: #f0d0dd;
    background: #fff8fb;
    color: #513440;
}

body.editor-v2-mode #notice_box.alert {
    border-color: #f0c9c9;
    background: #fff7f7;
    color: #5c3030;
}

body.editor-v2-mode #notice_box .editor-v2-notice__icon {
    flex: 0 0 auto;
    color: #d20b5c;
    font-size: 18px;
}

body.editor-v2-mode #notice_box.alert .editor-v2-notice__icon {
    color: #c33e3e;
}

body.editor-v2-mode #notice_box .editor-v2-notice__text {
    min-width: 0;
}

#registration_pending_popup.editor-v2-registration-pending-dialog.simple-popup {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    width: min(620px, calc(100vw - 32px)) !important;
    height: auto !important;
    overflow: hidden;
    border: 1px solid #e0e3e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(22, 27, 35, .24);
    color: #252a31;
    transform: translate(-50%, -50%);
}

#registration_pending_popup.editor-v2-registration-pending-dialog .simple-popup-header {
    box-sizing: border-box;
    min-height: 74px;
    padding: 24px 30px 18px;
    border: 0;
    border-bottom: 1px solid #eceef1;
    background: #fff;
    color: #20242a;
    font: 700 24px/31px Arial, Helvetica, sans-serif;
}

#registration_pending_popup.editor-v2-registration-pending-dialog .simple-popup-content {
    box-sizing: border-box;
    padding: 30px;
}

#registration_pending_popup .editor-v2-registration-pending {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

#registration_pending_popup .editor-v2-registration-pending__icon {
    display: flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #fff1f6;
    color: #d20b5c;
    font-size: 30px;
}

#registration_pending_popup .editor-v2-registration-pending__content h3 {
    margin: 1px 0 9px;
    color: #252a31;
    font: 700 19px/25px Arial, Helvetica, sans-serif;
}

#registration_pending_popup .editor-v2-registration-pending__content p {
    margin: 0 0 8px;
    color: #59616c;
    font: 14px/20px Arial, Helvetica, sans-serif;
}

#registration_pending_popup .editor-v2-registration-pending__content .editor-v2-registration-pending__hint {
    color: #777e88;
    font-size: 13px;
}

#registration_pending_popup .editor-v2-registration-pending__content .gray-btn.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    padding: 0 18px;
    border: 1px solid #d20b5c;
    border-radius: 9px;
    background: #d20b5c;
    box-shadow: 0 8px 18px rgba(210, 11, 92, .18);
    color: #fff;
    font: 700 14px/20px Arial, Helvetica, sans-serif;
    text-shadow: none;
}

#registration_pending_popup .editor-v2-registration-pending__content .gray-btn.btn:hover,
#registration_pending_popup .editor-v2-registration-pending__content .gray-btn.btn:focus {
    border-color: #b9084e;
    background: #b9084e;
}

@media (max-width: 760px) {
    #login_popup_new.editor-v2-auth-dialog #loginpopupform .columns {
        grid-template-columns: 1fr 1fr;
    }

    #login_popup_new.editor-v2-auth-dialog #loginpopupform .columns:before {
        display: none;
    }

    #login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-col {
        grid-column: auto;
    }

}

@media (max-width: 560px) {
    #login_popup_new.editor-v2-auth-dialog.simple-popup {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }

    #login_popup_new.editor-v2-auth-dialog .simple-popup-header {
        min-height: 64px;
        padding: 19px 52px 15px 20px;
        font-size: 21px;
        line-height: 28px;
    }

    #login_popup_new.editor-v2-auth-dialog #loginpopupform .columns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 20px 24px;
    }

    #login_popup_new.editor-v2-auth-dialog #loginpopupform .reg-col {
        margin-top: 0;
    }

    #login_popup_new.editor-v2-auth-dialog .editor-v2-auth-note {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.editor-v2-mode #notice_bar {
        top: 10px;
        right: auto;
        left: 50%;
    }

    body.editor-v2-mode #notice_box {
        max-width: calc(100vw - 20px);
    }

    #registration_pending_popup.editor-v2-registration-pending-dialog.simple-popup {
        width: calc(100vw - 20px) !important;
        border-radius: 14px;
    }

    #registration_pending_popup.editor-v2-registration-pending-dialog .simple-popup-header {
        min-height: 64px;
        padding: 19px 20px 15px;
        font-size: 21px;
        line-height: 28px;
    }

    #registration_pending_popup.editor-v2-registration-pending-dialog .simple-popup-content {
        padding: 22px 20px 24px;
    }

    #registration_pending_popup .editor-v2-registration-pending {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #registration_pending_popup .editor-v2-registration-pending__icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 25px;
    }
}

.editor-v2-dialog.editor-v2-resize-design-dialog.simple-popup {
    width: min(720px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.editor-v2-resize-design-dialog .simple-popup-content {
    padding-bottom: 24px;
}

.editor-v2-resize-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0;
    padding: 11px 13px;
    border: 1px solid #e2e5e9;
    border-radius: 9px;
    background: #f8f9fb;
    color: #747c86;
    font-size: 12px;
}

.editor-v2-resize-current strong {
    color: #30363d;
    font-size: 13px;
}

.editor-v2-resize-section {
    margin-top: 14px;
}

.editor-v2-resize-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.editor-v2-resize-section-heading strong {
    color: #30363d;
    font-size: 13px;
}

.editor-v2-resize-section-heading span {
    color: #858c95;
    font-size: 11px;
}

.editor-v2-resize-orientation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.editor-v2-resize-orientation button,
.editor-v2-resize-paper {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    border: 1px solid #d9dee4;
    outline: 0;
    background: #fff;
    color: #343a41;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 120ms ease-out;
}

.editor-v2-resize-orientation button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.editor-v2-resize-orientation button:hover,
.editor-v2-resize-orientation button:focus,
.editor-v2-resize-orientation button.is-selected,
.editor-v2-resize-paper:hover,
.editor-v2-resize-paper:focus,
.editor-v2-resize-paper.is-selected {
    border-color: #d20b5c;
    background: #fff8fb;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .08);
}

.editor-v2-resize-orientation button:active,
.editor-v2-resize-paper:active {
    transform: scale(.98);
}

.editor-v2-resize-page-shape {
    display: block;
    box-sizing: border-box;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    color: #8a929c;
}

.editor-v2-resize-page-shape.is-portrait {
    width: 14px;
    height: 19px;
}

.editor-v2-resize-page-shape.is-landscape {
    width: 19px;
    height: 14px;
}

.editor-v2-resize-orientation button.is-selected .editor-v2-resize-page-shape {
    color: #c20a55;
}

.editor-v2-resize-paper-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.editor-v2-resize-paper {
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 9px 11px;
    border-radius: 8px;
    text-align: left;
}

.editor-v2-resize-paper strong {
    font-size: 13px;
}

.editor-v2-resize-paper small {
    color: #777f89;
    font-size: 11px;
    white-space: nowrap;
}

.editor-v2-resize-custom {
    padding: 13px 14px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #f8f9fb;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.editor-v2-resize-custom.is-selected {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .07);
}

.editor-v2-resize-custom .editor-v2-new-design-custom-fields {
    margin-top: 0;
    padding-left: 0;
}

.editor-v2-resize-custom .editor-v2-new-design-size-help,
.editor-v2-resize-custom .editor-v2-new-design-error {
    margin-left: 0;
}

.editor-v2-resize-proportional {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid #dfe3e8;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-resize-proportional input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.editor-v2-resize-checkbox {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #cbd1d8;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    font-size: 11px;
}

.editor-v2-resize-proportional input:checked + .editor-v2-resize-checkbox {
    border-color: #c20a55;
    background: #c20a55;
    color: #fff;
}

.editor-v2-resize-proportional input:focus + .editor-v2-resize-checkbox {
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .12);
}

.editor-v2-resize-proportional > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.editor-v2-resize-proportional strong {
    color: #343a41;
    font-size: 13px;
    font-weight: 700;
}

.editor-v2-resize-proportional small {
    color: #747c86;
    font-size: 11px;
}

.editor-v2-resize-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e8ec;
}

.editor-v2-resize-selected {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.editor-v2-resize-selected-copy {
    color: #4c535c;
    font-size: 12px;
    font-weight: 600;
}

.editor-v2-resize-selected .editor-v2-new-design-error {
    margin: 0;
}

@media (max-width: 760px) {
    .editor-v2-resize-paper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-v2-resize-footer {
        flex-wrap: wrap;
    }

    .editor-v2-resize-selected {
        flex-basis: 100%;
    }
}

.editor-v2-context-toolbar:not(.has-image-selection):not(.has-text-selection):not(.has-shape-selection):not(.has-element-selection) #editor-v2-lock-control {
    display: none !important;
}

/* A locked image remains selectable in v2, but offers only the safe unlock action. */
body.editor-v2-mode #outline_layers .outline2.selected.locked .handle {
    display: none !important;
}

/* Selection handles keep one quiet, branded language in every transform
   state. Dragging hides them because the coordinate readout is the useful
   instrument at that moment and must never compete with a corner marker. */
body.editor-v2-mode #outline_layers .outline2 .handle {
    z-index: 6;
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border: 1px solid #d20b5c;
    border-radius: 2px;
    background-color: #fff !important;
    background-image: none !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9);
}

/* Multiple objects behave as one transformable composition. The individual
   markers are suppressed so there is a single, unambiguous scale target. */
body.editor-v2-mode #outline_layers.editor-v2-has-group-selection .outline2.selected .handle,
body.editor-v2-mode #outline_layers.editor-v2-has-group-selection .outline2.selected .selected-dash,
body.editor-v2-mode #outline_layers.editor-v2-has-group-selection .outline2.selected .position-measure,
body.editor-v2-mode #outline_layers.editor-v2-has-group-selection .outline2.selected .size-measure {
    display: none !important;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline {
    position: absolute;
    z-index: 20000;
    box-sizing: border-box;
    border: 1px solid #d20b5c;
    pointer-events: none;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .handle {
    position: absolute;
    z-index: 6;
    display: block;
    width: 11px;
    height: 11px;
    box-sizing: border-box;
    border: 1px solid #d20b5c;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .92);
    pointer-events: auto;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .handle-nw {
    top: -6px;
    left: -6px;
    cursor: nwse-resize;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .handle-ne {
    top: -6px;
    right: -6px;
    cursor: nesw-resize;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: nesw-resize;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .handle-se {
    right: -6px;
    bottom: -6px;
    cursor: nwse-resize;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline.resizing .handle.editor-v2-active-handle {
    border-color: #fff;
    background: #d20b5c;
    box-shadow: 0 0 0 1px #d20b5c;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline .size-measure {
    display: none;
}

body.editor-v2-mode #outline_layers .editor-v2-group-outline.resizing .size-measure {
    display: inline-flex;
}

/* The trim line uses a quiet crop mark instead of the legacy raster scissors. */
body.editor-v2-mode #mask_layers .editor-v2-cut-marker {
    width: auto;
    height: 22px;
    box-sizing: border-box;
    padding: 0 8px;
    border: 1px solid #dfe3e7;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 10px rgba(31, 35, 40, .14);
    color: #555d66;
    font: 600 10px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 20px;
    text-align: center;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
}

body.editor-v2-mode #mask_layers .editor-v2-cut-label {
    display: block;
}

body.editor-v2-mode #mask_layers .editor-v2-cut-marker::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 5px;
    background: #d20b5c;
    content: "";
    transform: translateX(-50%);
}

body.editor-v2-mode.editor-v2-mobile #mask_layers .editor-v2-cut-marker {
    display: none !important;
}


body.editor-v2-mode #outline_layers .outline2.grabbed .handle {
    display: none !important;
}

body.editor-v2-mode #outline_layers .outline2.resizing .handle {
    background-color: #fff !important;
}

body.editor-v2-mode #outline_layers .outline2.resizing .handle.editor-v2-active-handle:not(.handle-rotate) {
    border-color: #fff;
    background-color: #d20b5c !important;
    box-shadow: 0 0 0 1px #d20b5c;
}

body.editor-v2-mode #outline_layers .outline2 .handle-rotate {
    left: 50%;
    width: 22px;
    height: 22px;
    margin-top: -31px;
    margin-left: -11px;
    border: 1px solid #d20b5c;
    border-radius: 50%;
    background-color: #fff !important;
    background-image: url(/edtfiles/images/rotate.png) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    box-shadow: 0 3px 10px rgba(31, 35, 40, .16);
}

body.editor-v2-mode #outline_layers .outline2 .handle-rotate::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #d20b5c;
    content: "";
    transform: translateX(-50%);
}

body.editor-v2-mode #outline_layers .outline2.resizing .handle-rotate.editor-v2-active-handle {
    border-width: 2px;
    box-shadow: 0 3px 10px rgba(31, 35, 40, .16), 0 0 0 2px rgba(210, 11, 92, .14);
}

body.editor-v2-mode #outline_layers .size-measure {
    top: -38px;
    left: -1px;
    z-index: 12;
    min-width: 0;
    width: auto;
    height: 27px;
    align-items: center;
    box-sizing: border-box;
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(31, 35, 40, .14);
    color: #252a30;
    font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    pointer-events: none;
    user-select: none;
}

body.editor-v2-mode #outline_layers .outline2.resizing .size-measure {
    display: inline-flex;
}

body.editor-v2-mode #outline_layers .outline2.editor-v2-rotating .size-measure {
    top: -65px;
}

body.editor-v2-mode #outline_layers .editor-v2-measure-label {
    color: #69727d;
    font-size: 10px;
    font-weight: 600;
}

/* Drag coordinates are a high-frequency instrument, so they appear instantly
   without animation and stay visually neutral over any artwork. */
body.editor-v2-mode #outline_layers .position-measure {
    top: -38px;
    left: -1px;
    z-index: 12;
    min-width: 0;
    height: 27px;
    align-items: center;
    box-sizing: border-box;
    gap: 6px;
    padding: 4px 6px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 16px rgba(31, 35, 40, .14);
    color: #252a30;
    font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.01em;
    pointer-events: none;
    user-select: none;
}

body.editor-v2-mode #outline_layers .outline2.grabbed .position-measure {
    display: inline-flex;
}

body.editor-v2-mode #outline_layers .croppable .position-measure {
    bottom: -38px;
}

body.editor-v2-mode #outline_layers .editor-v2-coordinate-item {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
}

body.editor-v2-mode #outline_layers .editor-v2-coordinate-axis {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f0f2f4;
    color: #69727d;
    font-size: 9px;
    font-weight: 700;
}

body.editor-v2-mode #outline_layers .editor-v2-coordinate-value {
    min-width: 38px;
    text-align: right;
}

body.editor-v2-mode #outline_layers .editor-v2-coordinate-unit {
    color: #8a929b;
    font-size: 9px;
    font-weight: 500;
}

body.editor-v2-mode #outline_layers .editor-v2-coordinate-divider {
    width: 1px;
    height: 15px;
    flex: 0 0 1px;
    background: #e4e7ea;
}

.editor-v2-context-toolbar.has-locked-image-selection #copy_tools,
.editor-v2-context-toolbar.has-locked-image-selection #canvas_tools,
.editor-v2-context-toolbar.has-locked-image-selection #text_tools,
.editor-v2-context-toolbar.has-locked-image-selection #image_tools,
.editor-v2-context-toolbar.has-locked-image-selection #shape_tools,
.editor-v2-context-toolbar.has-locked-image-selection #elements_tools,
.editor-v2-context-toolbar.has-locked-image-selection #align_tools,
.editor-v2-context-toolbar.has-locked-image-selection #arrange_tools,
.editor-v2-context-toolbar.has-locked-image-selection #editor-v2-filters-control,
.editor-v2-context-toolbar.has-locked-image-selection #editor-v2-appearance-control,
.editor-v2-context-toolbar.has-locked-image-selection #editor-v2-remove-background-control {
    display: none !important;
}

/* Locked text follows the same safe state: it remains selectable so the user
   can unlock it, while editing and movement controls stay unavailable. */
.editor-v2-context-toolbar.has-locked-text-selection #copy_tools,
.editor-v2-context-toolbar.has-locked-text-selection #canvas_tools,
.editor-v2-context-toolbar.has-locked-text-selection #text_tools,
.editor-v2-context-toolbar.has-locked-text-selection #image_tools,
.editor-v2-context-toolbar.has-locked-text-selection #shape_tools,
.editor-v2-context-toolbar.has-locked-text-selection #elements_tools,
.editor-v2-context-toolbar.has-locked-text-selection #align_tools,
.editor-v2-context-toolbar.has-locked-text-selection #arrange_tools,
.editor-v2-context-toolbar.has-locked-text-selection #editor-v2-filters-control,
.editor-v2-context-toolbar.has-locked-text-selection #editor-v2-appearance-control,
.editor-v2-context-toolbar.has-locked-text-selection #editor-v2-remove-background-control {
    display: none !important;
}

/* A page background is editable through filters/appearance, lockable and removable, but not movable. */
.editor-v2-context-toolbar.has-background-selection #copy_tools,
.editor-v2-context-toolbar.has-background-selection #canvas_tools,
.editor-v2-context-toolbar.has-background-selection #text_tools,
.editor-v2-context-toolbar.has-background-selection #image_tools,
.editor-v2-context-toolbar.has-background-selection #shape_tools,
.editor-v2-context-toolbar.has-background-selection #elements_tools,
.editor-v2-context-toolbar.has-background-selection #align_tools,
.editor-v2-context-toolbar.has-background-selection #arrange_tools {
    display: none !important;
}

.editor-v2-context-toolbar.has-background-selection #editor-v2-lock-control {
    display: flex !important;
}

/* The normal v2 toolbar replaces the legacy per-object "Опции" menu. */
body.editor-v2-mode #outline_layers [id^="inline_menu_img_"],
body.editor-v2-mode #outline_layers [id^="inline_menu_txt_"] {
    display: none !important;
}

.editor-v2-context-toolbar:not(.has-selection) #toolbar_copy,
.editor-v2-context-toolbar:not(.has-selection) #toolbar_delete {
    pointer-events: none;
    opacity: .38;
}

.editor-v2-context-toolbar #text_tools > * {
    float: none !important;
    flex: 0 0 auto;
}

.editor-v2-mobile-edit-text {
    display: none;
}

.editor-v2-context-toolbar #font_control {
    width: 172px !important;
    min-width: 172px;
    height: 38px;
    margin-right: 6px;
}

.editor-v2-context-toolbar #font_control .drop-down-header {
    display: flex;
    width: 100% !important;
    height: 38px;
    align-items: center;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff !important;
}

.editor-v2-context-toolbar #selected_font {
    width: 132px !important;
    overflow: hidden;
    color: #252a30;
    font-size: 13px;
    line-height: 36px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-context-toolbar #font_control .drop-down-menu {
    top: 43px !important;
    left: 0 !important;
    width: 220px !important;
    max-height: 310px;
    box-sizing: border-box;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 35, 40, .16);
}

.editor-v2-font-search {
    position: sticky;
    z-index: 2;
    top: -6px;
    display: flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    margin: -6px -6px 6px;
    padding: 6px 10px;
    border-bottom: 1px solid #e7e9ec;
    background: #fff;
    color: #7a828c;
}

.editor-v2-font-search input {
    width: 100%;
    min-width: 0;
    height: 34px;
    box-sizing: border-box;
    padding: 0 9px;
    border: 1px solid #d9dde2;
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: #252a30;
    font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-font-search input:focus {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .09);
}

.editor-v2-font-empty {
    padding: 14px 8px;
    color: #777f88;
    font-size: 12px;
    text-align: center;
}

.editor-v2-context-toolbar #font_control .drop-down-item {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    box-sizing: border-box;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 6px;
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-context-toolbar #font_control .drop-down-item:hover {
    background: #f3f5f7;
}

.editor-v2-context-toolbar #font_control > .drop-down-header > .drop-down-header-text {
    display: flex !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-context-toolbar #size_control,
.editor-v2-context-toolbar #text_color_control {
    height: 38px;
    margin-right: 5px;
}

.editor-v2-context-toolbar #text_color_control {
    width: 54px;
}

.editor-v2-context-toolbar .editor-v2-font-size-control {
    position: relative;
    width: 154px;
}

.editor-v2-context-toolbar .editor-v2-font-size-control #font_size_control_header {
    position: relative;
    display: flex;
    width: 154px !important;
    height: 38px;
    align-items: center;
    gap: 0 !important;
    padding: 0;
    overflow: hidden;
}

.editor-v2-context-toolbar .editor-v2-font-size-control #selected_size.editor-v2-font-size-input {
    display: block !important;
    width: auto !important;
    min-width: 0;
    height: 36px;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 0 3px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252a30;
    font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: center;
    cursor: text;
}

.editor-v2-font-size-step,
.editor-v2-font-size-presets-trigger {
    display: inline-flex;
    width: 32px;
    height: 36px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f5862;
    font: 600 18px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.editor-v2-font-size-step:hover,
.editor-v2-font-size-presets-trigger:hover {
    background: #f3f5f7;
    color: #c90854;
}

.editor-v2-font-size-step:focus-visible,
.editor-v2-font-size-presets-trigger:focus-visible {
    outline: 2px solid rgba(210, 11, 92, .28);
    outline-offset: -2px;
}

.editor-v2-font-size-presets-trigger {
    width: 36px;
    flex-basis: 36px;
    border-left: 1px solid #e4e7ea;
    font-size: 10px;
}

.editor-v2-font-size-presets-menu {
    position: absolute;
    top: 44px;
    right: 0;
    left: auto;
    z-index: 3500;
    display: none;
    width: 96px;
    max-height: 300px;
    box-sizing: border-box;
    padding: 4px;
    overflow-y: auto;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 35, 40, .16);
}

.editor-v2-font-size-control.is-presets-open .editor-v2-font-size-presets-menu {
    display: block;
}

.editor-v2-font-size-preset {
    display: block;
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #343a40;
    font: 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.editor-v2-font-size-preset:hover,
.editor-v2-font-size-preset:focus-visible {
    outline: 0;
    background: #fff1f6;
    color: #b9084e;
}

.editor-v2-context-toolbar .editor-v2-font-size-control:focus-within #font_size_control_header {
    border-color: #d20b5c;
    box-shadow: 0 0 0 2px rgba(210, 11, 92, .12);
}

.editor-v2-context-toolbar #size_control .drop-down-header,
.editor-v2-context-toolbar #text_color_control .drop-down-header {
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.editor-v2-context-toolbar #text_color_control .drop-down-header {
    display: inline-flex;
    width: 54px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
}

.editor-v2-context-toolbar .color-control-header .drop-down-header-arrow {
    position: static !important;
    width: 14px;
    height: 16px;
    flex: 0 0 14px;
    margin: 0 !important;
}

.editor-v2-context-toolbar #selected_text_color {
    position: static;
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    box-sizing: border-box;
    border: 1px solid rgba(31, 35, 40, .16);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.editor-v2-context-toolbar #text_color_control_header .drop-down-header-arrow {
    width: 14px;
    height: 16px;
    flex: 0 0 14px;
    margin: 0;
}

.editor-v2-context-toolbar #image_tools {
    gap: 4px;
}

.editor-v2-context-toolbar #image_tools:not([style*="display: none"]) {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
}

.editor-v2-context-toolbar #image_border_color_control,
.editor-v2-context-toolbar #image_border_size_control {
    position: relative;
    height: 38px;
}

.editor-v2-context-toolbar #image_border_color_control_header,
.editor-v2-context-toolbar #image_border_size_control_header {
    display: inline-flex;
    width: auto !important;
    min-width: 0;
    height: 38px;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    padding: 4px 6px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-context-toolbar #image_border_color_control_header {
    width: 54px !important;
}

.editor-v2-context-toolbar #image_border_size_control_header {
    width: 64px !important;
}

.editor-v2-context-toolbar #image_border_color_control_header:hover,
.editor-v2-context-toolbar #image_border_size_control_header:hover,
.editor-v2-context-toolbar #image_border_color_control.open #image_border_color_control_header,
.editor-v2-context-toolbar #image_border_size_control.open #image_border_size_control_header {
    border-color: #c9ced4;
    background: #f7f8fa;
}

.editor-v2-context-toolbar #selected_image_border_color {
    position: static;
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid rgba(31, 35, 40, .16);
    border-radius: 6px;
    background-image: none !important;
    background-position: initial !important;
}

.editor-v2-context-toolbar #bg_color_control {
    position: relative;
    height: 38px;
}

.editor-v2-context-toolbar #bg_color_control_header {
    display: inline-flex;
    width: auto !important;
    min-width: 112px;
    height: 38px;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.editor-v2-context-toolbar #bg_color_control_header:hover,
.editor-v2-context-toolbar #bg_color_control.open #bg_color_control_header {
    border-color: #c9ced4;
    background: #f7f8fa;
}

.editor-v2-context-toolbar #selected_bg_color {
    position: static !important;
    display: block;
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px;
    box-sizing: border-box;
    margin: 0 !important;
    border: 1px solid rgba(31, 35, 40, .16);
    border-radius: 6px;
    background-image: none !important;
    background-position: initial !important;
}

.editor-v2-context-toolbar #bg_color_control_header .toolbar-item-text {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    align-items: center;
    margin: 0 !important;
    color: #4b5159;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.editor-v2-context-toolbar #bg_color_control_header .drop-down-header-arrow {
    position: static !important;
    flex: 0 0 14px;
    margin: 0 0 0 auto !important;
}

.editor-v2-context-toolbar #selected_image_border_width {
    display: inline-flex !important;
    min-width: 0;
    height: auto !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-decoration: none !important;
}

.editor-v2-context-toolbar #image_border_color_control_header .toolbar-item-text,
.editor-v2-context-toolbar #image_border_size_control_header .toolbar-item-text {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    align-items: center;
    margin: 0 !important;
    color: #4b5159;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.editor-v2-context-toolbar #image_border_color_control_header #image_stroke_text,
.editor-v2-context-toolbar #image_border_size_control_header #image_stroke_text {
    display: none !important;
}

.editor-v2-context-toolbar #image_border_color_control_header .drop-down-header-arrow,
.editor-v2-context-toolbar #image_border_size_control_header .drop-down-header-arrow {
    position: static !important;
    flex: 0 0 14px;
    margin: 0 0 0 auto !important;
}

/* Compact dropdowns use a real CSS chevron, anchored inside the button.
   This avoids the legacy sprite wrapping below narrow colour swatches. */
.editor-v2-context-toolbar .color-control-header,
.editor-v2-context-toolbar #image_border_size_control_header,
.editor-v2-context-toolbar #shape_border_size_control_header {
    position: relative !important;
    padding-right: 22px !important;
}

.editor-v2-context-toolbar .drop-down-header .editor-v2-compact-chevron {
    position: absolute !important;
    top: 50%;
    right: 8px;
    display: block;
    width: 6px !important;
    height: 6px !important;
    flex: 0 0 6px !important;
    margin: -5px 0 0 !important;
    border-right: 1.5px solid #59636f;
    border-bottom: 1.5px solid #59636f;
    background: none !important;
    transform: rotate(45deg);
    pointer-events: none;
}

.editor-v2-context-toolbar #text_color_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #image_border_color_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #image_border_size_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #shape_fill_color_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #shape_border_size_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #shape_border_color_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #shape_border_stroke_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #element_color1_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #element_color2_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #element_color3_control_header .editor-v2-compact-chevron {
    top: 50%;
    right: 8px;
    margin: 0 !important;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: center;
}

/* One visual rhythm for property controls across text, images/QR, clipart and shapes. */
.editor-v2-context-toolbar #text_color_control,
.editor-v2-context-toolbar #image_border_color_control,
.editor-v2-context-toolbar #shape_fill_color_control,
.editor-v2-context-toolbar #shape_border_color_control,
.editor-v2-context-toolbar #element_color1_control,
.editor-v2-context-toolbar #element_color2_control,
.editor-v2-context-toolbar #element_color3_control {
    width: 54px !important;
    min-width: 54px !important;
    height: 38px !important;
}

.editor-v2-context-toolbar #text_color_control_header,
.editor-v2-context-toolbar #image_border_color_control_header,
.editor-v2-context-toolbar #shape_fill_color_control_header,
.editor-v2-context-toolbar #shape_border_color_control_header,
.editor-v2-context-toolbar #element_color1_control_header,
.editor-v2-context-toolbar #element_color2_control_header,
.editor-v2-context-toolbar #element_color3_control_header {
    display: inline-flex !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 0 !important;
    box-sizing: border-box;
    padding: 4px 18px 4px 4px !important;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.editor-v2-context-toolbar #selected_text_color,
.editor-v2-context-toolbar #selected_image_border_color,
.editor-v2-context-toolbar #shape_tools #selected_shape_fill_color,
.editor-v2-context-toolbar #shape_tools #selected_shape_border_color,
.editor-v2-context-toolbar #elements_tools #selected_element_color1,
.editor-v2-context-toolbar #elements_tools #selected_element_color2,
.editor-v2-context-toolbar #elements_tools #selected_element_color3 {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    margin: 0 !important;
    border-radius: 6px;
}

.editor-v2-context-toolbar #image_border_size_control,
.editor-v2-context-toolbar #shape_border_size_control {
    width: 64px !important;
    min-width: 64px !important;
    height: 38px !important;
}

.editor-v2-context-toolbar #image_border_size_control_header,
.editor-v2-context-toolbar #shape_border_size_control_header {
    display: inline-flex !important;
    width: 64px !important;
    min-width: 64px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center;
    justify-content: center !important;
    gap: 0 !important;
    box-sizing: border-box;
    padding: 4px 20px 4px 8px !important;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.editor-v2-context-toolbar #selected_image_border_width,
.editor-v2-context-toolbar #selected_shape_border_width {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    color: #26313e;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 20px !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Images and QR share these controls: keep the chevron in its own flex lane. */
.editor-v2-context-toolbar #image_border_color_control_header {
    gap: 6px !important;
    padding: 4px 6px !important;
}

.editor-v2-context-toolbar #image_border_size_control_header {
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 4px 8px !important;
}

.editor-v2-context-toolbar #selected_image_border_width {
    flex: 1 1 auto !important;
    justify-content: center !important;
    text-align: center;
}

.editor-v2-context-toolbar #image_border_color_control_header .editor-v2-compact-chevron,
.editor-v2-context-toolbar #image_border_size_control_header .editor-v2-compact-chevron {
    position: static !important;
    top: auto;
    right: auto;
    margin: 0 !important;
    transform: rotate(45deg);
}

.editor-v2-context-toolbar #shape_border_stroke_control,
.editor-v2-context-toolbar #shape_border_stroke_control_header {
    height: 38px !important;
    min-height: 38px !important;
}

.editor-v2-context-toolbar #shape_border_stroke_control_header {
    position: relative !important;
    padding: 4px 24px 4px 10px !important;
}

.editor-v2-context-toolbar #shape_tools,
.editor-v2-context-toolbar #elements_tools {
    align-items: center;
    gap: 4px;
}

.editor-v2-context-toolbar #elements_tools > .toolbar-item-box {
    height: 38px;
    min-height: 38px;
}

.editor-v2-context-toolbar #image_border_size_control .drop-down-menu {
    top: 43px !important;
    right: 0;
    left: auto !important;
    width: 154px !important;
    max-height: 320px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 35, 40, .16);
}

.editor-v2-context-toolbar #image_border_size_control .drop-down-item {
    min-height: 34px;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.editor-v2-context-toolbar #image_border_size_control .drop-down-item:hover,
.editor-v2-context-toolbar #image_border_size_control .drop-down-item.on {
    background: #fff0f6;
    color: #c10952;
}

.editor-v2-context-toolbar #text_color_control_menu,
.editor-v2-context-toolbar #image_border_color_control_menu,
.editor-v2-context-toolbar #bg_color_control_menu {
    top: 43px !important;
    left: 0 !important;
    display: none;
    grid-template-columns: repeat(11, 26px);
    gap: 6px;
    width: 370px !important;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 35, 40, .18);
}

.editor-v2-context-toolbar #bg_color_control_menu > div:first-child {
    grid-column: 1 / -1;
    margin: 0 !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid #eef0f2 !important;
}

.editor-v2-context-toolbar #remove_bg_image {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #ead1dc !important;
    border-radius: 8px !important;
    background: #fff7fa !important;
    color: #bd0c50 !important;
    box-shadow: none !important;
    font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    cursor: pointer;
}

.editor-v2-context-toolbar #remove_bg_image:hover,
.editor-v2-context-toolbar #remove_bg_image:focus {
    border-color: #d20b5c !important;
    background: #fff0f6 !important;
    outline: 0;
}

.editor-v2-context-toolbar #text_color_control.open #text_color_control_menu,
.editor-v2-context-toolbar #image_border_color_control.open #image_border_color_control_menu,
.editor-v2-context-toolbar #bg_color_control.open #bg_color_control_menu {
    display: grid !important;
}

.editor-v2-context-toolbar #text_color_control_menu .color-pick,
.editor-v2-context-toolbar #image_border_color_control_menu .color-pick,
.editor-v2-context-toolbar #bg_color_control_menu .color-pick,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-pick,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-pick,
.editor-v2-context-toolbar #element_color1_control_menu .color-pick,
.editor-v2-context-toolbar #element_color2_control_menu .color-pick,
.editor-v2-context-toolbar #element_color3_control_menu .color-pick {
    float: none;
    width: 26px;
    height: 26px;
    box-sizing: border-box;
    border: 1px solid rgba(31, 35, 40, .14);
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.editor-v2-context-toolbar #text_color_control_menu .color-pick:hover,
.editor-v2-context-toolbar #text_color_control_menu .color-pick.on,
.editor-v2-context-toolbar #image_border_color_control_menu .color-pick:hover,
.editor-v2-context-toolbar #image_border_color_control_menu .color-pick.on,
.editor-v2-context-toolbar #bg_color_control_menu .color-pick:hover,
.editor-v2-context-toolbar #bg_color_control_menu .color-pick.on,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-pick:hover,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-pick.on,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-pick:hover,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-pick.on,
.editor-v2-context-toolbar #element_color1_control_menu .color-pick:hover,
.editor-v2-context-toolbar #element_color1_control_menu .color-pick.on,
.editor-v2-context-toolbar #element_color2_control_menu .color-pick:hover,
.editor-v2-context-toolbar #element_color2_control_menu .color-pick.on,
.editor-v2-context-toolbar #element_color3_control_menu .color-pick:hover,
.editor-v2-context-toolbar #element_color3_control_menu .color-pick.on {
    border-color: #d20b5c;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .14);
}

.editor-v2-context-toolbar #text_color_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #image_border_color_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #bg_color_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #element_color1_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #element_color2_control_menu .color-control-menu__colorpicker,
.editor-v2-context-toolbar #element_color3_control_menu .color-control-menu__colorpicker {
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid #eef0f2;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__design-colors {
    grid-column: 1 / -1;
    box-sizing: border-box;
    padding: 10px 0 0;
    border-top: 1px solid #eef0f2;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__design-colors[hidden] {
    display: none !important;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__design-colors-label {
    display: block;
    margin: 0 0 8px;
    color: #65707d;
    font: 600 11px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__design-colors-swatches {
    display: grid;
    grid-template-columns: repeat(11, 26px);
    gap: 5px;
}

.editor-v2-context-toolbar [data-control-menu="color"] .editor-v2-design-color {
    appearance: none;
    margin: 0 !important;
    padding: 0;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__eyedropper {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
    color: #495462;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__eyedropper svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__eyedropper:hover,
.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__eyedropper:focus,
.editor-v2-context-toolbar [data-control-menu="color"] .color-control-menu__eyedropper.is-active {
    border-color: #d20b5c;
    background: #fff0f6;
    color: #c10952;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .14);
}

.editor-v2-context-toolbar #text_color_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #image_border_color_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #bg_color_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #shape_border_color_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #element_color1_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #element_color2_control_menu .color-control-menu__colorpicker input[type="color"],
.editor-v2-context-toolbar #element_color3_control_menu .color-control-menu__colorpicker input[type="color"] {
    width: 100%;
    min-width: 0;
    height: 42px;
    flex: 1 1 auto;
    padding: 3px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.editor-v2-context-toolbar #text_color_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #image_border_color_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #bg_color_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #element_color1_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #element_color2_control_menu .color-control-menu__colorpicker .btn,
.editor-v2-context-toolbar #element_color3_control_menu .color-control-menu__colorpicker .btn {
    min-width: 92px;
    height: 42px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid #d20b5c;
    border-radius: 8px;
    background: #d20b5c;
    color: #fff;
    box-shadow: none;
    font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.editor-v2-context-toolbar #text_color_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #text_color_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #image_border_color_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #image_border_color_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #bg_color_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #bg_color_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #shape_fill_color_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #shape_border_color_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #element_color1_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #element_color1_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #element_color2_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #element_color2_control_menu .color-control-menu__colorpicker .btn:focus,
.editor-v2-context-toolbar #element_color3_control_menu .color-control-menu__colorpicker .btn:hover,
.editor-v2-context-toolbar #element_color3_control_menu .color-control-menu__colorpicker .btn:focus {
    border-color: #b9084e;
    background: #b9084e;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(210, 11, 92, .16);
}

.editor-v2-context-toolbar #top_toolbar_bold,
.editor-v2-context-toolbar #top_toolbar_italic,
.editor-v2-context-toolbar .gravity_tool {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 0 1px;
}

.editor-v2-context-toolbar #top_toolbar_bold.on,
.editor-v2-context-toolbar #top_toolbar_italic.on {
    background: #fff0f6;
    color: #c30a54;
    box-shadow: inset 0 0 0 1px rgba(210, 11, 92, .22);
}

.editor-v2-context-toolbar #align_control_header,
.editor-v2-context-toolbar #arrange_control_header {
    display: inline-flex;
    width: auto !important;
    height: 38px;
    min-height: 38px;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
    color: #343a42;
    cursor: pointer;
}

.editor-v2-context-toolbar #align_control_header:hover,
.editor-v2-context-toolbar #arrange_control_header:hover,
.editor-v2-context-toolbar #align_control.open #align_control_header,
.editor-v2-context-toolbar #arrange_control.open #arrange_control_header {
    border-color: #c8ced5;
    background: #f7f8fa;
}

.editor-v2-context-toolbar #align_control_header .editor-v2-toolbar-icon,
.editor-v2-context-toolbar #align_control_header .editor-v2-align-chevron,
.editor-v2-context-toolbar #arrange_control_header .editor-v2-toolbar-icon,
.editor-v2-context-toolbar #arrange_control_header .editor-v2-arrange-chevron {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.editor-v2-context-toolbar #align_control_header .editor-v2-align-chevron,
.editor-v2-context-toolbar #arrange_control_header .editor-v2-arrange-chevron {
    color: #69717b;
    font-size: 10px;
}

.editor-v2-context-toolbar #align_control_header .drop-down-header-text,
.editor-v2-context-toolbar #arrange_control_header .drop-down-header-text {
    display: inline-flex;
    width: auto !important;
    height: auto !important;
    align-items: center;
    margin: 0 !important;
    color: inherit;
    font-size: 13px !important;
    line-height: 1;
}

.editor-v2-context-toolbar #align_control .drop-down-menu {
    top: 44px !important;
    width: 292px !important;
    padding: 8px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 35, 40, .18);
}

.editor-v2-context-toolbar #align_control .drop-down-menu .toolbar-item-line {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 13px;
    border-radius: 7px;
    color: #343a41;
    font-size: 13px;
    cursor: pointer;
}

.editor-v2-context-toolbar #align_control .drop-down-menu .toolbar-item-text {
    width: auto;
    font-size: 14px;
    line-height: 20px;
}

.editor-v2-context-toolbar #align_control .drop-down-menu .toolbar-item-icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
}

.editor-v2-context-toolbar #align_control .drop-down-menu hr {
    margin: 6px 4px;
    border: 0;
    border-top: 1px solid #eceef1;
}

.editor-v2-property-control {
    position: relative;
    display: none;
    min-height: 38px;
    margin: 0 4px;
}

.editor-v2-property-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #2c3137;
    font: 13px Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.editor-v2-property-button:hover,
.editor-v2-property-button:focus-visible,
.editor-v2-property-control.open .editor-v2-property-button {
    background: #f1f3f5;
}

#editor-v2-lock-control {
    margin: 0 4px;
    border: 1px solid transparent;
}

#editor-v2-lock-control.is-active {
    border-color: rgba(210, 11, 92, .24);
    background: #fff0f6;
    color: #c10952;
}

.editor-v2-property-popover {
    position: absolute;
    z-index: 4200;
    top: 46px;
    right: 0;
    left: auto;
    display: none;
    width: 340px;
    max-height: min(680px, calc(100vh - 150px));
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(31, 35, 40, .18);
}

/* Appearance has compact controls and nested selects. Let the whole panel fit
   its contents so the last select is not clipped by an inner scrollbar. */
#editor-v2-appearance-control .editor-v2-property-popover {
    min-height: 240px;
    max-height: none;
    overflow: visible !important;
}

.editor-v2-effect-section-title {
    margin: 4px 0 9px;
    color: #252a30;
    font-size: 12px;
    font-weight: 700;
}

.editor-v2-image-presets {
    margin: -2px -2px 13px;
    padding-bottom: 13px;
    border-bottom: 1px solid #edf0f2;
}

.editor-v2-image-preset-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.editor-v2-image-preset {
    min-width: 0;
    padding: 3px 3px 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #4f565f;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.editor-v2-image-preset:hover,
.editor-v2-image-preset:focus,
.editor-v2-image-preset.is-selected {
    border-color: #d20b5c;
    outline: 0;
    background: #fff5f9;
}

.editor-v2-image-preset:active {
    transform: scale(.97);
}

.editor-v2-image-preset-preview {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 5px;
    border-radius: 5px;
    background: #eef1f3 center / cover no-repeat;
}

.editor-v2-image-preset strong {
    display: block;
    overflow: hidden;
    font-size: 10px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-image-adjustment {
    min-height: 32px;
    padding-top: 3px;
}

.editor-v2-image-reset {
    width: 100%;
    min-height: 34px;
    margin: 5px 0 13px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    color: #4f565f;
    font-size: 11px;
    cursor: pointer;
}

.editor-v2-image-reset:hover,
.editor-v2-image-reset:focus {
    border-color: #d20b5c;
    outline: 0;
    background: #fff8fb;
    color: #b9084e;
}

.editor-v2-property-control.open .editor-v2-property-popover {
    display: block;
}

.editor-v2-effect-select,
.editor-v2-effect-range {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    color: #4f565f;
    font-size: 12px;
}

.editor-v2-effect-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 132px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 6px;
    background: #fff;
    color: #252a30;
    font: 12px Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms cubic-bezier(.23, 1, .32, 1);
}

.editor-v2-effect-select-button:hover,
.editor-v2-effect-select-button:focus,
.editor-v2-effect-select.open .editor-v2-effect-select-button {
    border-color: #d20b5c;
    outline: 0;
    background: #fff8fb;
}

.editor-v2-effect-select-button:active {
    transform: scale(.97);
}

.editor-v2-effect-select-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-effect-select.open .editor-v2-effect-select-button i {
    transform: rotate(180deg);
}

.editor-v2-effect-options {
    position: absolute;
    z-index: 2;
    top: 35px;
    right: 0;
    display: none;
    width: 168px;
    box-sizing: border-box;
    padding: 4px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 35, 40, .16);
    transform-origin: top right;
}

.editor-v2-effect-select.open .editor-v2-effect-options {
    display: block;
}

.editor-v2-effect-option {
    display: block;
    width: 100%;
    min-height: 32px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #252a30;
    font: 12px Arial, Helvetica, sans-serif;
    text-align: left;
    cursor: pointer;
}

.editor-v2-effect-option:hover,
.editor-v2-effect-option:focus {
    outline: 0;
    background: #f4f5f7;
}

.editor-v2-effect-option.is-selected {
    background: #fff0f6;
    color: #c10952;
    font-weight: 700;
}

.editor-v2-effect-range {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding-top: 7px;
}

.editor-v2-effect-range strong {
    min-width: 0;
    overflow: hidden;
    color: #252a30;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.editor-v2-effect-range input {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 0 6px;
    accent-color: #d20b5c;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.editor-v2-effect-range input::-webkit-slider-thumb {
    cursor: grab;
}

.editor-v2-effect-range input:active::-webkit-slider-thumb {
    cursor: grabbing;
}

.editor-v2-context-toolbar #arrange_control .drop-down-menu {
    top: 44px !important;
    right: 0 !important;
    left: auto !important;
    width: 292px !important;
    height: auto !important;
    padding: 8px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 35, 40, .18);
}

.editor-v2-context-toolbar #arrange_control .drop-down-item,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line {
    display: flex !important;
    width: 100% !important;
    position: relative;
    min-height: 48px;
    align-items: center;
    justify-content: flex-start !important;
    gap: 12px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 5px 8px;
    border: 0 !important;
    border-radius: 9px;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #343a42;
    cursor: pointer;
}

.editor-v2-context-toolbar #arrange_control .editor-v2-arrange-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f1f3f5;
    color: #4f5761;
}

.editor-v2-context-toolbar #arrange_control .editor-v2-arrange-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.editor-v2-context-toolbar #arrange_control .editor-v2-arrange-icon svg .is-accent {
    fill: rgba(210, 11, 92, .12);
    stroke: #c10952;
}

.editor-v2-context-toolbar #arrange_control .toolbar-item-text {
    width: auto !important;
    color: inherit;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}

.editor-v2-context-toolbar #arrange_control .editor-v2-arrange-step-start {
    margin-top: 7px !important;
}

.editor-v2-context-toolbar #arrange_control .editor-v2-arrange-step-start::before {
    position: absolute;
    top: -4px;
    right: 8px;
    left: 8px;
    height: 1px;
    background: #eef0f2;
    content: '';
}

.editor-v2-context-toolbar #arrange_control .drop-down-item:hover,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:hover {
    background: #f7f8fa !important;
    color: #1f252b;
}

.editor-v2-context-toolbar #arrange_control .drop-down-item:focus,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.editor-v2-context-toolbar #arrange_control .drop-down-item.on,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line.on,
.editor-v2-context-toolbar #arrange_control .drop-down-item:active,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:active {
    border: 0 !important;
    outline: 0 !important;
    background: #fff0f6 !important;
    color: #a90748;
    box-shadow: none !important;
}

.editor-v2-context-toolbar #arrange_control .drop-down-item:hover .editor-v2-arrange-icon,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:hover .editor-v2-arrange-icon,
.editor-v2-context-toolbar #arrange_control .drop-down-item:focus-visible .editor-v2-arrange-icon,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:focus-visible .editor-v2-arrange-icon {
    background: #fff0f6;
    color: #c10952;
}

.editor-v2-context-toolbar #arrange_control .drop-down-item:focus-visible,
.editor-v2-context-toolbar #arrange_control .toolbar-item-line:focus-visible {
    background: #f7f8fa !important;
    box-shadow: inset 0 0 0 2px rgba(210, 11, 92, .2) !important;
}

.editor-v2-history-slot #undo_tools {
    display: flex !important;
    float: none !important;
    align-items: center;
}

.editor-v2-history-slot .toolbar-divider,
.editor-v2-history-slot .toolbar-item-text {
    display: none;
}

.editor-v2-history-slot .toolbar-item-box {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    border-radius: 8px;
    color: #d20b5c;
}

.editor-v2-history-slot .toolbar-item-icon {
    display: none !important;
}

.editor-v2-history-slot .editor-v2-toolbar-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 17px;
    line-height: 18px;
}

.editor-v2-history-slot .toolbar-item-box:hover:not(.toolbar-item-disabled) {
    background: #fff0f6;
}

.editor-v2-history-slot .toolbar-item-box.toolbar-item-disabled {
    color: #9ca3ad;
    pointer-events: none;
    cursor: default;
}

.editor-v2-history-slot .toolbar-item-box.toolbar-item-disabled .editor-v2-toolbar-icon {
    opacity: .38;
}

.editor-v2-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 42px 48px 24px;
    background: #f6f7f9;
}

.editor-v2-stage .editor__body {
    display: flex;
    width: 100%;
    min-width: 720px;
    min-height: 420px;
    align-items: center;
    justify-content: center;
}

.editor-v2-stage #design_tool {
    float: none !important;
    width: auto !important;
    min-width: 700px;
    margin: 0 auto;
    transform-origin: center center;
}

.editor-v2-stage #tool_placeholder {
    min-height: 430px;
    overflow: visible;
}

.editor-v2-stage #canvas {
    margin-right: auto;
    margin-left: auto;
}

.editor-v2-selection-assistant {
    position: absolute;
    z-index: 2700;
    bottom: 80px;
    left: 50%;
    display: none;
    width: min(760px, calc(100% - 64px));
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    background: #fff;
    color: #606873;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 14px rgba(31, 35, 40, .06);
    pointer-events: none;
    transform: translateX(-50%);
}

.editor-v2-selection-assistant.is-visible {
    display: flex;
    pointer-events: auto;
}

.editor-v2-selection-assistant.is-multi {
    width: auto;
    max-width: min(760px, calc(100% - 64px));
    min-height: 44px;
    flex-direction: row;
    justify-content: center;
    gap: 9px;
    padding: 3px 5px 3px 11px;
    text-align: left;
}

.editor-v2-selection-summary {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    white-space: nowrap;
}

.editor-v2-selection-summary strong {
    flex: 0 0 auto;
    color: #252a30;
    font-size: 13px;
}

.editor-v2-selection-summary span {
    overflow: hidden;
    color: #68717c;
    text-overflow: ellipsis;
}

.editor-v2-selection-assistant i {
    color: #d20b5c;
    font-size: 15px;
}

.editor-v2-selection-assistant kbd {
    padding: 1px 5px;
    border: 1px solid #d7dbe0;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #f7f8fa;
    color: #31363c;
    font: 600 11px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-selection-assistant button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid #d20b5c;
    border-radius: 7px;
    background: #d20b5c;
    color: #fff;
    font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.editor-v2-selection-assistant.is-multi button {
    width: 158px;
    min-height: 30px;
    flex: 0 0 auto;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    text-align: center;
}

.editor-v2-pages-tray {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    max-width: 760px;
    padding: 4px 0;
}

.editor-v2-pages-tray.is-canvas-centered {
    position: absolute;
    grid-column: auto;
    transform: translateX(-50%);
}

.editor-v2-pages-tray:empty {
    display: none;
}

.editor-v2-pages-tray #page_navigation {
    position: static !important;
    display: flex;
    width: max-content;
    max-width: 100%;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-color: #aeb5bd transparent;
    scrollbar-width: thin;
    white-space: nowrap;
}

.editor-v2-pages-tray #page_navigation::-webkit-scrollbar {
    height: 8px;
}

.editor-v2-pages-tray #page_navigation::-webkit-scrollbar-track {
    background: transparent;
}

.editor-v2-pages-tray #page_navigation::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #aeb5bd;
    background-clip: padding-box;
}

.editor-v2-pages-tray #page_navigation > * {
    flex: 0 0 auto;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item {
    position: relative;
    display: flex;
    min-width: 76px;
    min-height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 4px 6px !important;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f7f8fa;
    color: #3f464f;
    cursor: pointer;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item:hover {
    border-color: #cfd4da;
    background: #fff;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item.is-dragging {
    opacity: .45;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item.is-drop-target {
    border-color: #d20b5c;
    box-shadow: inset 3px 0 0 #d20b5c;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item.on {
    border-color: transparent;
    background: #fff;
    box-shadow: inset 0 -2px 0 #d20b5c;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item img {
    display: block !important;
    width: 58px;
    height: 38px;
    margin: 0 auto 5px !important;
    object-fit: contain;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item img.editor-v2-legacy-page-thumb {
    display: none !important;
}

.editor-v2-page-preview {
    display: flex;
    width: 76px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    pointer-events: none;
}

.editor-v2-page-preview-surface {
    position: relative;
    overflow: hidden;
    border: 1px solid #aeb5bd;
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 35, 40, .16);
}

.editor-v2-page-preview-image,
.editor-v2-page-preview-text {
    position: absolute;
    display: block;
    box-sizing: border-box;
    overflow: hidden;
    transform-origin: center center;
}

.editor-v2-page-preview-image {
    background-position: center;
    background-repeat: no-repeat;
}

.editor-v2-page-preview-text {
    line-height: 1.05;
    white-space: pre-wrap;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item > div {
    margin: 0 !important;
    color: inherit;
    font-size: 11px;
    line-height: 14px;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item:not(.is-numbered) > div:not(.editor-v2-page-preview),
.editor-v2-pages-tray #page_navigation_add > div {
    display: none !important;
}

.editor-v2-pages-tray #page_navigation_add {
    min-width: 46px;
    min-height: 46px;
    padding: 3px !important;
    border: 0;
    background: transparent;
    color: #5d6570;
}

.editor-v2-pages-tray #page_navigation_add img {
    display: none !important;
}

.editor-v2-pages-tray #page_navigation_add::before {
    content: "";
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background:
        linear-gradient(#d20b5c, #d20b5c) center / 14px 1px no-repeat,
        linear-gradient(#d20b5c, #d20b5c) center / 1px 14px no-repeat,
        #fff;
    color: #d20b5c;
}

.editor-v2-pages-tray #page_navigation_add:hover::before {
    border-color: #d20b5c;
}

/* Final state guards belong after legacy toolbar/page rules: the old editor
   writes inline display values while a design is loading. In v2 those values
   must not flash image controls without a selection or cover the new page UI. */
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #image_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #text_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #shape_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #elements_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #align_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #arrange_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #editor-v2-filters-control,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #editor-v2-appearance-control,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #editor-v2-lock-control,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-selection) #editor-v2-remove-background-control {
    display: none !important;
}

body.editor-v2-mode #page_navigation_add > img {
    display: none !important;
}

.editor-v2-pages-tray #page_navigation .page-navigation-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: #b9084e;
    opacity: .72;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(31, 35, 40, .16);
    transition: opacity .12s ease, background-color .12s ease;
}

.editor-v2-pages-tray #page_navigation .page-navigation-item:hover .page-navigation-delete,
.editor-v2-pages-tray #page_navigation .page-navigation-delete:focus-visible {
    opacity: 1;
}

.editor-v2-pages-tray #page_navigation .page-navigation-delete:hover,
.editor-v2-pages-tray #page_navigation .page-navigation-delete:focus-visible {
    background: #fff0f5;
    outline: 2px solid rgba(210, 11, 92, .25);
}

@media (hover: none) {
    .editor-v2-pages-tray #page_navigation .page-navigation-delete {
        opacity: 1;
    }
}

.editor-v2-bottom-tools {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 760px) auto;
    flex: 0 0 72px;
    align-items: center;
    column-gap: 12px;
    padding: 0 20px;
    background: #f6f7f9;
}

.editor-v2-bottom-spacer {
    grid-column: 1;
}

.editor-v2-bottom-actions {
    display: flex;
    grid-column: 3;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
    gap: 6px;
}

.editor-v2-bottom-tools.is-pages-crowded {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px 44px;
    flex-basis: 116px;
    row-gap: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.editor-v2-bottom-tools.is-pages-crowded .editor-v2-bottom-spacer {
    display: none;
}

.editor-v2-bottom-tools.is-pages-crowded .editor-v2-pages-tray {
    top: 2px;
}

.editor-v2-bottom-tools.is-pages-crowded .editor-v2-bottom-actions {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
}

.editor-v2-zoom-slot {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.editor-v2-view-slot {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.editor-v2-snap-slot {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.editor-v2-zoom-slot #zoom_tools,
.editor-v2-view-slot #view_tools {
    position: static !important;
    display: flex !important;
    float: none !important;
    min-height: 42px;
    align-items: center;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.editor-v2-view-slot #view_tools {
    padding: 0;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
}

.editor-v2-zoom-slot .toolbar-divider,
.editor-v2-zoom-slot .toolbar-item-text {
    display: none;
}

.editor-v2-zoom-slot .toolbar-item-box {
    display: flex;
    width: 32px;
    height: 36px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #252a30;
    cursor: pointer;
}

.editor-v2-zoom-group {
    display: flex;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
}

.editor-v2-zoom-slot .toolbar-item-box:hover:not(.toolbar-item-disabled) {
    background: #f4f5f7;
}

.editor-v2-zoom-slot #toolbar_fullscreen {
    margin-left: 0;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
}

.editor-v2-zoom-slot .toolbar-item-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.editor-v2-zoom-value {
    display: flex;
    width: 48px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    box-sizing: border-box;
    border: 0;
    border-right: 1px solid #e4e7ea;
    border-left: 1px solid #e4e7ea;
    background: #fff;
    color: #30363d;
    font: 13px Arial, Helvetica, sans-serif;
    cursor: default;
}

.editor-v2-zoom-value:after {
    content: '';
}

.editor-v2-view-slot #view_options_control_header {
    display: flex;
    min-width: 80px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 7px;
    color: #30363d;
    cursor: pointer;
}

.editor-v2-view-slot #view_options_control.open #view_options_control_header {
    border: 0;
    outline: 0;
    background: #fff1f6;
    box-shadow: none;
    color: #c90854;
}

.editor-v2-view-trigger-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.editor-v2-view-chevron {
    color: #7b828b;
    font-size: 12px;
}

.editor-v2-view-slot .drop-down-menu {
    right: 0;
    bottom: 44px !important;
    left: auto;
    width: 236px !important;
    display: none !important;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    box-shadow: 0 8px 24px rgba(31, 35, 40, .14);
}

.editor-v2-view-slot .editor-v2-view-row {
    display: flex !important;
    min-height: 40px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 7px;
    border: 0;
    background: #fff;
    color: #333941;
    cursor: pointer;
}

.editor-v2-view-slot .editor-v2-view-row * {
    cursor: pointer;
}

.editor-v2-view-slot .editor-v2-view-row:hover {
    background: #f4f5f7;
}

.editor-v2-view-slot .editor-v2-view-row.on {
    background: #fff1f6;
    color: #d20b5c;
}

.editor-v2-view-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 18px;
    text-align: center;
}

.editor-v2-view-slot .editor-v2-view-row .toolbar-item-text {
    width: 100%;
    color: inherit;
    font-size: 12px !important;
}

.editor-v2-view-slot #show_ruler_control .toolbar-item-text,
.editor-v2-view-slot #editor-v2-cut-line-control .toolbar-item-text {
    flex: 1 1 auto;
}

.editor-v2-cut-line-view-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-dasharray: 3 2;
}

.editor-v2-view-switch {
    position: relative;
    width: 34px;
    height: 20px;
    flex: 0 0 34px;
    margin-left: auto;
    border-radius: 999px;
    background: #d9dde2;
    box-shadow: inset 0 0 0 1px rgba(54, 61, 69, .08);
    transition: background-color .15s ease;
}

.editor-v2-view-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 35, 40, .28);
    transition: transform .15s ease;
}

.editor-v2-view-slot .editor-v2-view-row.on .editor-v2-view-switch {
    background: #d20b5c;
}

.editor-v2-view-slot .editor-v2-view-row.on .editor-v2-view-switch::after {
    transform: translateX(14px);
}

.editor-v2-view-slot #editor-v2-cut-line-control.is-disabled {
    background: #fff;
    color: #8a919a;
    cursor: not-allowed;
    opacity: .52;
}

.editor-v2-view-slot #editor-v2-cut-line-control.is-unavailable {
    display: none !important;
}

.editor-v2-view-slot #editor-v2-cut-line-control.is-disabled * {
    cursor: not-allowed;
}

.editor-v2-snap-slot #snap_control {
    display: flex !important;
    width: auto;
    min-width: 104px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 11px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
    color: #333941;
    cursor: pointer;
}

.editor-v2-snap-slot #snap_control:hover {
    border-color: #cfd5db;
    background: #f4f5f7;
}

.editor-v2-snap-slot #snap_control:focus-visible {
    outline: 2px solid rgba(210, 11, 92, .28);
    outline-offset: 2px;
}

.editor-v2-snap-slot #snap_control.on {
    border-color: #ed176f;
    background: #fff1f6;
    color: #d20b5c;
}

.editor-v2-snap-slot #snap_control .toolbar-item-text {
    width: auto;
    color: inherit;
    font-size: 13px !important;
    line-height: 18px;
    white-space: nowrap;
}

.editor-v2-snap-slot .editor-v2-view-icon {
    flex: 0 0 18px;
}

.editor-v2-view-slot #view_options_control.open .drop-down-menu {
    display: flex !important;
}

.editor-v2-mode #horizontal_ruler_placeholder,
.editor-v2-mode #vertical_ruler_placeholder {
    pointer-events: none;
}

.editor-v2-mode .horizontal-ruler,
.editor-v2-mode .vertical-ruler {
    max-width: none;
    max-height: none;
    image-rendering: auto;
}

.editor-v2-ruler-scale {
    position: absolute;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 8px rgba(31, 35, 40, .09);
    color: #626b75;
}

.editor-v2-ruler-scale-horizontal {
    height: 28px;
}

.editor-v2-ruler-scale-vertical {
    width: 36px;
}

.editor-v2-ruler-tick {
    position: absolute;
    background: #aeb5bd;
}

.editor-v2-ruler-scale-horizontal .editor-v2-ruler-tick {
    bottom: 0;
    width: 1px;
    height: 6px;
}

.editor-v2-ruler-scale-horizontal .editor-v2-ruler-tick.is-major {
    height: 11px;
    background: #626b75;
}

.editor-v2-ruler-scale-vertical .editor-v2-ruler-tick {
    right: 0;
    width: 6px;
    height: 1px;
}

.editor-v2-ruler-scale-vertical .editor-v2-ruler-tick.is-major {
    width: 11px;
    background: #626b75;
}

.editor-v2-ruler-label {
    position: absolute;
    color: #626b75;
    font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    white-space: nowrap;
}

.editor-v2-ruler-scale-horizontal .editor-v2-ruler-label {
    top: 4px;
    transform: translateX(-50%);
}

.editor-v2-ruler-scale-vertical .editor-v2-ruler-label {
    left: 4px;
    transform: translateY(-50%);
}

.editor-v2-ruler-label.is-start {
    transform: none;
}

.editor-v2-ruler-scale-horizontal .editor-v2-ruler-label.is-start {
    left: 4px !important;
}

.editor-v2-ruler-scale-vertical .editor-v2-ruler-label.is-start {
    top: 4px !important;
}

.editor-v2-ruler-scale-horizontal .editor-v2-ruler-label.is-end {
    transform: translateX(-100%);
}

.editor-v2-ruler-scale-vertical .editor-v2-ruler-label.is-end {
    transform: translateY(-100%);
}

.editor-v2-status {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    gap: 26px;
    padding: 0 24px 0 104px;
    border-top: 1px solid #e1e4e8;
    background: #fff;
    color: #4f565f;
    font-size: 12px;
}

.editor-v2-prepress-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f565f;
    font: inherit;
    white-space: nowrap;
}

button.editor-v2-prepress-status {
    min-height: 28px;
    margin: 0 -4px;
    padding: 0 4px;
    border-radius: 6px;
    cursor: pointer;
}

button.editor-v2-prepress-status:hover,
button.editor-v2-prepress-status:focus-visible {
    color: #c10952;
}

button.editor-v2-prepress-status:focus-visible {
    outline: 2px solid rgba(210, 11, 92, .32);
    outline-offset: 1px;
}

.editor-v2-prepress-status.is-on {
    color: #3f8a3c;
}

.editor-v2-prepress-status.is-off {
    color: #a56600;
}

.editor-v2-prepress-status.is-unavailable {
    color: #9299a2;
    cursor: default;
}

.editor-v2-prepress-status i {
    flex: 0 0 auto;
    font-size: 13px;
}

.editor-v2-status-document {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: #2f353c;
    font-weight: 600;
    white-space: nowrap;
}

.editor-v2-status-divider {
    width: 1px;
    height: 16px;
    background: #dfe3e7;
}

.editor-v2-status .editor-v2-size.has-tooltip::after {
    top: auto;
    bottom: calc(100% + 12px);
    transform: translate(-50%, 4px);
}

.editor-v2-status .editor-v2-size.has-tooltip::before {
    top: auto;
    bottom: calc(100% + 6px);
    border-top: 6px solid #263746;
    border-right: 6px solid transparent;
    border-bottom: 0;
    border-left: 6px solid transparent;
}

.editor-v2-status .editor-v2-size.has-tooltip:hover::after,
.editor-v2-status .editor-v2-size.has-tooltip:focus::after {
    transform: translate(-50%, 0);
}

.editor-v2-status-validation {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    font-weight: 600;
}

.editor-v2-status-validation i {
    flex: 0 0 auto;
    font-size: 14px;
}

.editor-v2-status-validation span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-v2-status-validation.is-pending {
    color: #6a717a;
}

.editor-v2-status-validation.is-ok {
    color: #3f8a3c;
}

.editor-v2-status-validation.is-warning {
    color: #b56a00;
}

.editor-v2-status-validation.is-error {
    color: #c21b49;
}

.editor-v2-mode #bottom_toolbar_placeholder,
.editor-v2-mode .top-nav,
.editor-v2-mode #status_bar,
.editor-v2-mode #bottom_toolbar {
    display: none !important;
}

.editor-v2-snap-guide {
    position: absolute;
    z-index: 70;
    display: none;
    background: #ed176f;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .72);
    pointer-events: none;
}

.editor-v2-snap-guide.is-visible {
    display: block;
}

.editor-v2-snap-guide-x {
    width: 1px;
    height: 100%;
}

.editor-v2-snap-guide-y {
    width: 100%;
    height: 1px;
}

/* Keep legacy QR nodes in their final geometry before the v2 JS decorates them. */
.editor-v2-mode .editor-v2-panel-body #user_qrcodes > div {
    position: relative !important;
    float: none !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 126px !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #eceef0;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.editor-v2-mode .editor-v2-panel-body #user_qrcodes > div > img {
    display: block;
    width: 100% !important;
    height: 94px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 8px;
    object-fit: contain;
    box-sizing: border-box;
}

/* Selection state is authoritative.  A few legacy toolbar rules below the
   original guards use display:flex!important; keep them from leaking image
   controls into shapes (or any controls into an empty canvas). */
.editor-v2-context-toolbar:not(.has-selection) #image_tools,
.editor-v2-context-toolbar:not(.has-selection) #shape_tools,
.editor-v2-context-toolbar:not(.has-selection) #text_tools,
.editor-v2-context-toolbar:not(.has-selection) #elements_tools,
.editor-v2-context-toolbar:not(.has-selection) #arrange_tools,
.editor-v2-context-toolbar.has-shape-selection #image_tools,
.editor-v2-context-toolbar.has-shape-selection #text_tools,
.editor-v2-context-toolbar.has-shape-selection #elements_tools {
    display: none !important;
}

/* The selected object type, not stale inline styles from the legacy editor,
   decides which property group is visible. */
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-image-selection) #image_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-text-selection) #text_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-shape-selection) #shape_tools,
body.editor-v2-mode #editor-v2-context-toolbar:not(.has-element-selection) #elements_tools {
    display: none !important;
}

.editor-v2-context-toolbar.has-shape-selection #shape_tools {
    display: flex !important;
}

/* A locked clipart or shape keeps one clear escape hatch. Type-specific
   legacy rules below must not bring its editing tools back. */
body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #shape_tools,
body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #elements_tools,
body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #editor-v2-filters-control,
body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #editor-v2-appearance-control,
body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #arrange_tools {
    display: none !important;
}

body.editor-v2-mode #editor-v2-context-toolbar.has-locked-image-selection #editor-v2-lock-control {
    display: flex !important;
}

body.editor-v2-context-menu-open .editor-v2-context-toolbar,
body.editor-v2-context-menu-open .editor-v2-context-toolbar #top_toolbar {
    overflow: visible !important;
}

/* Legacy dropdowns have an absolute fallback position. Keep that setup frame
   invisible while v2 measures the menu and commits its final fixed position. */
body.editor-v2-context-menu-positioning #editor-v2-context-toolbar .drop-down.open > .drop-down-menu,
body.editor-v2-context-menu-positioning #editor-v2-context-toolbar .editor-v2-property-control.open > .editor-v2-property-popover {
    opacity: 0 !important;
    pointer-events: none !important;
}

.editor-v2-context-toolbar .editor-v2-desktop-floating-popover {
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (max-width: 1280px) {
    .editor-v2-header {
        gap: 10px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .editor-v2-brand-slot {
        flex-basis: 154px;
        padding-right: 12px;
    }

    .editor-v2-brand.logo {
        width: 142px;
    }

    .editor-v2-header-title,
    .editor-v2-design-number {
        display: none;
    }

    .editor-v2-document-meta {
        min-width: 0;
    }

    .editor-v2-history-slot {
        margin-left: 0;
    }

    .editor-v2-sidebar {
        flex-basis: 350px;
    }

    .editor-v2-sidebar.editor-v2-sidebar-wide {
        flex-basis: 560px;
    }

    .editor-v2-stage {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (max-width: 1119px) {
    .editor-v2-html,
    .editor-v2-mode {
        min-width: 0;
    }

    .editor-v2-header {
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .editor-v2-brand-slot {
        flex-basis: 132px;
        padding-right: 10px;
    }

    .editor-v2-brand.logo {
        width: 122px;
        background-size: auto 30px;
    }

    .editor-v2-document-meta {
        flex-basis: 0;
    }

    .editor-v2-header-actions {
        gap: 6px;
    }

    .editor-v2-header-actions .editor-v2-button,
    .editor-v2-header-actions .editor-v2-classic-button:not(.editor-v2-classic-button-icon) {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .editor-v2-header-actions .editor-v2-button > span,
    .editor-v2-header-actions .editor-v2-classic-button > span {
        display: none;
    }

    .editor-v2-header-actions [data-editor-v2-action="designs"] {
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .editor-v2-header-actions [data-editor-v2-action="designs"] > i {
        display: inline-flex;
        width: 18px;
        height: 18px;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1;
        text-align: center;
    }

    .editor-v2-save-split .editor-v2-save-toggle {
        width: 32px;
        min-width: 32px;
    }

    .editor-v2-header-action-divider {
        margin: 0 2px;
    }

    .editor-v2-context-toolbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .editor-v2-context-toolbar #top_toolbar {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .editor-v2-context-toolbar #top_toolbar::-webkit-scrollbar {
        display: none;
    }
}

@media (max-height: 760px) and (min-width: 981px) {
    .editor-v2-rail {
        padding: 6px 0;
    }

    .editor-v2-rail-button {
        min-height: 64px;
        gap: 5px;
        padding: 5px 4px;
        font-size: 11px;
    }

    .editor-v2-rail-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 980px) {
    .editor-v2-bottom-tools {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 64px 44px;
        flex-basis: 116px;
        row-gap: 4px;
        padding: 2px 10px;
    }

    .editor-v2-bottom-spacer {
        display: none;
    }

    .editor-v2-pages-tray {
        position: static;
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        transform: none;
    }

    .editor-v2-bottom-actions {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }

    .editor-v2-snap-slot #snap_control {
        min-width: 38px;
        width: 38px;
        padding: 0;
    }

    .editor-v2-snap-slot #snap_control .toolbar-item-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* Mobile v2 uses the same editor engine and document model, but gives touch
   devices a canvas-first shell instead of compressing the desktop sidebar. */
.editor-v2-mobile-nav,
.editor-v2-mobile-backdrop,
.editor-v2-mobile-sheet-handle,
.editor-v2-mobile-add-panel {
    display: none;
}

.editor-v2-mobile,
.editor-v2-mobile body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    overflow-x: hidden;
    overscroll-behavior: none;
}

html.editor-v2-mobile {
    overflow: hidden;
}

.editor-v2-mobile body {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.editor-v2-mobile body.editor-v2-mode .editor-v2-app {
    position: fixed;
    top: var(--editor-v2-browser-top, 0px);
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
}

.editor-v2-mobile .editor-v2-header {
    position: fixed;
    z-index: 5200;
    top: var(--editor-v2-browser-top, 0px);
    right: 0;
    left: 0;
    display: block;
    flex: 0 0 calc(64px + env(safe-area-inset-top));
    box-sizing: border-box;
    width: auto;
    max-width: none;
    height: calc(64px + env(safe-area-inset-top));
    padding: 0;
    border-bottom-color: #e1e4e8;
}

.editor-v2-mobile .editor-v2-brand-slot {
    position: absolute;
    top: env(safe-area-inset-top);
    left: 58px;
    display: flex;
    width: 116px;
    height: 64px;
    padding: 0;
    border: 0;
}

.editor-v2-mobile .editor-v2-brand.logo {
    width: 116px;
    height: 64px;
    background-position: left center;
    background-size: auto 28px;
}

.editor-v2-mobile .editor-v2-header-title,
.editor-v2-mobile .editor-v2-document-meta,
.editor-v2-mobile .editor-v2-help-trigger,
.editor-v2-mobile .editor-v2-button-new,
.editor-v2-mobile .editor-v2-button-resize,
.editor-v2-mobile .editor-v2-header-action-divider,
.editor-v2-mobile [data-editor-v2-action="download"],
.editor-v2-mobile [data-editor-v2-action="order"],
.editor-v2-mobile [data-editor-v2-action="classic"] {
    display: none !important;
}

.editor-v2-mobile .editor-v2-history-slot {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: 180px;
    display: flex;
    height: 44px;
    min-height: 44px;
    margin: 0;
}

.editor-v2-mobile .editor-v2-history-slot #undo_tools {
    gap: 2px;
}

.editor-v2-mobile .editor-v2-history-slot .toolbar-item-box {
    width: 38px;
    height: 44px;
    min-height: 44px;
}

.editor-v2-mobile .editor-v2-header-actions {
    position: static;
}

.editor-v2-mobile .editor-v2-mobile-new,
.editor-v2-mobile .editor-v2-mobile-download {
    position: absolute;
    z-index: 5400;
    top: calc(10px + env(safe-area-inset-top));
    right: 128px;
    display: inline-flex !important;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-color: #dfe3e7;
    border-radius: 9px;
    font-size: 16px;
}

.editor-v2-mobile .editor-v2-mobile-new {
    right: 180px;
}

.editor-v2-mobile [data-editor-v2-action="designs"] {
    position: fixed;
    z-index: 5400;
    top: calc(10px + env(safe-area-inset-top) + var(--editor-v2-browser-top, 0px));
    left: 8px;
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    border-color: #dfe3e7;
    font-size: 17px;
}

.editor-v2-mobile [data-editor-v2-action="designs"] > i {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
    text-align: center;
}

.editor-v2-mobile [data-editor-v2-action="designs"] span {
    display: none;
}

.editor-v2-mobile .editor-v2-header-actions .editor-v2-classic-button[data-editor-v2-action="designs"] {
    width: 44px;
    min-width: 44px;
}

.editor-v2-mobile .editor-v2-save-split {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: 8px;
}

.editor-v2-mobile .editor-v2-save-split .editor-v2-save-main {
    width: 112px;
    height: 44px;
    min-height: 44px;
    gap: 6px;
    padding: 0 12px;
    border-color: #d20b5c;
    border-radius: 9px;
    background: #d20b5c;
    color: #fff;
    box-shadow: 0 5px 12px rgba(210, 11, 92, .18);
    font-size: 13px;
}

.editor-v2-mobile .editor-v2-save-split .editor-v2-save-main > span {
    display: inline !important;
}

.editor-v2-mobile .editor-v2-save-split .editor-v2-save-toggle,
.editor-v2-mobile .editor-v2-save-menu {
    display: none !important;
}

.editor-v2-mobile .editor-v2-workarea {
    /* The app itself is already the fixed viewport anchor. Keeping this child
       fixed created a stacking context that trapped mobile sheets below the
       sibling backdrop, so taps closed a panel instead of using its buttons. */
    position: absolute;
    top: calc(64px + env(safe-area-inset-top));
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

.editor-v2-mobile .editor-v2-main {
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.editor-v2-mobile .editor-v2-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    box-sizing: border-box;
    padding: 20px 12px 112px;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.editor-v2-mobile .editor-v2-stage::-webkit-scrollbar {
    display: none;
}

.editor-v2-mobile .editor-v2-stage.is-mobile-panning,
.editor-v2-mobile .editor-v2-stage.is-mobile-gesturing {
    cursor: grabbing;
}

.editor-v2-mobile .editor-v2-stage .editor__body {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    align-items: flex-start;
    justify-content: center;
}

.editor-v2-mobile .editor-v2-stage #design_tool {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none;
    margin: 0 auto;
    scrollbar-width: none;
}

.editor-v2-mobile .editor-v2-stage #design_tool::-webkit-scrollbar {
    display: none;
}

.editor-v2-mobile .editor-v2-stage #tool_placeholder {
    min-height: 0;
}

.editor-v2-mobile .editor-v2-stage #canvas {
    box-shadow: 0 1px 4px rgba(31, 35, 40, .12);
}

.editor-v2-mobile .editor-v2-context-toolbar {
    position: fixed;
    z-index: 5000;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
    left: 0;
    display: none;
    height: 78px;
    min-height: 78px;
    padding: 12px 10px 8px;
    overflow: hidden;
    border: 1px solid #e0e3e7;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -8px 28px rgba(31, 35, 40, .1);
}

.editor-v2-mobile .editor-v2-context-toolbar.has-selection {
    display: flex;
}

.editor-v2-mobile.editor-v2-mobile-sheet-visible .editor-v2-context-toolbar,
.editor-v2-mobile.editor-v2-mobile-pages-visible .editor-v2-context-toolbar {
    display: none !important;
}

.editor-v2-mobile .editor-v2-context-toolbar::before {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #b7bdc5;
    content: '';
    transform: translateX(-50%);
}

.editor-v2-mobile .editor-v2-context-toolbar #top_toolbar_placeholder,
.editor-v2-mobile .editor-v2-context-toolbar #top_toolbar {
    height: 58px !important;
}

.editor-v2-mobile .editor-v2-context-toolbar #top_toolbar {
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 5px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.editor-v2-mobile .editor-v2-context-toolbar #top_toolbar::-webkit-scrollbar {
    display: none;
}

/* Desktop menus open below their triggers. In the mobile bottom toolbar that
   direction is outside the visible workspace, so every menu uses one stable
   viewport-level position above the toolbar instead. */
body.editor-v2-mobile .editor-v2-context-toolbar :is(#editor-v2-mobile-menu-specificity, .drop-down) > .drop-down-menu,
body.editor-v2-mobile .editor-v2-context-toolbar :is(#editor-v2-mobile-menu-specificity, .editor-v2-property-control) > .editor-v2-property-popover {
    position: fixed !important;
    z-index: 5350;
    top: auto !important;
    right: auto !important;
    bottom: calc(158px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px)) !important;
    left: 50% !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 238px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: translateX(-50%) !important;
    transform-origin: 50% 100%;
}

body.editor-v2-mobile .editor-v2-context-toolbar .editor-v2-font-size-presets-menu {
    position: fixed !important;
    z-index: 5350;
    top: auto !important;
    right: auto !important;
    bottom: calc(158px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px)) !important;
    left: 50% !important;
    width: min(128px, calc(100vw - 16px));
    max-height: calc(100dvh - 238px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-50%) !important;
}

/* Mobile Safari may clip a fixed popover to the fixed toolbar's rounded
   overflow box. Open only the outer shell: #top_toolbar keeps its horizontal
   scroll, so revealing a menu cannot reset the current tools position. */
body.editor-v2-mobile:has(.editor-v2-context-toolbar .drop-down.open) .editor-v2-context-toolbar,
body.editor-v2-mobile:has(.editor-v2-context-toolbar .editor-v2-property-control.open) .editor-v2-context-toolbar,
body.editor-v2-mobile:has(.editor-v2-context-toolbar .editor-v2-font-size-control.is-presets-open) .editor-v2-context-toolbar {
    overflow: visible !important;
}

body.editor-v2-mobile .editor-v2-font-size-preset {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
}

/* Legacy toolbar text is only 16px high and can collapse to almost zero width
   after its menu is detached from the horizontally scrolling mobile toolbar.
   Reset the two list-style menus as real full-width rows: labels must remain
   visible, tappable and readable on the narrowest supported viewport. */
body.editor-v2-mobile .editor-v2-context-toolbar #align_control .drop-down-menu .toolbar-item-line,
body.editor-v2-mobile .editor-v2-context-toolbar #arrange_control .drop-down-menu .drop-down-item,
body.editor-v2-mobile .editor-v2-context-toolbar #arrange_control .drop-down-menu .toolbar-item-line {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    float: none !important;
}

body.editor-v2-mobile .editor-v2-context-toolbar #align_control .drop-down-menu .toolbar-item-text,
body.editor-v2-mobile .editor-v2-context-toolbar #arrange_control .drop-down-menu .toolbar-item-text {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 1 1 auto;
    margin: 0 !important;
    overflow: visible !important;
    color: #343a42 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    text-align: left;
    white-space: normal;
}

.editor-v2-mobile .editor-v2-context-toolbar .toolbar-item-box,
.editor-v2-mobile .editor-v2-context-toolbar .toolbar-item-line,
.editor-v2-mobile .editor-v2-context-toolbar .drop-down-header {
    min-width: 44px;
    min-height: 44px;
}

.editor-v2-mobile .editor-v2-context-toolbar #font_control > .drop-down-header {
    height: 38px;
    min-height: 38px;
}

.editor-v2-mobile .editor-v2-context-toolbar.has-text-selection:not(.has-multi-selection):not(.has-locked-text-selection) #editor-v2-mobile-edit-text {
    display: inline-flex;
    min-width: 132px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    margin-right: 8px;
    padding: 0 14px;
    border: 1px solid #edbfd2;
    border-radius: 9px;
    background: #fff5f9;
    color: #bd0c50;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.editor-v2-mobile #editor-v2-mobile-edit-text:active,
.editor-v2-mobile #editor-v2-mobile-edit-text:focus-visible {
    border-color: #d20b5c;
    outline: 0;
    background: #ffe8f1;
}

.editor-v2-mobile .editor-v2-context-toolbar #crop_tools {
    flex: 0 0 246px;
    width: 246px;
    min-width: 246px;
    height: 44px;
    margin: 0 !important;
    overflow: hidden;
}

.editor-v2-mobile .editor-v2-sidebar {
    position: fixed;
    z-index: 5100;
    top: calc(76px + env(safe-area-inset-top) + var(--editor-v2-browser-top, 0px));
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -12px 34px rgba(31, 35, 40, .14);
    opacity: 0;
    pointer-events: none;
    touch-action: pan-y;
    overscroll-behavior: contain;
    transform: translateY(105%);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .16s ease;
}

.editor-v2-mobile .editor-v2-sidebar.editor-v2-mobile-sheet-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.editor-v2-mobile .editor-v2-rail {
    display: none;
}

.editor-v2-mobile .editor-v2-library {
    display: flex !important;
    width: 100%;
    height: 100%;
}

.editor-v2-mobile .editor-v2-library-header {
    position: relative;
    flex: 0 0 58px;
    padding: 8px 16px 0;
    font-size: 18px;
}

.editor-v2-mobile .editor-v2-mobile-sheet-handle {
    position: absolute;
    top: 7px;
    left: 50%;
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #b7bdc5;
    transform: translateX(-50%);
}

.editor-v2-mobile .editor-v2-library-header strong {
    padding-top: 7px;
}

.editor-v2-mobile .editor-v2-library-header .editor-v2-icon-button {
    width: 44px;
    height: 44px;
    margin-top: 3px;
}

.editor-v2-mobile .editor-v2-panel-body {
    padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
    scrollbar-gutter: auto;
    touch-action: pan-y;
}

.editor-v2-mobile .editor-v2-panel-body #user_images,
.editor-v2-mobile .editor-v2-panel-body #user_qrcodes,
.editor-v2-mobile .editor-v2-background-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.editor-v2-mobile .editor-v2-panel-body #user_images > .editor-v2-media-card {
    height: auto !important;
    min-height: 0;
    aspect-ratio: 4 / 3;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.editor-v2-mobile .editor-v2-panel-body #user_images .editor-v2-media-card.is-inserting {
    pointer-events: none;
}

.editor-v2-mobile .editor-v2-panel-body #user_images .user-image-thumb,
.editor-v2-mobile .editor-v2-panel-body #user_qrcodes .user-image-thumb {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.editor-v2-mobile .editor-v2-panel-body #user_images .editor-v2-media-card img {
    background: #f3f5f7;
    object-fit: contain;
}

.editor-v2-mobile .editor-v2-background-card {
    min-height: 0;
    aspect-ratio: 9 / 5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.editor-v2-mobile .editor-v2-background-card img {
    height: 100% !important;
}

.editor-v2-mobile .editor-v2-panel-intro {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
}

.editor-v2-mobile .editor-v2-layer-row {
    min-height: 54px;
    padding-right: 4px;
    padding-left: 4px;
    border: 0;
    border-bottom: 1px solid #eceef0;
    border-radius: 0;
    background: #fff;
}

.editor-v2-mobile .editor-v2-layer-row.is-selected {
    background: #fff1f6;
    box-shadow: inset 3px 0 0 #d20b5c;
}

.editor-v2-mobile .editor-v2-layer-handle {
    width: 30px;
    font-size: 16px;
}

.editor-v2-mobile .editor-v2-layer-actions button {
    width: 40px;
    height: 44px;
}

.editor-v2-mobile .editor-v2-mobile-add-panel {
    display: none;
}

.editor-v2-mobile .editor-v2-mobile-add-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.editor-v2-mobile .editor-v2-mobile-add-grid button {
    display: flex;
    min-height: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 6px;
    border: 1px solid #dfe3e7;
    border-radius: 11px;
    background: #fff;
    color: #30363d;
    font-size: 13px;
    font-weight: 600;
}

.editor-v2-mobile .editor-v2-mobile-add-grid button:active,
.editor-v2-mobile .editor-v2-mobile-add-grid button:focus-visible {
    border-color: #d20b5c;
    background: #fff1f6;
    color: #d20b5c;
}

.editor-v2-mobile .editor-v2-mobile-add-grid i {
    font-size: 25px;
}

.editor-v2-mobile .editor-v2-mobile-backdrop {
    position: fixed;
    z-index: 5050;
    top: calc(64px + var(--editor-v2-browser-top, 0px));
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
    left: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(31, 35, 40, .08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.editor-v2-mobile.editor-v2-mobile-sheet-visible .editor-v2-mobile-backdrop,
.editor-v2-mobile.editor-v2-mobile-pages-visible .editor-v2-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.editor-v2-mobile .editor-v2-mobile-nav {
    position: fixed;
    z-index: 5300;
    right: 0;
    bottom: var(--editor-v2-browser-bottom, 0px);
    left: 0;
    display: grid;
    width: auto;
    max-width: none;
    height: calc(72px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    box-sizing: border-box;
    padding: 4px 4px env(safe-area-inset-bottom);
    border-top: 1px solid #dfe3e7;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -4px 18px rgba(31, 35, 40, .06);
}

/* iOS emits several intermediate visualViewport sizes while dismissing the
   keyboard. Keep the three bottom layers out of that animation and reveal
   them together after the viewport has settled. */
body.editor-v2-mobile.editor-v2-mobile-viewport-settling .editor-v2-context-toolbar,
body.editor-v2-mobile.editor-v2-mobile-viewport-settling .editor-v2-bottom-actions,
body.editor-v2-mobile.editor-v2-mobile-viewport-settling .editor-v2-mobile-nav {
    visibility: hidden !important;
}

.editor-v2-mobile .editor-v2-mobile-nav button {
    display: flex;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #30363d;
    font: 500 11px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.editor-v2-mobile .editor-v2-mobile-nav button i {
    font-size: 22px;
    line-height: 24px;
}

.editor-v2-mobile .editor-v2-mobile-nav button.is-active {
    color: #d20b5c;
}

.editor-v2-mobile .editor-v2-mobile-nav .editor-v2-mobile-nav-add i {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-top: -14px;
    border-radius: 11px;
    background: #d20b5c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(210, 11, 92, .22);
    font-size: 20px;
}

.editor-v2-mobile .editor-v2-mobile-nav .editor-v2-mobile-nav-add.is-active i {
    background: #b9084e;
}

.editor-v2-mobile .editor-v2-bottom-tools {
    position: static;
    display: block;
    flex: 0 0 auto;
    height: 0;
    padding: 0;
}

.editor-v2-mobile .editor-v2-bottom-spacer,
.editor-v2-mobile .editor-v2-snap-slot,
.editor-v2-mobile .editor-v2-view-slot,
.editor-v2-mobile .editor-v2-status {
    display: none !important;
}

.editor-v2-mobile .editor-v2-bottom-actions {
    position: fixed;
    z-index: 4900;
    bottom: calc(84px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
    left: 12px;
    display: flex;
}

.editor-v2-mobile.editor-v2-mobile-has-selection .editor-v2-bottom-actions {
    bottom: calc(162px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
}

.editor-v2-mobile.editor-v2-mobile-sheet-visible .editor-v2-bottom-actions {
    display: none;
}

/* На touch-экране первый тап не должен расходоваться на legacy hover-стопку. */
.editor-v2-mobile .editor-v2-template-results .template-result-item {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.editor-v2-mobile .editor-v2-template-results .template-result-item:active,
.editor-v2-mobile .editor-v2-template-results .template-result-item:hover,
.editor-v2-mobile .editor-v2-template-results .template-result-item:focus {
    transform: none;
}

.editor-v2-mobile .editor-v2-template-results .template-result-item.is-multipage:hover .template-thumb-img,
.editor-v2-mobile .editor-v2-template-results .template-result-item.is-multipage:focus .template-thumb-img {
    transform: none;
}

.editor-v2-mobile .editor-v2-template-results .template-result-item:hover .template-thumb,
.editor-v2-mobile .editor-v2-template-results .template-result-item:focus .template-thumb {
    box-shadow: none;
}

@media (hover: none), (pointer: coarse) {
    .editor-v2-mode .editor-v2-template-results .template-result-item:active,
    .editor-v2-mode .editor-v2-template-results .template-result-item:hover,
    .editor-v2-mode .editor-v2-template-results .template-result-item:focus,
    .editor-v2-mode .editor-v2-template-results .template-result-item.is-multipage:hover .template-thumb-img,
    .editor-v2-mode .editor-v2-template-results .template-result-item.is-multipage:focus .template-thumb-img {
        transform: none;
    }

    .editor-v2-mode .editor-v2-template-results .template-result-item:hover .template-thumb,
    .editor-v2-mode .editor-v2-template-results .template-result-item:focus .template-thumb {
        box-shadow: none;
    }
}

@media (min-width: 740px) {
    .editor-v2-mobile .editor-v2-template-results,
    .editor-v2-mobile .editor-v2-template-skeleton,
    .editor-v2-mobile .editor-v2-panel-body #user_images,
    .editor-v2-mobile .editor-v2-panel-body #user_qrcodes,
    .editor-v2-mobile .editor-v2-background-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions {
        position: absolute;
        z-index: 5300;
        top: calc(10px + env(safe-area-inset-top));
        right: 162px;
        left: auto;
        display: flex !important;
        height: 44px;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        pointer-events: none;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-button {
        position: static;
        display: inline-flex !important;
        width: auto;
        min-width: 0;
        height: 42px;
        min-height: 42px;
        padding: 0 17px;
        overflow: visible;
        gap: 9px;
        border-radius: 8px;
        font-size: 14px;
        pointer-events: auto;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-button > span {
        display: inline;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-header-action-divider {
        display: block !important;
        height: 30px;
        margin: 0 2px;
        background: #e2e5e9;
    }

    .editor-v2-mobile .editor-v2-mobile-new,
    .editor-v2-mobile .editor-v2-mobile-download {
        display: none !important;
    }

    .editor-v2-mobile .editor-v2-history-slot {
        display: flex;
        right: auto;
        left: 190px;
    }

    .editor-v2-mobile .editor-v2-save-split .editor-v2-save-main {
        border-radius: 9px 0 0 9px;
    }

    .editor-v2-mobile .editor-v2-save-split .editor-v2-save-toggle {
        display: inline-flex !important;
        width: 34px;
        min-width: 34px;
        height: 44px;
        min-height: 44px;
        gap: 0;
        padding: 0;
        border-color: #d7dbe0;
        border-left-color: #d7dbe0;
        border-radius: 0 9px 9px 0;
        background: #fff;
        color: #343a40;
        box-shadow: none;
    }

    .editor-v2-mobile .editor-v2-save-split .editor-v2-save-toggle:hover,
    .editor-v2-mobile .editor-v2-save-split .editor-v2-save-toggle:focus,
    .editor-v2-mobile .editor-v2-save-split.is-open .editor-v2-save-toggle {
        border-color: #9ea5ae;
        background: #f8f9fa;
        color: #252a30;
    }

    .editor-v2-mobile .editor-v2-save-split.is-open .editor-v2-save-menu {
        display: block !important;
    }
}

@media (min-width: 740px) and (max-width: 899px) {
    .editor-v2-mobile .editor-v2-tablet-header-actions {
        gap: 8px;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-button {
        width: 42px;
        min-width: 42px;
        padding: 0;
        gap: 0;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-button > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .editor-v2-mobile .editor-v2-tablet-header-actions .editor-v2-header-action-divider {
        display: none !important;
    }
}

@media (max-width: 739px) {
    .editor-v2-mobile .editor-v2-history-slot {
        display: none;
    }
}

.editor-v2-mobile.editor-v2-mobile-pages-visible .editor-v2-bottom-actions {
    bottom: calc(254px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
}

.editor-v2-mobile .editor-v2-context-toolbar.has-selection ~ .editor-v2-stage + .editor-v2-selection-assistant,
.editor-v2-mobile .editor-v2-selection-assistant {
    display: none !important;
}

.editor-v2-mobile .editor-v2-zoom-slot #zoom_tools {
    min-height: 44px;
}

.editor-v2-mobile .editor-v2-zoom-slot .toolbar-item-box {
    width: 42px;
    height: 44px;
}

.editor-v2-mobile .editor-v2-zoom-group {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(31, 35, 40, .1);
}

.editor-v2-mobile .editor-v2-zoom-value {
    min-width: 58px;
    height: 44px;
    font-size: 14px;
}

.editor-v2-mobile .editor-v2-zoom-slot #toolbar_fullscreen {
    display: none !important;
}

.editor-v2-mobile .editor-v2-pages-tray {
    position: fixed;
    z-index: 5100;
    right: 0;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--editor-v2-browser-bottom, 0px));
    left: 0;
    display: flex;
    width: 100%;
    height: 170px;
    max-width: none;
    align-items: center;
    box-sizing: border-box;
    padding: 26px 12px 12px;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -12px 34px rgba(31, 35, 40, .14);
    opacity: 0;
    pointer-events: none;
    touch-action: pan-x;
    overscroll-behavior: contain;
    transform: translateY(105%);
    transition: transform .22s cubic-bezier(.2, .8, .2, 1), opacity .16s ease;
}

.editor-v2-mobile .editor-v2-pages-tray::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #b7bdc5;
    content: '';
    transform: translateX(-50%);
}

.editor-v2-mobile.editor-v2-mobile-pages-visible .editor-v2-pages-tray {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.editor-v2-mobile .editor-v2-pages-tray #page_navigation {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 8px;
    border: 0;
    box-shadow: none;
    touch-action: pan-x;
}

.editor-v2-mobile .editor-v2-pages-tray #page_navigation .page-navigation-item {
    min-width: 100px;
    min-height: 86px;
    padding: 8px !important;
}

.editor-v2-mobile .editor-v2-pages-tray #page_navigation .page-navigation-item.on {
    border-color: #d20b5c;
    box-shadow: none;
}

.editor-v2-mobile .editor-v2-pages-tray #page_navigation_add {
    min-width: 72px;
}

@media (max-width: 439px) {
    .editor-v2-mobile .editor-v2-brand-slot,
    .editor-v2-mobile .editor-v2-brand.logo {
        width: 80px;
    }

    .editor-v2-mobile .editor-v2-brand.logo {
        background-size: auto 22px;
    }

    .editor-v2-mobile .editor-v2-history-slot {
        right: 176px;
    }

    .editor-v2-mobile .editor-v2-history-slot .toolbar-item-box {
        width: 34px;
    }

    .editor-v2-mobile .editor-v2-save-split .editor-v2-save-main {
        width: 108px;
        padding: 0 9px;
    }

    .editor-v2-mobile .editor-v2-mobile-download {
        right: 124px;
    }

    .editor-v2-mobile .editor-v2-mobile-new {
        right: 176px;
    }
}

@media (max-width: 389px) {
    .editor-v2-mobile .editor-v2-brand-slot {
        display: none;
    }
}
