.promotion-head{display:flex;align-items:start;justify-content:space-between;gap:20px}
.promotion-head p{color:var(--bimi-muted);max-width:650px}
.promotion-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.promotion-filters .input{margin-left:auto;width:300px}
.promotion-table td{vertical-align:middle}
.promotion-table img{width:100px;height:50px;object-fit:contain;background:var(--bimi-background);border-radius:8px}
.promotion-table small{max-width:240px}
.promotion-editor{width:min(98vw,1180px);max-height:95vh;padding:0;gap:0}
.promotion-editor-head{position:sticky;top:0;z-index:2;background:var(--bimi-surface);padding:22px 28px;border-bottom:1px solid var(--bimi-line);display:flex;justify-content:space-between;gap:20px}
.promotion-editor-body{padding:22px 28px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px}
.promotion-form{display:grid;gap:18px}
.promotion-form fieldset{border:1px solid var(--bimi-line);border-radius:14px;padding:16px;display:grid;gap:12px;min-width:0}
.promotion-form legend{font-weight:600;color:var(--bimi-muted);padding:0 6px}
.promotion-form .grid.two{gap:12px}
.promotion-form .field>.input{width:100%}
.promotion-form .checkbox-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.promotion-form .checkbox-row label{display:flex;align-items:center;gap:5px}
.promotion-form .checkbox-row input{width:18px;height:18px}
.promotion-form select[multiple]{height:130px}
.promotion-review{position:sticky;top:85px;align-self:start;display:grid;gap:12px;max-height:calc(95vh - 120px);overflow:auto}
.promotion-review img{width:100%;aspect-ratio:2;object-fit:contain;border-radius:12px;background:var(--bimi-background)}
.promotion-actions{position:sticky;bottom:0;background:var(--bimi-surface);border-top:1px solid var(--bimi-line);padding:16px 28px;display:flex;align-items:center;gap:12px}
.promotion-actions .grow{flex:1}
.promotion-conflict{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.promotion-conflict pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bimi-background);border-radius:10px;padding:10px;max-height:170px;overflow:auto;font-size:12px}
.promotion-status{display:grid;gap:6px}
.promotion-status strong{text-transform:capitalize}
.promotion-upload{display:grid;gap:8px;border:1px dashed var(--bimi-control-outline);padding:14px;border-radius:12px}
@media(max-width:1350px){.promotion-editor-body{grid-template-columns:minmax(0,1fr) 290px}}
.welcome-offer-editor .offer-back{align-self:start}
.welcome-offer-editor .promotion-head{flex-wrap:wrap}
.welcome-offer-editor .promotion-head h2{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.offer-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.welcome-offer-editor .promotion-form fieldset{background:white;padding:24px;gap:18px}
.welcome-offer-editor .promotion-form label{line-height:1.5}
.welcome-offer-editor input[type=checkbox],.welcome-offer-editor input[type=radio]{accent-color:var(--bimi-primary-deep);min-width:18px;min-height:18px;vertical-align:middle;margin-right:8px}
.offer-checks{display:grid;gap:10px;margin-top:12px;max-height:260px;overflow:auto;align-content:start;padding:4px}
.offer-checks label{display:flex;align-items:start}
.offer-configured{border:1px solid var(--bimi-line);border-radius:16px;padding:18px;display:grid;gap:16px;position:sticky;top:20px;max-height:calc(100dvh - 40px);overflow:auto}
.offer-value{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;border-top:1px solid var(--bimi-line);padding:10px 0;font-size:13px}
.offer-value span,.offer-configured small{color:var(--bimi-muted)}
.offer-configured .card{padding:16px;display:grid;gap:10px}
.offer-configured h3,.offer-configured h4,.offer-configured p{margin:0}
.offer-configured h3{font-size:18px;line-height:1.4}
.offer-configured h4{font-size:14px}
.offer-code{border:1px dashed var(--bimi-control-outline);border-radius:6px;padding:6px 10px;justify-self:start}
.offer-welcome{background:var(--bimi-lavender);color:var(--bimi-ink)}
.offer-history-row{border-top:1px solid var(--bimi-line);padding:14px 0;display:grid;gap:6px}
.offer-history-row p{margin:0}
.welcome-offer-editor .input:disabled{background:var(--bimi-primary-soft)}
@media(max-width:1350px){.offer-editor-grid{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:1100px){.offer-editor-grid{grid-template-columns:1fr}.offer-configured{position:static}}

.coupon-status-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}

/* Approved rev21 campaign review/preview; conflict table from the approved BIMIFIRST handoff. */
.offer-pickers{display:flex;gap:10px;flex-wrap:wrap;align-items:start}
.offer-scope{margin:0;color:var(--bimi-muted);font-size:14px;line-height:1.5}
.offer-configured ul{margin:4px 0 0;padding-left:18px;font-size:13px;line-height:1.5}
.offer-configured .offer-code{padding:3px 10px;border-radius:8px;letter-spacing:.06em}
.offer-configured .card{gap:4px;padding:14px;border-radius:14px}
.offer-configured h3{font-size:20px;font-weight:600;letter-spacing:-.01em}
.offer-launch-review.report-dialog{width:65.3333rem;max-width:calc(100vw - 48px);max-height:min(54.6667rem,calc(100dvh - 64px));padding:1.8667rem;margin:2.6667rem auto 0;overflow:auto;background:var(--bimi-surface)}
.offer-launch-review[open]{display:grid;grid-template-columns:minmax(0,1fr) 21.3333rem;gap:1.6rem}
.offer-launch-main{min-width:0;display:flex;flex-direction:column;gap:14px}
.offer-launch-main h2{font-size:24px;margin:0}
.offer-launch-main p{margin:0;color:var(--bimi-muted);font-size:14px;line-height:1.5}
.offer-review-values{display:grid;grid-template-columns:13.3333rem minmax(0,1fr);gap:0;font-size:14px;line-height:1.5;margin:0}
.offer-review-values dt,.offer-review-values dd{padding:.6rem 0;border-top:1px solid var(--bimi-line);font-size:14px}
.offer-review-values dt{color:var(--bimi-muted)}
.offer-review-values dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.offer-launch-review .offer-configured{background:var(--bimi-background);position:static;align-self:stretch;align-content:start;max-height:none;overflow:visible}
.offer-conflict-table{table-layout:fixed;width:100%;margin:12px 0}
.offer-conflict-table th,.offer-conflict-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:10px;font-size:14px}
.offer-conflict-table th:first-child{width:26%}
.offer-conflict-table th:not(:first-child){width:37%}

