/* =====================================================================
   Vizuális (blokkos) e-mail szerkesztő – csak a .eb-root alatt érvényes
   ===================================================================== */

.eb-root {
    --eb-accent: #2888d2;
    --eb-accent-strong: #1a6fb5;
    --eb-accent-hover: #155d99;
    --eb-accent-soft: #e8f2fb;
    --eb-accent-ink: #1a5f99;
    --eb-ink: #22303f;
    --eb-ink-2: #3d4c5c;
    --eb-muted: #5b6b7c;
    --eb-line: #e1e6ec;
    --eb-line-2: #d6dde5;
    --eb-ground: #f4f6f9;
    --eb-canvas: #e9edf2;
    --eb-panel: #ffffff;
    --eb-danger: #b42318;
    --eb-warn: #d97706;
    --eb-tag-bg: #fff1dc;
    --eb-tag-ink: #7a4100;
    --eb-radius: 8px;
    --eb-font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;

    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    background: var(--eb-ground);
    color: var(--eb-ink);
    font-family: var(--eb-font);
    font-size: 13px;
    line-height: 1.45;
}

.eb-root *,
.eb-root *::before,
.eb-root *::after {
    box-sizing: border-box;
}

body.eb-open {
    overflow: hidden;
}

/* a Bootstrap-tooltip a body-ba kerül, a teljes képernyős réteg fölé kell */
body.eb-open .tooltip {
    z-index: 5000;
}

/* a Durandal üzenetablakok (sikeres küldés, hibaüzenet) is a réteg fölé kerüljenek */
body.eb-open .modalBlockout {
    z-index: 5200 !important;
}

body.eb-open .modalHost {
    z-index: 5201 !important;
}

/* a Kendo inline eszköztár, párbeszédek és legördülők a réteg fölött */
body.eb-open .k-editor-inline + .k-editor-toolbar,
body.eb-open .k-window,
body.eb-open .k-animation-container,
body.eb-open .k-popup {
    z-index: 5100 !important;
}

/* az inline eszköztár a blokk szélességére törne: egy sorban, automatikus szélességgel,
   hogy keskeny oszlopban se takarja el a szerkesztett szöveget */
body.eb-open .k-editor-widget.k-window {
    width: auto !important;
    max-width: none !important;
}

body.eb-open .k-editor-widget .k-editor-toolbar {
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

body.eb-open .k-editor-widget .k-editor-toolbar > li {
    display: inline-block !important;
    float: none !important;
    vertical-align: middle;
}

/* az inline szövegszerkesztő saját „Mező beszúrása” eszköze: felirattal, kiemelve */
.k-editor-toolbar .k-tool[title="Mező beszúrása"] {
    width: auto !important;
    padding: 0 10px !important;
    border-color: #e08c00 !important;
    background: #f59e0b !important;
    color: #1f1300 !important;
}

.k-editor-toolbar .k-tool[title="Mező beszúrása"] .k-i-eb-tags {
    display: none;
}

.k-editor-toolbar .k-tool[title="Mező beszúrása"] .k-tool-text {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 26px;
    white-space: nowrap;
}

.eb-root button {
    font-family: inherit;
}

.eb-root button:focus-visible,
.eb-root a:focus-visible {
    outline: 2px solid var(--eb-accent);
    outline-offset: 2px;
}

/* ----------------------------- gombok ----------------------------- */

.eb-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: var(--eb-radius);
    background: transparent;
    color: var(--eb-ink-2);
    font-size: 15px;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.eb-icon-btn:hover:not([disabled]) {
    background: #eef1f5;
    color: var(--eb-ink);
}

.eb-icon-btn[disabled] {
    opacity: .4;
    cursor: default;
}

.eb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--eb-line-2);
    border-radius: var(--eb-radius);
    background: #ffffff;
    color: var(--eb-ink);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.eb-btn:hover:not([disabled]) {
    background: #eef1f5;
}

.eb-btn[disabled] {
    opacity: .5;
    cursor: default;
}

.eb-btn.eb-active {
    border-color: var(--eb-accent);
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
}

.eb-btn-primary {
    border-color: var(--eb-accent-strong);
    background: var(--eb-accent-strong);
    color: #ffffff;
    font-weight: 600;
}

