/*
    Modulo template email (CA-PROD-0303): editor a blocchi, galleria con miniature, anteprima isolata
    desktop/smartphone e integrazione nell'editor delle campagne. Stile «plan» del design system CA.
*/

/* ---------- Editor ---------- */
.ca-email-editor {
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    color: var(--cau-ink);
}

.ca-email-editor-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.ca-email-editor-tabs {
    display: inline-flex;
    gap: .25rem;
    padding: .25rem;
    border-radius: 999px;
    background: var(--cau-surface);
    box-shadow: inset 0 0 0 1px var(--cau-line);
}

.ca-email-editor-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--cau-muted);
    font-size: .85rem;
    font-weight: 850;
    transition: background .18s ease, color .18s ease;
}

.ca-email-editor-tab:hover { color: var(--cau-green); }
.ca-email-editor-tab.is-active { background: var(--cau-green); color: var(--cau-lime); box-shadow: 0 6px 14px rgba(6, 58, 50, .22); }

.ca-email-editor-history { display: inline-flex; gap: .3rem; }

.ca-email-editor-icon-btn {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: var(--cau-muted);
    font-size: .85rem;
    transition: background .16s ease, color .16s ease;
}

.ca-email-editor-icon-btn:hover:not(:disabled),
.ca-email-editor-icon-btn.is-active { background: var(--cau-green); color: var(--cau-lime); }
.ca-email-editor-icon-btn.is-danger:hover:not(:disabled) { background: #c2414b; color: #fff; }
.ca-email-editor-icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.ca-email-editor-history .ca-email-editor-icon-btn { background: #fff; box-shadow: 0 0 0 1px var(--cau-line); }

.ca-email-editor-hint,
.ca-email-editor-note { margin: 0; color: var(--cau-muted); font-size: .82rem; line-height: 1.45; }
.ca-email-editor-hint { display: flex; gap: .5rem; align-items: baseline; padding: .6rem .8rem; border-radius: .8rem; background: color-mix(in srgb, var(--cau-aqua) 9%, #fff); color: var(--cau-green); }
.ca-email-editor-hint > i { color: var(--cau-aqua); }

.ca-email-editor-toast {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .5rem .5rem .85rem;
    border-radius: .85rem;
    background: color-mix(in srgb, var(--cau-lime) 30%, #fff);
    color: var(--cau-green);
    font-size: .85rem;
    font-weight: 750;
    animation: ca-email-pop .2s ease-out;
}

.ca-email-editor-toast > span { flex: 1; }
.ca-email-editor-toast.is-error { background: #fdecee; color: #8f1d2a; }

.ca-email-editor-grid {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@container (max-width: 680px) {
    .ca-email-editor-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Struttura: aree e blocchi */
.ca-email-editor-outline {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .75rem;
    border-radius: 1.1rem;
    background: var(--cau-surface);
    box-shadow: inset 0 0 0 1px var(--cau-line);
}

.ca-email-editor-region { display: flex; flex-direction: column; gap: .4rem; }

.ca-email-editor-region-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .2rem;
    color: var(--cau-muted);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ca-email-editor-region-head > span { display: inline-flex; gap: .4rem; align-items: center; }
.ca-email-editor-region-head > span > i { color: var(--cau-aqua); }

.ca-email-editor-empty {
    margin: 0;
    padding: .55rem;
    border: 1.5px dashed var(--cau-line);
    border-radius: .75rem;
    color: var(--cau-muted);
    font-size: .78rem;
    text-align: center;
}

.ca-email-editor-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: .35rem;
    padding: .45rem;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(2, 42, 37, .12);
    animation: ca-email-pop .18s ease-out;
}

.ca-email-editor-palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    padding: .5rem .25rem;
    border: 0;
    border-radius: .7rem;
    background: var(--cau-surface);
    color: var(--cau-green);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    transition: background .16s ease, transform .16s ease;
}

.ca-email-editor-palette-item > i { color: var(--cau-aqua); font-size: 1rem; }
.ca-email-editor-palette-item:hover { background: var(--cau-green); color: var(--cau-lime); transform: translateY(-2px); }
.ca-email-editor-palette-item:hover > i { color: var(--cau-lime); }

.ca-email-editor-list { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; list-style: none; }

.ca-email-editor-item {
    display: flex;
    align-items: center;
    gap: .2rem;
    padding: .2rem;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(2, 42, 37, .06);
    transition: box-shadow .16s ease, transform .16s ease;
}

.ca-email-editor-item:hover { box-shadow: 0 8px 18px rgba(2, 42, 37, .12); }
.ca-email-editor-item.is-selected { box-shadow: 0 0 0 2px var(--cau-aqua), 0 8px 18px rgba(0, 167, 161, .18); }
.ca-email-editor-item.is-hidden .ca-email-editor-item-main { opacity: .5; }

.ca-email-editor-item-main {
    display: flex;
    flex: 1;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    padding: .35rem;
    border: 0;
    border-radius: .7rem;
    background: transparent;
    color: var(--cau-green);
    text-align: left;
}

.ca-email-editor-general { width: 100%; background: #fff; box-shadow: 0 2px 6px rgba(2, 42, 37, .06); }
.ca-email-editor-general.is-selected { box-shadow: 0 0 0 2px var(--cau-aqua); }

.ca-email-editor-item-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: .65rem;
    background: var(--cau-green);
    color: var(--cau-lime);
    font-size: .85rem;
}

.ca-email-editor-item-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }
.ca-email-editor-item-text strong { font-size: .84rem; font-weight: 850; }
.ca-email-editor-item-text small { overflow: hidden; color: var(--cau-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.ca-email-editor-item-flag { flex: 0 0 auto; color: var(--cau-terra); font-size: .72rem; }

.ca-email-editor-item-tools { display: inline-flex; flex: 0 0 auto; gap: .1rem; }
.ca-email-editor-item .ca-email-editor-item-tools { opacity: .35; transition: opacity .16s ease; }
.ca-email-editor-item:hover .ca-email-editor-item-tools,
.ca-email-editor-item.is-selected .ca-email-editor-item-tools,
.ca-email-editor-item:focus-within .ca-email-editor-item-tools { opacity: 1; }
.ca-email-editor-item-tools .ca-email-editor-icon-btn { width: 1.75rem; height: 1.75rem; font-size: .75rem; }

/* Proprietà del blocco */
.ca-email-editor-props { min-width: 0; }

.ca-email-editor-panel {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: 1rem;
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: var(--cau-shadow);
    animation: ca-email-pop .18s ease-out;
}

.ca-email-editor-panel-head { display: flex; align-items: center; gap: .7rem; }
.ca-email-editor-panel-head .ca-email-editor-item-icon { width: 2.6rem; height: 2.6rem; border-radius: .85rem; font-size: 1.05rem; }
.ca-email-editor-panel-head strong { display: block; color: var(--cau-green); font-size: 1.05rem; font-weight: 900; }
.ca-email-editor-panel-head small { color: var(--cau-muted); font-size: .78rem; }

.ca-email-editor-section {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    min-width: 0;
    margin: 0;
    padding: .85rem;
    border: 0;
    border-radius: 1rem;
    background: var(--cau-surface);
}

.ca-email-editor-section > legend {
    float: left;
    width: 100%;
    margin: 0 0 .1rem;
    padding: 0;
    color: var(--cau-green);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ca-email-editor-section > legend > i { margin-right: .3rem; color: var(--cau-aqua); }
.ca-email-editor-section > legend + * { clear: both; }

.ca-email-editor-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.ca-email-editor-row--icon { grid-template-columns: minmax(110px, 140px) minmax(0, 1fr); }
.ca-email-editor-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem; }
.ca-email-editor-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ca-email-editor-chips > .ca-ui-field-label { flex-basis: 100%; }

.ca-email-editor-rich { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ca-email-editor-rich .e-richtexteditor { overflow: hidden; border-radius: .85rem; }

.ca-email-editor-subcard {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .75rem;
    border-radius: .9rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(2, 42, 37, .07);
}

.ca-email-editor-subcard-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--cau-green); font-size: .84rem; }

.ca-email-editor-link { display: flex; flex-direction: column; gap: .55rem; }

/* Campo immagine */
.ca-email-editor-image {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .55rem;
    border-radius: .9rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--cau-line);
}

.ca-email-editor-image > img { display: block; width: 100%; max-height: 220px; border-radius: .7rem; object-fit: contain; background: repeating-conic-gradient(#f1f4ec 0 25%, #fff 0 50%) 0 0 / 18px 18px; }

.ca-email-editor-image-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 110px;
    border: 1.5px dashed var(--cau-line);
    border-radius: .7rem;
    color: var(--cau-muted);
    font-size: .8rem;
}

.ca-email-editor-image-empty > i { color: var(--cau-aqua); font-size: 1.6rem; }
.ca-email-editor-image-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ca-email-editor-upload { position: relative; overflow: hidden; margin: 0; cursor: pointer; }
.ca-email-editor-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ca-email-editor-upload.is-busy { opacity: .75; pointer-events: none; }

/* Tema */
.ca-email-editor-theme { box-shadow: none; padding: 0; background: transparent; }
.ca-email-editor-palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; }

.ca-email-editor-palette-swatch {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .55rem;
    border: 0;
    border-radius: .9rem;
    background: #fff;
    color: var(--cau-green);
    font-size: .8rem;
    font-weight: 850;
    text-align: left;
    box-shadow: 0 2px 8px rgba(2, 42, 37, .07);
    transition: transform .16s ease, box-shadow .16s ease;
}

.ca-email-editor-palette-swatch:hover { transform: translateY(-2px); box-shadow: var(--cau-shadow-hover); }
.ca-email-editor-swatches { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; height: 1.8rem; overflow: hidden; border-radius: .6rem; box-shadow: inset 0 0 0 1px var(--cau-line); }

/* Segnaposti */
.ca-email-editor-placeholders {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    padding: .65rem .75rem;
    border-radius: 1rem;
    background: var(--cau-green);
}

.ca-email-editor-placeholders-label { margin-right: .3rem; color: var(--cau-lime); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }

.ca-email-editor-placeholder {
    padding: .25rem .6rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .74rem;
    transition: background .16s ease, color .16s ease;
}

.ca-email-editor-placeholder:hover { background: var(--cau-lime); color: var(--cau-green); }

/* ---------- Anteprima ---------- */
.ca-email-preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: var(--cau-shadow);
}

.ca-email-preview-bar { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-bottom: 1px solid var(--cau-line); }

.ca-email-preview-avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--cau-gradient);
    color: var(--cau-lime);
    font-size: .9rem;
}

.ca-email-preview-meta { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.25; }
.ca-email-preview-meta strong { overflow: hidden; color: var(--cau-ink); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.ca-email-preview-meta small { color: var(--cau-muted); font-size: .74rem; }

.ca-email-preview-tools { display: inline-flex; gap: .2rem; padding: .2rem; border-radius: .8rem; background: var(--cau-surface); }

.ca-email-preview-tool {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--cau-muted);
}

.ca-email-preview-tool:hover { color: var(--cau-green); }
.ca-email-preview-tool.is-active { background: var(--cau-green); color: var(--cau-lime); }

.ca-email-preview-stage { display: flex; justify-content: center; padding: .75rem; background: #EEF3E6; }

.ca-email-preview-frame {
    display: block;
    width: 100%;
    height: 760px;
    border: 0;
    border-radius: .8rem;
    background: #fff;
    transition: width .25s ease;
}

.ca-email-preview.is-mobile .ca-email-preview-frame { width: 390px; max-width: 100%; border: 10px solid #15211e; border-radius: 2rem; }

.ca-email-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 320px;
    color: var(--cau-muted);
    font-size: .88rem;
}

.ca-email-preview-empty > i { color: var(--cau-aqua); font-size: 2rem; }

.ca-email-preview.is-expanded {
    position: fixed;
    inset: 1.5rem;
    z-index: 1300;
    box-shadow: 0 0 0 100vmax rgba(6, 58, 50, .55), 0 30px 60px rgba(0, 0, 0, .3);
}

/* Un contenitore sticky crea un contesto di sovrapposizione che relega l'anteprima sotto menu laterale e barra dell'editor. */
.ca-email-campaign-preview:has(.ca-email-preview.is-expanded),
.ca-email-workspace-preview:has(.ca-email-preview.is-expanded) { position: static; z-index: auto; }

.ca-email-preview.is-expanded .ca-email-preview-stage { flex: 1; overflow: auto; }
.ca-email-preview.is-expanded .ca-email-preview-frame { height: 100%; max-width: 900px; }
.ca-email-preview.is-expanded.is-mobile .ca-email-preview-frame { max-width: 390px; }

/* ---------- Galleria e miniature ---------- */
.ca-email-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 1rem; }
.ca-email-gallery--compact { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: .75rem; margin-bottom: 1.1rem; }

.ca-email-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 1.1rem;
    background: #fff;
    color: var(--cau-ink);
    text-align: left;
    text-decoration: none;
    box-shadow: var(--cau-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ca-email-card:hover { color: var(--cau-ink); transform: translateY(-3px); box-shadow: var(--cau-shadow-hover); }
.ca-email-card.is-selected { box-shadow: 0 0 0 3px var(--cau-aqua), var(--cau-shadow-hover); }
.ca-email-card.is-archived .ca-email-thumb { filter: grayscale(.7); opacity: .75; }
.ca-email-card--static:hover { transform: none; }
.ca-email-card-link { display: block; }

.ca-email-thumb {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #EEF3E6;
    pointer-events: none;
}

.ca-email-thumb iframe {
    position: absolute;
    top: 0;
    left: 50%;
    width: 640px;
    height: 750px;
    border: 0;
    transform: translateX(-50%) scale(.4);
    transform-origin: top center;
}

.ca-email-thumb::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3.5rem; background: linear-gradient(transparent, rgba(238, 243, 230, .95)); content: ""; }

.ca-email-gallery--compact .ca-email-thumb { height: 220px; }
.ca-email-gallery--compact .ca-email-thumb iframe { transform: translateX(-50%) scale(.3); }

.ca-email-card-body { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: .8rem .9rem .9rem; }
.ca-email-card-body strong { color: var(--cau-green); font-size: .95rem; font-weight: 900; line-height: 1.2; }
.ca-email-card-body strong > i { margin-right: .25rem; color: var(--cau-aqua); }
.ca-email-card-body small { color: var(--cau-muted); font-size: .78rem; line-height: 1.35; }
.ca-email-card-cta { margin-top: auto; padding-top: .3rem; color: var(--cau-aqua); font-size: .8rem; font-weight: 850; }
.ca-email-card-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }

.ca-email-card-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    align-self: flex-start;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: var(--cau-surface);
    color: var(--cau-green);
    font-size: .7rem;
    font-weight: 800;
}

