.communication-campaign-editor {
    --editor-purple: #5948e8;
    --editor-ink: #172136;
    --editor-muted: #93a2b7;
    --editor-line: #dfe5ed;
    min-height: calc(100vh - 70px);
    margin: -20px;
    color: var(--editor-ink);
    background: #f8fafc;
    font-size: 12px;
}
.communication-campaign-editor * { box-sizing: border-box; }
.communication-campaign-editor [hidden] { display: none !important; }
.communication-campaign-editor button,
.communication-campaign-editor input,
.communication-campaign-editor textarea,
.communication-campaign-editor select { font: inherit; }
.communication-campaign-editor button { cursor: pointer; }
.communication-campaign-editor a { color: inherit; text-decoration: none; }

.cceditor-topbar {
    min-height: 66px;
    padding: 9px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border-bottom: 1px solid var(--editor-line);
}
.cceditor-heading { display: flex; align-items: center; gap: 11px; }
.cceditor-heading > a { width: 31px; height: 31px; display: grid; place-items: center; color: #68778c; background: #f1f4f7; border-radius: 50%; font-size: 15px; }
.cceditor-heading > a:hover { color: #5747df; background: #ebebff; }
.cceditor-heading p { margin: 0 0 2px; color: #77869a; font-size: 8px; }
.cceditor-heading p span { color: #98a5b6; }
.cceditor-heading p i { margin: 0 5px; font-style: normal; }
.cceditor-heading h1 { margin: 0; color: #1b2538; font-size: 15px; font-weight: 780; letter-spacing: -.02em; }
.cceditor-top-actions { display: flex; align-items: center; gap: 8px; }
.cceditor-top-actions button { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px; font-size: 9px; font-weight: 730; }
.cceditor-top-actions .is-draft { color: #536176; background: #fff; border: 1px solid #dfe5ed; }
.cceditor-top-actions .is-create { color: #fff; background: linear-gradient(135deg, #6555ef, #4e3cdb); border: 0; box-shadow: 0 6px 14px rgba(79, 60, 219, .2); }
.cceditor-top-actions .is-archive { width: 36px; padding: 0; color: #e0525c; background: #fff0f1; border: 0; font-size: 15px; }

.cceditor-steps {
    min-height: 54px;
    padding: 0 25px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--editor-line);
}
.cceditor-steps button { padding: 0; display: flex; align-items: center; gap: 8px; color: #a0adbd; background: transparent; border: 0; font-size: 9px; font-weight: 650; white-space: nowrap; }
.cceditor-steps button i { width: 27px; height: 27px; display: grid; place-items: center; background: #eff2f6; border-radius: 50%; font-size: 9px; font-style: normal; }
.cceditor-steps button.is-active { color: #5a49e2; }
.cceditor-steps button.is-active i, .cceditor-steps button.is-complete i { color: #fff; background: #5d4ce8; box-shadow: 0 3px 8px rgba(84, 67, 224, .18); }
.cceditor-steps > b { width: 95px; height: 1px; margin: 0 12px; background: #e3e7ee; }

.cceditor-page { margin: 0 auto; padding: 25px 20px 45px; display: grid; grid-template-columns: minmax(0, 850px) 350px; align-items: start; gap: 22px; }
.cceditor-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cceditor-card { padding: 20px; background: #fff; border: 1px solid var(--editor-line); border-radius: 14px; box-shadow: 0 2px 4px rgba(24, 34, 50, .035); scroll-margin-top: 25px; }
.cceditor-card > header { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cceditor-card > header > i { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; font-size: 16px; font-style: normal; }
.cceditor-card > header > i.is-purple { color: #6555e9; background: #eef0ff; }
.cceditor-card > header > i.is-pink { color: #ee5272; background: #ffedf1; }
.cceditor-card > header > i.is-amber { color: #e8a20d; background: #fff8e4; }
.cceditor-card > header > i.is-blue { color: #1aa6d9; background: #e6f7fd; }
.cceditor-card > header > i.is-violet { color: #a451e4; background: #f7ebff; }
.cceditor-card > header > i.is-green { color: #13b886; background: #e7faf3; }
.cceditor-card h2 { margin: 0; color: #283449; font-size: 10px; font-weight: 780; }
.cceditor-card header p { margin: 2px 0 0; color: #94a3b7; font-size: 8px; }
.cceditor-field { margin-top: 12px; display: block; color: #56647a; font-size: 8px; font-weight: 700; }
.cceditor-field em { color: #ef5060; font-style: normal; }
.cceditor-field > small { color: #99a6b8; font-size: 7px; font-weight: 500; }
.cceditor-field > input,
.cceditor-field > textarea,
.cceditor-field > select {
    width: 100%;
    margin-top: 6px;
    padding: 0 12px;
    color: #445168;
    background: #fff;
    border: 1px solid #dce3eb;
    border-radius: 9px;
    outline: 0;
    font-size: 9px;
    font-weight: 400;
}
.cceditor-field > input, .cceditor-field > select { height: 39px; }
.cceditor-field > textarea { min-height: 73px; padding-block: 10px; resize: vertical; line-height: 1.5; }
.cceditor-field input:focus, .cceditor-field textarea:focus, .cceditor-field select:focus { border-color: #9389ef; box-shadow: 0 0 0 3px rgba(89, 72, 232, .07); }
.cceditor-field input::placeholder, .cceditor-field textarea::placeholder { color: #9eabbd; }
.cceditor-colors { margin: 15px 0 0; padding: 0; border: 0; }
.cceditor-colors legend { margin-bottom: 7px; color: #56647a; font-size: 8px; font-weight: 700; }
.cceditor-colors label { margin-right: 6px; position: relative; display: inline-block; cursor: pointer; }
.cceditor-colors input { position: absolute; opacity: 0; }
.cceditor-colors i { width: 25px; height: 25px; display: block; background: var(--swatch); border: 2px solid #fff; border-radius: 8px; box-shadow: 0 0 0 1px transparent; }
.cceditor-colors input:checked + i { box-shadow: 0 0 0 2px var(--swatch); }

.cceditor-objectives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cceditor-objectives label { min-height: 77px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #59677c; background: #fff; border: 1px solid #dce3eb; border-radius: 10px; cursor: pointer; font-size: 8px; font-weight: 680; text-align: center; }
.cceditor-objectives input, .cceditor-platforms input, .cceditor-content-types input { position: absolute; opacity: 0; pointer-events: none; }
.cceditor-objectives i { width: 29px; height: 29px; display: grid; place-items: center; color: #8392a7; background: #f0f4f7; border-radius: 9px; font-size: 15px; font-style: normal; }
.cceditor-objectives label:has(input:checked) { color: #5645df; background: #f0f2ff; border-color: #8176ed; box-shadow: inset 0 0 0 1px #b9b3f7; }
.cceditor-objectives label:has(input:checked) i { color: #5b4ae4; background: #e1e5ff; }

.cceditor-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cceditor-duration { margin-top: 13px; }
.cceditor-duration > span { color: #69778d; font-size: 8px; font-weight: 700; }
.cceditor-duration > div { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; }
.cceditor-duration button { min-height: 28px; padding: 0 10px; color: #6a788d; background: #fff; border: 1px solid #dce3eb; border-radius: 7px; font-size: 8px; font-weight: 650; }
.cceditor-duration button.is-active { color: #5847e2; background: #eef0ff; border-color: #a9a1f2; }
.cceditor-platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cceditor-platforms label { min-height: 94px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #657389; border: 1px solid #dce3eb; border-radius: 10px; cursor: pointer; font-size: 8px; font-weight: 680; }
.cceditor-platforms label > i { width: 31px; height: 31px; display: grid; place-items: center; color: #1875ce; background: #e4efff; border-radius: 9px; font-size: 16px; font-style: normal; }
.cceditor-platforms label.is-instagram > i { color: #e24d89; background: #ffe9f2; }
.cceditor-platforms label.is-twitter > i { color: #27344a; background: #edf1f5; }
.cceditor-platforms label.is-facebook > i { color: #286bd0; background: #e8efff; }
.cceditor-platforms label > b { position: absolute; bottom: 7px; color: #dbe2eb; font-size: 15px; }
.cceditor-platforms label:has(input:checked) { color: #5545de; background: #fafaff; border-color: #968def; }
.cceditor-platforms label:has(input:checked) > b { color: #6656e9; }
.cceditor-audience { margin-top: 6px; }
.cceditor-counter { height: 39px; margin-top: 6px; display: grid; grid-template-columns: 38px 1fr 38px; border: 1px solid #dce3eb; border-radius: 9px; overflow: hidden; }
.cceditor-counter button { color: #7e8ca1; background: #fff; border: 0; font-size: 15px; }
.cceditor-counter input { min-width: 0; color: #455268; background: #fff; border: 0; outline: 0; font-size: 10px; font-weight: 750; text-align: center; -moz-appearance: textfield; }
.cceditor-counter input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cceditor-content-types { margin: 15px 0 0; padding: 0; border: 0; }
.cceditor-content-types legend { margin-bottom: 7px; color: #657389; font-size: 8px; font-weight: 700; }
.cceditor-content-types > div { display: flex; flex-wrap: wrap; gap: 7px; }
.cceditor-content-types label { position: relative; cursor: pointer; }
.cceditor-content-types span { min-height: 28px; padding: 0 11px; display: inline-flex; align-items: center; color: #68768b; background: #fff; border: 1px solid #dce3eb; border-radius: 7px; font-size: 8px; font-weight: 650; }
.cceditor-content-types input:checked + span { color: #5746df; background: #eef0ff; border-color: #9289ef; }
.cceditor-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.cceditor-kpis .cceditor-field > span { height: 39px; margin-top: 6px; padding: 0 10px; display: flex; align-items: center; gap: 7px; color: #91a0b4; border: 1px solid #dce3eb; border-radius: 9px; }
.cceditor-kpis .cceditor-field > span:focus-within { border-color: #9389ef; box-shadow: 0 0 0 3px rgba(89, 72, 232, .07); }
.cceditor-kpis input { min-width: 0; flex: 1; color: #445168; background: transparent; border: 0; outline: 0; font-size: 9px; font-weight: 400; }
.cceditor-bottom { padding-top: 2px; display: flex; justify-content: space-between; }
.cceditor-bottom button { min-height: 37px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; font-size: 9px; font-weight: 700; }
.cceditor-bottom .is-previous { color: #a0adbd; background: #f5f7f9; border: 1px solid #e6eaf0; }
.cceditor-bottom .is-next { color: #fff; background: linear-gradient(135deg, #6655ef, #4f3ddb); border: 0; box-shadow: 0 6px 14px rgba(79, 60, 219, .18); }

.cceditor-aside { position: sticky; top: 18px; }
.cceditor-preview-panel { overflow: hidden; background: #fff; border: 1px solid var(--editor-line); border-radius: 14px; box-shadow: 0 2px 5px rgba(24, 34, 50, .04); }
.cceditor-preview-panel > header { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9edf2; }
.cceditor-preview-panel > header strong { color: #4c596e; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.cceditor-preview-panel > header span { padding: 4px 7px; display: inline-flex; align-items: center; gap: 4px; color: #15956e; background: #e3f8ef; border-radius: 99px; font-size: 7px; font-weight: 700; }
.cceditor-preview-panel > header span i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.cceditor-preview-card { margin: 17px 16px; position: relative; overflow: hidden; border: 1px solid #dfe5ed; border-radius: 11px; }
.cceditor-preview-accent { height: 5px; display: block; background: #6253ec; }
.cceditor-preview-card > div { padding: 13px; }
.cceditor-preview-status { padding: 4px 7px; display: inline-flex; align-items: center; gap: 4px; color: #15996e; background: #ddf8eb; border-radius: 99px; font-size: 7px; font-weight: 750; }
.cceditor-preview-status i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.cceditor-preview-card > div > strong { margin-top: 7px; display: block; overflow: hidden; color: #364258; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cceditor-preview-card > div > small { display: block; margin-top: 2px; color: #94a3b7; font-size: 7px; }
.cceditor-preview-card > div > p { margin: 10px 0; display: flex; align-items: center; gap: 5px; color: #718097; font-size: 7px; }
.cceditor-preview-progress { display: flex; justify-content: space-between; color: #718097; font-size: 7px; }
.cceditor-preview-progress b { color: #5948e3; }
.cceditor-preview-progress b i { font-style: normal; }
.cceditor-preview-card > div > em { height: 6px; margin: 6px 0 11px; display: block; background: #edf1f5; border-radius: 99px; }
.cceditor-preview-card dl { margin: 0; padding: 9px 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #f8fafc; border-radius: 8px; }
.cceditor-preview-card dl div { text-align: center; }
.cceditor-preview-card dl div + div { border-left: 1px solid #e5e9ef; }
.cceditor-preview-card dt { color: #94a3b7; font-size: 7px; font-weight: 500; }
.cceditor-preview-card dd { margin: 3px 0 0; color: #344157; font-size: 9px; font-weight: 760; }
.cceditor-tips { padding: 0 16px 13px; }
.cceditor-tips h3 { margin: 0 0 9px; color: #59677b; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.cceditor-tips p { margin: 0 0 8px; padding: 10px; display: flex; align-items: flex-start; gap: 7px; border-radius: 9px; font-size: 7px; line-height: 1.45; }
.cceditor-tips p iconify-icon { flex: 0 0 15px; font-size: 15px; }
.cceditor-tips p.is-purple { color: #5547d8; background: #eef0ff; }
.cceditor-tips p.is-amber { color: #b76b00; background: #fff8df; }
.cceditor-tips p.is-green { color: #138361; background: #e7faf2; }
.cceditor-ai { min-height: 36px; margin: 0 16px 16px; width: calc(100% - 32px); display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #fff; background: linear-gradient(90deg, #a644e5, #6550e9); border: 0; border-radius: 9px; font-size: 8px; font-weight: 740; }
.cceditor-toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; max-width: 340px; padding: 12px 15px; color: #fff; background: #293548; border-radius: 9px; box-shadow: 0 12px 32px rgba(22, 31, 45, .22); font-size: 10px; }

@media (max-width: 1100px) {
    .cceditor-page { max-width: 760px; grid-template-columns: minmax(0, 1fr) 255px; }
    .cceditor-steps > b { width: 45px; }
}
@media (max-width: 850px) {
    .cceditor-page { display: block; }
    .cceditor-aside { margin-bottom: 20px; position: static; }
    .cceditor-preview-panel { display: grid; grid-template-columns: 1fr 1fr; }
    .cceditor-preview-panel > header { grid-column: 1 / -1; }
    .cceditor-tips { padding-top: 17px; }
    .cceditor-ai { align-self: end; }
    .cceditor-steps { overflow-x: auto; }
    .cceditor-steps > b { min-width: 35px; }
}
@media (max-width: 650px) {
    .communication-campaign-editor { margin: -12px; }
    .cceditor-topbar { padding: 12px 14px; align-items: flex-start; flex-direction: column; }
    .cceditor-top-actions { width: 100%; }
    .cceditor-top-actions .is-draft, .cceditor-top-actions .is-create { flex: 1; }
    .cceditor-steps { padding-inline: 14px; }
    .cceditor-steps button span { display: none; }
    .cceditor-page { padding: 15px 11px 35px; }
    .cceditor-card { padding: 16px; }
    .cceditor-objectives { grid-template-columns: repeat(2, 1fr); }
    .cceditor-platforms { grid-template-columns: repeat(2, 1fr); }
    .cceditor-two-fields, .cceditor-kpis { grid-template-columns: 1fr; gap: 2px; }
    .cceditor-preview-panel { display: block; }
    .cceditor-bottom { gap: 10px; }
    .cceditor-bottom button { flex: 1; justify-content: center; }
}