.eb-btn-primary:hover:not([disabled]) {
    border-color: var(--eb-accent-hover);
    background: var(--eb-accent-hover);
}

.eb-btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
}

.eb-btn-block {
    width: 100%;
}

.eb-btn-dark {
    border-color: #3a4a5b;
    background: transparent;
    color: #e6ecf2;
}

.eb-btn-dark:hover:not([disabled]) {
    background: #2b3a4a;
}

.eb-icon-btn-dark {
    color: #e6ecf2;
}

.eb-icon-btn-dark:hover:not([disabled]) {
    background: #2b3a4a;
    color: #ffffff;
}

.eb-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ------------------------ szegmentált választó ------------------------ */

.eb-seg {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: #eef1f5;
}

.eb-seg button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--eb-muted);
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.eb-seg button:hover {
    color: var(--eb-ink);
}

.eb-seg button.eb-on {
    background: #ffffff;
    color: var(--eb-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .14);
}

.eb-seg-lg button {
    height: 30px;
    padding: 0 14px;
    font-size: 13px;
}

.eb-seg-dark {
    background: #22303d;
}

.eb-seg-lg button,
.eb-seg-dark button {
    flex: 0 0 auto;
}

.eb-seg-dark button {
    color: #c9d4de;
}

.eb-seg-dark button:hover {
    color: #ffffff;
}

.eb-seg-dark button.eb-on {
    background: #e6ecf2;
    color: #17212b;
}

/* ------------------------------ felső sáv ------------------------------ */

.eb-topbar {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    height: 60px;
    padding: 0 16px;
    border-bottom: 1px solid var(--eb-line);
    background: var(--eb-panel);
}

.eb-topbar-left,
.eb-topbar-center,
.eb-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.eb-topbar-right {
    justify-content: flex-end;
}

.eb-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eb-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* a sablon neve: a fejlécben helyben szerkeszthető, a mentéshez kötelező */
.eb-title-input {
    flex: 0 1 280px;
    min-width: 0;
    height: 28px;
    margin-left: -7px;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--eb-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    transition: border-color .15s, box-shadow .15s;
}

.eb-title-input::placeholder {
    color: var(--eb-muted);
    font-weight: 400;
}

.eb-title-input:hover {
    border-color: var(--eb-line);
}

.eb-title-input:focus {
    outline: none;
    border-color: var(--eb-accent);
    background: var(--eb-panel);
    box-shadow: 0 0 0 3px var(--eb-accent-soft);
}

.eb-title-input.eb-title-empty {
    border-style: dashed;
    border-color: var(--eb-warn);
}

.eb-title-input.eb-invalid {
    border-style: solid;
    border-color: var(--eb-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .15);
}

.eb-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
    font-size: 11px;
    font-weight: 600;
}

.eb-save-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3fa46a;
}

.eb-save-status.eb-dirty .eb-dot {
    background: var(--eb-warn);
}

.eb-save-status.eb-error {
    color: var(--eb-danger);
    font-weight: 600;
}

.eb-save-status.eb-error .eb-dot {
    background: var(--eb-danger);
}

.eb-sep {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--eb-line);
}

.eb-popover-anchor {
    position: relative;
}

.eb-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    padding: 14px;
    border: 1px solid var(--eb-line-2);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
}

.eb-close-confirm {
    position: absolute;
    top: 68px;
    left: 50%;
    z-index: 60;
    width: 480px;
    margin-left: -240px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
}

/* ------------------------------- elrendezés ------------------------------- */

.eb-main {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* -------------------------------- paletta -------------------------------- */

.eb-palette {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 264px;
    border-right: 1px solid var(--eb-line);
    background: var(--eb-panel);
}

.eb-tabs {
    display: flex;
    gap: 4px;
    padding: 0 12px;
    border-bottom: 1px solid var(--eb-line);
}

.eb-tabs button {
    height: 44px;
    padding: 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--eb-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.eb-tabs button.eb-on {
    border-bottom-color: var(--eb-accent);
    color: var(--eb-accent-ink);
}

.eb-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 16px 12px;
    overflow-y: auto;
}

.eb-row-tiles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 12px;
    overflow-y: auto;
}