.ca-email-card-tag.is-accent { background: color-mix(in srgb, var(--cau-lime) 45%, #fff); }
.ca-email-card-tag.is-muted { background: #eceff1; color: #4F6470; }
.ca-email-card-meta { margin-top: auto; padding-top: .35rem; color: var(--cau-muted); font-size: .74rem; }
.ca-email-card-actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .9rem .9rem; }

.ca-email-card-check {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--cau-aqua);
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 167, 161, .35);
}

.ca-email-gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.ca-email-gallery-toolbar .ca-ui-switch-field { width: auto; }

/* Selettore nelle campagne */
.ca-email-picker-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.ca-email-picker-head h3 { margin: 0; color: var(--cau-green); font-size: .9rem; font-weight: 900; }
.ca-email-picker-head h3 > i { margin-right: .3rem; color: var(--cau-aqua); }
.ca-email-picker-manage { color: var(--cau-aqua); font-size: .8rem; font-weight: 800; text-decoration: none; }
.ca-email-picker > .ca-email-editor-note { margin-bottom: 1rem; }

.ca-email-chosen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: .8rem;
    padding: .7rem .8rem;
    border-radius: 1rem;
    background: var(--cau-gradient);
    color: #fff;
}

.ca-email-chosen-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: .8rem;
    background: var(--cau-lime);
    color: var(--cau-green);
}