.offer-launch-review .offer-configured h4{font-size:14px;font-weight:400;color:var(--bimi-muted)}

.offer-result{display:grid;gap:6px}.offer-result p{margin:0}.offer-history-row strong{font-weight:500;overflow-wrap:anywhere}


/* Corrected rev21 public-offer editor. */
.welcome-offer-editor .offer-back{justify-self:start;text-align:left;margin:0;padding:4px 0}
.welcome-offer-editor .offer-heading{align-items:center;justify-content:start;gap:12px}
.welcome-offer-editor .offer-heading h2{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.015em;overflow-wrap:anywhere;margin:0}
.offer-heading #promo-offer-meta{flex:1 1 180px;min-width:0;font-size:12px;line-height:1.5}
.offer-heading .toolbar{gap:8px}
.offer-editor-grid{grid-template-columns:minmax(0,1fr) 360px}
.welcome-offer-editor .promotion-form{gap:16px}
.welcome-offer-editor .offer-section{padding:24px;display:flex;flex-direction:column;gap:14px;min-width:0}
.offer-section h3{margin:0;font-size:18px;font-weight:600;line-height:1.3}
.welcome-offer-editor .offer-section .field{font-size:13px;color:var(--bimi-muted);font-weight:500;gap:6px}
.welcome-offer-editor .offer-section .input{font-size:15px;color:var(--bimi-ink);font-weight:400}
.welcome-offer-editor .offer-section .grid.two{gap:16px}
.welcome-offer-editor .offer-section small{font-size:12px;line-height:1.5;color:var(--bimi-muted)}
.offer-kind{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.offer-kind label{display:flex;align-items:start;gap:12px;padding:12px 14px;border:1px solid var(--bimi-line);border-radius:12px;font-weight:600;font-size:15px}
.welcome-offer-editor .offer-kind input{margin:2px 0 0;width:20px;height:20px;flex-shrink:0}
.welcome-offer-editor>.offer-editor-grid>.offer-configured{gap:10px}
.welcome-offer-editor .offer-configured h4{font-weight:500;color:var(--bimi-muted);font-size:13px}
.welcome-offer-editor .offer-editor-actions{display:grid;gap:8px}
.welcome-offer-editor .offer-configured small{font-size:12px;line-height:1.5}
.offer-heading-status{display:inline-flex}
.offer-heading-status>.badge{white-space:nowrap}
.offer-launch-message.error{color:var(--bimi-ink)}
@media(max-width:1350px){.offer-editor-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1100px){.offer-editor-grid{grid-template-columns:minmax(0,1fr)}}

.welcome-offer-editor .offer-check{display:flex;align-items:center;gap:10px;min-height:48px;font-size:15px;cursor:pointer}
.welcome-offer-editor .offer-check input{margin:0 4px;width:20px;height:20px;flex-shrink:0}
.offer-unsaved{background:var(--bimi-surface);border:1px solid var(--bimi-control-outline)}
.offer-launch-message{display:flex;gap:12px;align-items:center}
.offer-launch-message>span{flex:1;min-width:0}
.offer-launch-message button{flex-shrink:0}
.welcome-offer-editor .offer-back{margin-bottom:-8px}

.offer-configured{min-width:0}.offer-configured p,.offer-configured h3,.offer-configured li{overflow-wrap:anywhere}

.offer-small-icon{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.offer-pickers .btn{background:var(--bimi-surface);font-weight:500;gap:8px}
.offer-result{grid-template-columns:16px minmax(0,1fr);gap:16px;align-items:center}
.offer-result>div{display:grid;gap:4px}.offer-result p{font-size:14px}.offer-result strong{font-size:16px}

.welcome-offer-editor .offer-section .offer-field-error{color:var(--bimi-danger);font-size:12px;font-weight:400;line-height:1.5}
.welcome-offer-editor .input[aria-invalid=true]{border-color:var(--bimi-danger)}

.offer-list-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.offer-list-heading p{font-size:13px;color:var(--bimi-muted);max-width:820px}
.offer-list{overflow:hidden}.offer-list .table{table-layout:fixed;font-size:13px}.offer-list .table th,.offer-list .table td{padding:12px 16px;white-space:normal;overflow-wrap:anywhere}.offer-list .table td small{font-size:12px;color:var(--bimi-muted);margin-top:5px;line-height:1.5}.offer-list .table td strong{font-size:14px}.offer-list-actions{display:grid;gap:4px}.offer-list-actions .link{justify-self:start;text-align:left;font-size:13px}.offer-list-actions .btn{white-space:normal;padding:8px 12px}.offer-list .badge{white-space:normal}
@media(max-width:1350px){.offer-list .table th,.offer-list .table td{padding:12px 10px}}
.offer-retry{justify-self:start}

.welcome-offer-editor .offer-section .field{align-content:start}
.offer-list .table th{overflow-wrap:normal}.offer-list .offer-state{gap:5px;white-space:nowrap}.offer-state svg{width:13px;height:13px;flex:0 0 13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.offer-list .offer-ended{border:1px solid var(--bimi-control-outline);background:var(--bimi-surface)}

@media(max-width:1100px){.offer-list .table th,.offer-list .table td{padding:12px 6px}}

.offer-code{min-width:0;max-width:100%;overflow-wrap:anywhere}.offer-configured .card{min-width:0}

/* Campaign test sends (campaign-banner-tests.js) */
.banner-tests{gap:12px}.banner-tests h3,.banner-tests p{margin:0}.banner-tests .toolbar .grow{flex:1 1 100%;min-width:0}
.banner-tests svg{justify-self:center;width:180px;height:180px}.banner-tests code{overflow-wrap:anywhere;font-size:12px}
.banner-test-preview{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--bimi-line);border-radius:12px;background:var(--bimi-background)}
.banner-test-preview small,.banner-test-result small{color:var(--bimi-muted)}
.banner-test-result{display:grid;gap:6px;justify-items:start}.banner-test-check{display:flex;gap:8px;align-items:center;font-size:14px}

.promotion-recipient-options{max-height:240px;overflow:auto;padding:8px 0}.promotion-recipient-options .offer-check{padding:8px 4px}