.eb-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 84px;
    border: 1px solid var(--eb-line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--eb-ink);
    font-size: 12.5px;
    cursor: grab;
    transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.eb-tile .fa {
    font-size: 20px;
}

.eb-tile:hover {
    border-color: var(--eb-accent);
    color: var(--eb-accent-ink);
    box-shadow: 0 2px 8px rgba(40, 136, 210, .16);
}

.eb-tile.ui-draggable-dragging {
    width: 110px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .24);
    opacity: .95;
    cursor: grabbing;
}

.eb-tile-row {
    align-items: stretch;
    height: auto;
    padding: 12px;
    text-align: left;
}

.eb-tile-row.ui-draggable-dragging {
    width: 220px;
}

.eb-layout-preview {
    display: flex;
    gap: 4px;
    width: 100%;
    height: 26px;
}

.eb-layout-preview > span {
    flex-basis: 0;
    border-radius: 4px;
    background: #dbe7f3;
}

/* Mezők fül: a klasszikus szerkesztő objektumtípus-listája, lenyitható csoportokkal */
.eb-fields {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.eb-fields-search {
    padding: 12px 12px 8px 12px;
}

.eb-fields-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 12px 12px;
}

.eb-fgroup {
    margin-bottom: 6px;
    border: 1px solid var(--eb-line);
    border-radius: 8px;
    background: #ffffff;
}

.eb-fgroup-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--eb-ink);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.eb-fgroup-head:hover {
    background: #f1f6fb;
}

.eb-fgroup.eb-open > .eb-fgroup-head {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
}

.eb-fgroup-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eb-fgroup-count {
    flex-shrink: 0;
    min-width: 22px;
    padding: 0 6px;
    border-radius: 9px;
    background: var(--eb-ground);
    color: var(--eb-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.eb-fgroup-head .fa {
    flex-shrink: 0;
    color: var(--eb-muted);
    font-size: 11px;
    transition: transform 150ms ease;
}

.eb-fgroup-head .fa.eb-rot {
    transform: rotate(-90deg);
}

.eb-fgroup-items {
    padding: 4px;
    border-top: 1px solid var(--eb-line);
}

.eb-fitem {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: grab;
    user-select: none;
}

.eb-fitem:hover,
.eb-fitem:focus {
    background: #f1f6fb;
    outline: 0;
}

.eb-fitem:focus-visible {
    box-shadow: inset 0 0 0 2px #9cc7ec;
}

.eb-fitem-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--eb-ink);
    font-size: 12.5px;
}

.eb-fitem-name .fa {
    color: var(--eb-muted);
    font-size: 11px;
}

.eb-fitem code {
    align-self: flex-start;
    max-width: 100%;
    overflow: hidden;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--eb-tag-bg);
    color: var(--eb-tag-ink);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eb-fields-empty {
    padding: 16px 4px;
    color: var(--eb-muted);
}

.eb-palette-hint {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1px solid var(--eb-line);
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-palette-hint .fa {
    margin-top: 2px;
}

/* --------------------------------- vászon --------------------------------- */

.eb-canvas-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--eb-canvas);
}

.eb-canvas-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 4px 24px;
}