.ca-email-chosen-text { display: flex; flex: 1; flex-direction: column; min-width: 140px; line-height: 1.2; }
.ca-email-chosen-text small { color: rgba(255, 255, 255, .75); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ca-email-chosen-text strong { font-size: 1rem; font-weight: 900; }
.ca-email-chosen .ca-ui-btn--ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.ca-email-chosen .ca-ui-btn--ghost:hover { background: var(--cau-lime); color: var(--cau-green); }

.ca-email-campaign-preview { position: sticky; top: 1rem; z-index: 2; }
.ca-email-campaign-preview .ca-email-preview-frame { height: 640px; }

/* ---------- Pagina di modifica del template ---------- */
.ca-email-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .75rem; margin-bottom: 1rem; }
.ca-email-details-group { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .9rem; }
.ca-email-details-label { color: var(--cau-green); font-size: .74rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.ca-email-details-label > i { margin-right: .3rem; color: var(--cau-aqua); }

.ca-email-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 44%);
    gap: 1.25rem;
    align-items: start;
}

.ca-email-workspace-editor { min-width: 0; }
.ca-email-workspace-preview { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.ca-email-workspace-preview .ca-email-preview-frame { height: calc(100vh - 12rem); min-height: 560px; }
.ca-email-preview-options { display: flex; justify-content: flex-end; }
.ca-email-preview-options .ca-ui-switch-field { width: auto; }

@media (max-width: 1199.98px) {
    .ca-email-workspace { grid-template-columns: minmax(0, 1fr); }
    .ca-email-workspace-preview { position: static; }
    .ca-email-workspace-preview .ca-email-preview-frame { height: 720px; }
}

@media (max-width: 767.98px) {
    .ca-email-details { grid-template-columns: minmax(0, 1fr); }
    .ca-email-campaign-preview { position: static; }
}

@keyframes ca-email-pop {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ca-email-editor-toast,
    .ca-email-editor-palette,
    .ca-email-editor-panel { animation: none; }
    .ca-email-card,
    .ca-email-editor-palette-item,
    .ca-email-editor-palette-swatch { transition: none; }
}