.eb-canvas-info {
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-canvas-scroll {
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px 64px 72px 64px;
}

.eb-email {
    margin: 0 auto;
    transition: width 150ms ease;
}

.eb-email-body {
    min-height: 240px;
    padding: 20px 0;
    border-radius: 6px;
}

.eb-rows {
    min-height: 60px;
}

.eb-row {
    position: relative;
}

.eb-row-tools {
    position: absolute;
    top: 0;
    left: -44px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 150ms ease;
}

.eb-row:hover > .eb-row-tools,
.eb-row.eb-selected > .eb-row-tools {
    opacity: 1;
}

.eb-row-handle,
.eb-row-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    background: #ffffff;
    color: var(--eb-ink-2);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.eb-row-handle {
    cursor: grab;
}

.eb-row-select {
    cursor: pointer;
}

.eb-row-select:hover,
.eb-row-handle:hover {
    color: var(--eb-accent-ink);
}

.eb-row:hover > .eb-row-inner {
    box-shadow: inset 0 0 0 1px #b9d3ea;
}

.eb-row.eb-selected > .eb-row-inner {
    box-shadow: inset 0 0 0 2px var(--eb-accent);
}

.eb-row-inner {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    transition: box-shadow 150ms ease;
}

.eb-row-inner.eb-stack {
    flex-direction: column;
}

.eb-row-placeholder {
    height: 64px;
    margin: 4px 0;
    border: 2px dashed var(--eb-accent);
    border-radius: 6px;
    background: rgba(40, 136, 210, .06);
    visibility: visible !important;
}

.eb-col {
    position: relative;
    min-width: 0;
    min-height: 40px;
}

.eb-col.eb-selected {
    box-shadow: inset 0 0 0 2px #7fb5e3;
}

.eb-contents {
    position: relative;
    min-height: 16px;
}

.eb-contents.eb-empty {
    min-height: 72px;
}

.eb-col-empty {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    left: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1.5px dashed #9fb3c8;
    border-radius: 6px;
    background: rgba(245, 248, 251, .8);
    color: var(--eb-muted);
    font-family: var(--eb-font);
    font-size: 12px;
    pointer-events: none;
}

.eb-block-placeholder {
    height: 44px;
    margin: 2px 0;
    border: 2px dashed var(--eb-accent);
    border-radius: 6px;
    background: rgba(40, 136, 210, .07);
    visibility: visible !important;
}

.eb-contents .eb-tile.ui-draggable {
    width: 100%;
    height: 44px;
}

.eb-block {
    position: relative;
    cursor: pointer;
    transition: box-shadow 150ms ease;
}

.eb-block:hover {
    box-shadow: inset 0 0 0 1px #8fbbe3;
}

.eb-block.eb-selected {
    z-index: 2;
    box-shadow: inset 0 0 0 2px var(--eb-accent);
}

/* képfájl behúzása a fájlkezelőből: hová kerül a kép */
.eb-block.eb-drop-before::before,
.eb-block.eb-drop-after::after {
    content: '';
    position: absolute;
    right: 4px;
    left: 4px;
    z-index: 6;
    height: 4px;
    border-radius: 2px;
    background: var(--eb-accent);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
    pointer-events: none;
}

.eb-block.eb-drop-before::before {
    top: -2px;
}

.eb-block.eb-drop-after::after {
    bottom: -2px;
}

.eb-block.eb-drop-fill,
.eb-block.eb-drop-link,
.eb-col.eb-drop-into,
.eb-email.eb-drop-end {
    outline: 2px dashed var(--eb-accent);
    outline-offset: -2px;
    background-color: rgba(40, 136, 210, .06);
}

/* mező behúzása szövegbe: a blokk halvány kerete és a beszúrás helye kurzorvonalként */
.eb-block.eb-drop-inline {
    outline: 2px solid rgba(40, 136, 210, .45);
    outline-offset: -2px;
}

.eb-drop-caret {
    position: fixed;
    z-index: 4500;
    display: none;
    width: 2px;
    border-radius: 1px;
    background: var(--eb-accent-strong);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .85);
    pointer-events: none;
}

.eb-block-handle {
    position: absolute;
    top: 50%;
    left: 2px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 28px;
    margin-top: -14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .92);
    color: var(--eb-muted);
    font-size: 11px;
    letter-spacing: -3px;
    cursor: grab;
}

.eb-block:hover > .eb-block-handle,
.eb-block.eb-selected > .eb-block-handle {
    display: inline-flex;
}

.eb-chip {
    position: absolute;
    top: -10px;
    left: 8px;
    z-index: 4;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--eb-accent-strong);
    color: #ffffff;
    font-family: var(--eb-font);
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    pointer-events: none;
}

.eb-chip-row {
    top: -10px;
    left: 8px;
}

.eb-mini-toolbar {
    position: absolute;
    top: -16px;
    right: 6px;
    z-index: 5;
    display: flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--eb-line-2);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
}

.eb-mini-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--eb-ink-2);
    font-size: 13px;
    cursor: pointer;
}

.eb-mini-toolbar button:hover {
    background: #eef1f5;
}

.eb-mini-toolbar button.eb-danger {
    color: var(--eb-danger);
}

.eb-mini-toolbar-row {
    right: 6px;
    top: -16px;
}

.eb-hidden-here > .eb-block-body,
.eb-hidden-here > .eb-row-inner {
    opacity: .35;
}

.eb-hidden-badge {
    position: absolute;
    right: 8px;
    bottom: 6px;
    z-index: 3;
    padding: 2px 8px;
    border-radius: 999px;
    background: #22303f;
    color: #ffffff;
    font-family: var(--eb-font);
    font-size: 11px;
    pointer-events: none;
}

.eb-canvas-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 12px 24px;
    padding: 40px 24px;
    border: 2px dashed #9fb3c8;
    border-radius: 10px;
    background: rgba(255, 255, 255, .6);
    color: var(--eb-muted);
    font-family: var(--eb-font);
    text-align: center;
}

.eb-canvas-empty .fa {
    font-size: 28px;
}

/* a vásznon a mezők színes címkeként látszanak (csak megjelenítés) */
.eb-root .eb-tag {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--eb-tag-bg);
    color: var(--eb-tag-ink);
    font-family: Consolas, 'Courier New', monospace;
    font-size: .88em;
    white-space: nowrap;
}

/* blokkok a vásznon */
.eb-c-text,
.eb-c-heading {
    min-height: 1em;
    outline: 0;
    word-wrap: break-word;
}

.eb-c-text p {
    margin: 0 0 12px 0;
}

.eb-c-text p:last-child {
    margin-bottom: 0;
}

.eb-c-text ul,
.eb-c-text ol {
    margin: 0 0 12px 0;
    padding-left: 24px;
}

.eb-c-text a,
.eb-c-heading a {
    color: inherit;
    text-decoration: underline;
}

.eb-c-text.k-editor,
.eb-c-heading.k-editor {
    border: 0 !important;
    background: #ffffff;
    box-shadow: none !important;
    cursor: text;
}

.eb-c-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.eb-c-button-a {
    max-width: 100%;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    word-wrap: break-word;
}

.eb-c-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 12px 16px;
    border: 1px dashed #b8c3cf;
    border-radius: 6px;
    background: #fafbfc;
    color: var(--eb-muted);
    font-family: var(--eb-font);
    font-size: 12.5px;
}

.eb-c-image-empty {
    flex-direction: column;
    min-height: 110px;
}

.eb-c-image-empty > .fa {
    font-size: 26px;
}

.eb-c-html {
    position: relative;
}

.eb-c-html iframe {
    display: block;
    width: 100%;
    min-height: 40px;
    border: 0;
}

.eb-c-html-shield {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.eb-c-data-box {
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
}

.eb-c-data-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
    font-size: 18px;
}

.eb-c-data-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.eb-c-data-text strong {
    color: var(--eb-ink);
    font-size: 13.5px;
}

/* ---------------------------- tulajdonságpanel ---------------------------- */

.eb-props {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    width: 320px;
    min-height: 0;
    border-left: 1px solid var(--eb-line);
    background: var(--eb-panel);
}

.eb-props-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--eb-line);
}

.eb-props-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
    font-size: 15px;
}

.eb-props-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eb-props-name {
    font-size: 14px;
    font-weight: 600;
}

.eb-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-crumbs button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--eb-muted);
    font-size: 12px;
    cursor: pointer;
}

.eb-crumbs button:hover {
    color: var(--eb-accent-ink);
    text-decoration: underline;
}

.eb-props-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.eb-sec {
    border-bottom: 1px solid #eef1f5;
}

.eb-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: var(--eb-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.eb-sec-head:hover {
    background: #f7f9fb;
}

.eb-sec-head .fa {
    transition: transform 150ms ease;
}

.eb-sec-head .fa.eb-rot {
    transform: rotate(-90deg);
}

.eb-sec-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px 16px;
}

.eb-sec-flat {
    padding-top: 16px;
}

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

.eb-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    font-weight: normal;
}

.eb-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.eb-label {
    color: var(--eb-muted);
    font-size: 12px;
    font-weight: 500;
}

.eb-label:empty {
    display: none;
}

.eb-note {
    margin: 0;
    color: var(--eb-muted);
    font-size: 11.5px;
}

.eb-note-pad {
    padding: 12px 16px;
}

.eb-info {
    display: flex;
    gap: 10px;
    margin: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f1f6fb;
    color: var(--eb-accent-ink);
    font-size: 12.5px;
}

.eb-sec-body .eb-info {
    margin: 0;
}

.eb-info .fa {
    margin-top: 2px;
}

.eb-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    background: #ffffff;
    color: var(--eb-ink);
    font-family: inherit;
    font-size: 13px;
}

textarea.eb-input {
    height: auto;
    padding: 8px 10px;
    resize: vertical;
}

.eb-input:focus,
.eb-stepper input:focus,
.eb-pad-grid input:focus,
.eb-search input:focus,
.eb-tagmenu-search input:focus {
    border-color: var(--eb-accent);
    outline: 2px solid #9cc7ec;
    outline-offset: 0;
}

.eb-code {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.eb-tag-input {
    background: #fffaf2;
    color: var(--eb-tag-ink);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
}

.eb-input-group {
    display: flex;
    gap: 6px;
}

.eb-input-btn,
.eb-lock,
.eb-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    background: #ffffff;
    color: var(--eb-ink-2);
    cursor: pointer;
}

.eb-input-btn {
    width: 34px;
    height: 34px;
}

.eb-lock {
    height: 26px;
    padding: 0 8px;
    font-size: 11.5px;
}

.eb-lock.eb-on {
    border-color: var(--eb-accent);
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
}

.eb-input-btn:hover,
.eb-lock:hover,
.eb-clear:hover {
    background: #eef1f5;
}

.eb-color {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    background: #ffffff;
}

.eb-color input[type="color"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
}

.eb-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.eb-color input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 4px;
}

.eb-color .eb-input {
    height: 30px;
    padding: 0 4px;
    border: 0;
    outline: 0;
}

.eb-clear {
    width: 22px;
    height: 22px;
    border: 0;
    font-size: 11px;
}

.eb-stepper {
    display: flex;
    align-items: center;
    height: 34px;
    overflow: hidden;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    background: #ffffff;
}

.eb-stepper button {
    flex-shrink: 0;
    width: 30px;
    height: 100%;
    border: 0;
    background: #f7f9fb;
    color: var(--eb-ink-2);
    font-size: 15px;
    cursor: pointer;
}

.eb-stepper button:hover {
    background: #eef1f5;
}

.eb-stepper input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield;
}

.eb-stepper input::-webkit-outer-spin-button,
.eb-stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.eb-unit {
    padding-right: 6px;
    color: var(--eb-muted);
    font-size: 11.5px;
}

.eb-pad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.eb-pad-grid label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    color: var(--eb-muted);
    font-size: 11px;
    font-weight: normal;
    text-align: center;
}

.eb-pad-grid input {
    height: 32px;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    text-align: center;
    font-size: 13px;
}

.eb-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.eb-switch {
    position: relative;
    flex-shrink: 0;
    width: 38px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfd8e2;
    cursor: pointer;
    transition: background 150ms ease;
}

.eb-switch > span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .2);
    transition: left 150ms ease;
}

.eb-switch.eb-on {
    background: var(--eb-accent);
}

.eb-switch.eb-on > span {
    left: 19px;
}

.eb-switch-dark {
    color: #c9d4de;
}

.eb-layout-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.eb-layout-choices button {
    padding: 8px;
    border: 1px solid var(--eb-line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.eb-layout-choices button.eb-on {
    border-color: var(--eb-accent);
    box-shadow: 0 0 0 1px var(--eb-accent);
}

.eb-layout-choices .eb-layout-preview {
    height: 20px;
}

.eb-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    overflow: hidden;
    border: 1px dashed #b8c3cf;
    border-radius: 8px;
    background: #eef1f5 repeating-conic-gradient(#e3e8ee 0 25%, #f3f5f8 0 50%) 50% / 16px 16px;
    color: var(--eb-muted);
    font-size: 26px;
}

.eb-image-preview img {
    max-width: 100%;
    max-height: 100%;
}

/* ------------------------------- mezőválasztó ------------------------------- */

.eb-tagmenu-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
}

.eb-tagmenu {
    position: absolute;
    z-index: 71;
    display: flex;
    flex-direction: column;
    width: 330px;
    max-height: 360px;
    overflow: hidden;
    border: 1px solid var(--eb-line-2);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .2);
}

.eb-tagmenu-search,
.eb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--eb-muted);
    font-weight: normal;
}

.eb-tagmenu-search {
    padding: 10px;
    border-bottom: 1px solid var(--eb-line);
}

.eb-tagmenu-search input,
.eb-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--eb-line-2);
    border-radius: 7px;
    font-size: 13px;
}

.eb-tagmenu-note {
    padding: 6px 12px;
    background: #f7f9fb;
    color: var(--eb-muted);
    font-size: 11.5px;
}

.eb-tagmenu-list {
    overflow-y: auto;
    padding-bottom: 6px;
}

.eb-tagmenu-group {
    padding: 10px 12px 4px 12px;
    color: var(--eb-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.eb-tagmenu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 7px 12px;
    border: 0;
    background: transparent;
    color: var(--eb-ink);
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.eb-tagmenu-item:hover {
    background: #f1f6fb;
}

.eb-tagmenu-item code {
    flex-shrink: 0;
    max-width: 55%;
    overflow: hidden;
    padding: 0;
    background: transparent;
    color: var(--eb-tag-ink);
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eb-tagmenu-empty {
    padding: 16px 12px;
    color: var(--eb-muted);
}

/* --------------------------------- képtár --------------------------------- */

.eb-scrim {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    background: rgba(15, 23, 32, .38);
}

.eb-gallery {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 81;
    display: flex;
    flex-direction: column;
    width: 460px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: -12px 0 32px rgba(16, 24, 40, .18);
    animation: eb-slide-in 180ms ease;
}

@keyframes eb-slide-in {
    from {
        transform: translateX(40px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.eb-gallery-head,
.eb-gallery-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.eb-gallery-head {
    border-bottom: 1px solid var(--eb-line);
}

.eb-gallery-foot {
    border-top: 1px solid var(--eb-line);
}

.eb-gallery-title {
    font-size: 16px;
    font-weight: 600;
}

.eb-gallery-sub {
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-gallery-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
}

.eb-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 18px;
    border: 1.5px dashed #9fb3c8;
    border-radius: 10px;
    background: #f5f8fb;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}

.eb-dropzone:hover,
.eb-dropzone.eb-drag {
    border-color: var(--eb-accent);
    background: var(--eb-accent-soft);
}

.eb-dropzone.eb-busy {
    pointer-events: none;
    opacity: .7;
}

.eb-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.eb-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--eb-accent-soft);
    color: var(--eb-accent-ink);
    font-size: 17px;
}

.eb-dropzone-main {
    font-size: 13.5px;
}

.eb-dropzone-sub {
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-gallery-message {
    padding: 8px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: var(--eb-danger);
    font-size: 12.5px;
}

.eb-gallery-grid-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 20px 16px 20px;
}

.eb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.eb-gallery-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eb-gallery-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 10px;
    background: #eef1f5 repeating-conic-gradient(#e3e8ee 0 25%, #f3f5f8 0 50%) 50% / 14px 14px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    cursor: pointer;
    transition: box-shadow 150ms ease;
}

.eb-gallery-thumb:hover {
    box-shadow: 0 4px 14px rgba(16, 24, 40, .14);
}

.eb-gallery-thumb.eb-on {
    outline-color: var(--eb-accent);
}

.eb-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.eb-gallery-check {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eb-accent-strong);
    color: #ffffff;
    font-size: 11px;
}

.eb-gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .94);
    color: var(--eb-danger);
    box-shadow: 0 1px 3px rgba(16, 24, 40, .18);
    cursor: pointer;
}

.eb-gallery-item:hover .eb-gallery-delete,
.eb-gallery-delete:focus-visible {
    display: inline-flex;
}

.eb-gallery-name {
    overflow: hidden;
    color: var(--eb-ink-2);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eb-gallery-empty {
    padding: 32px 12px;
    color: var(--eb-muted);
    text-align: center;
}

.eb-gallery-confirm {
    margin: 0 20px 12px 20px;
}

.eb-gallery-current {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eb-gallery-current-name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.eb-gallery-current-meta {
    color: var(--eb-muted);
    font-size: 12px;
}

/* -------------------------------- előnézet -------------------------------- */

.eb-preview {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: #17212b;
    color: #e6ecf2;
}

.eb-preview-head {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    height: 60px;
    padding: 0 20px;
    border-bottom: 1px solid #2a3642;
}

.eb-preview-title {
    font-size: 15px;
    font-weight: 600;
}

.eb-preview-sub {
    color: #a9b6c3;
    font-size: 12px;
}

.eb-preview-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.eb-preview-info {
    padding: 8px 20px;
    background: #2b2416;
    color: #f5d9a8;
    font-size: 12.5px;
}

.eb-preview-body {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    min-height: 0;
    overflow: auto;
    padding: 28px 24px;
}

.eb-preview-desktop {
    flex: 0 1 720px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .35);
}

.eb-preview-mailhead {
    flex-shrink: 0;
    padding: 12px 20px;
    border-bottom: 1px solid #e1e6ec;
    color: #22303f;
    font-size: 13px;
}

.eb-preview-desktop iframe {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 0;
}

.eb-preview-phone {
    flex-shrink: 0;
    width: 400px;
    height: 100%;
    max-height: 820px;
    min-height: 480px;
    padding: 12px;
    border-radius: 52px;
    background: #0b0f14;
    box-shadow: 0 20px 48px rgba(0, 0, 0, .45), inset 0 0 0 2px #2a333d;
}

.eb-preview-phone iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 40px;
    background: #ffffff;
}

/* ---------------------------- kisebb képernyők ---------------------------- */

@media (max-width: 1280px) {
    .eb-palette {
        width: 216px;
    }

    /* a három fül a keskenyebb palettán is elférjen */
    .eb-tabs {
        gap: 0;
        padding: 0 6px;
    }

    .eb-tabs button {
        padding: 0 8px;
    }

    .eb-props {
        position: absolute;
        top: 60px;
        right: 0;
        bottom: 0;
        z-index: 30;
        box-shadow: -8px 0 24px rgba(16, 24, 40, .12);
    }

    .eb-canvas-scroll {
        padding-right: 340px;
    }
}

/* =====================================================================
   Sablonszerkesztő oldal: a vizuális levéltörzs kártyája
   ===================================================================== */

.eb-card {
    display: flex;
    gap: 20px;
    padding: 16px;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    background: #fbfcfd;
}

.eb-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
    box-shadow: inset 0 0 0 1px #e1e6ec;
}

.eb-card-thumb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 660px;
    height: 840px;
    border: 0;
    transform: scale(.3333);
    transform-origin: 0 0;
    pointer-events: none;
}

.eb-card-thumb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    color: #5b6b7c;
    font-size: 12.5px;
    text-align: center;
}

.eb-card-thumb-empty .fa {
    font-size: 26px;
}

.eb-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.eb-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22303f;
    font-size: 15px;
    font-weight: 600;
}

.eb-card-title .eb-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f2fb;
    color: #1a5f99;
    font-size: 11px;
    font-weight: 600;
}

.eb-card-text {
    margin: 0;
    color: #5b6b7c;
    font-size: 13px;
}

.eb-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.panel-body > .eb-list-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f2fb;
    color: #1a5f99;
    font-size: 11px;
    font-weight: 600;
}

.panel-body:has(> .eb-list-badge) {
    position: relative;
}

.eb-editor-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.eb-editor-switch .eb-seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 9px;
    background: #eef1f5;
}

.eb-editor-switch .eb-seg button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #5b6b7c;
    font-size: 13px;
    cursor: pointer;
}

.eb-editor-switch .eb-seg button.eb-on {
    background: #ffffff;
    color: #22303f;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .14);
}

.eb-editor-switch .control-label {
    margin: 0;
}

.eb-editor-switch-note {
    color: #5b6b7c;
    font-size: 12.5px;
}

.eb-compose-builder-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f1f6fb;
    color: #1a4f7d;
    font-size: 13px;
}

.eb-compose-builder-info .eb-grow {
    flex: 1 1 auto;
}

.eb-compose-preview {
    position: relative;
    height: 560px;
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 8px;
    background: #f4f4f4;
}

.eb-compose-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.eb-compose-preview-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(34, 48, 63, .78);
    color: #ffffff;
    font-size: 11.5px;
    pointer-events: none;
}
