#crm-loyalty-rewards{grid-column:1/-1!important;min-width:0;width:100%;box-sizing:border-box;padding:22px!important;background:#fff!important}
.campaign-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.campaign-heading h3{margin:5px 0 0;font-size:22px;color:#422b58!important}.campaign-eyebrow{font-size:10px;color:#92759f;letter-spacing:.1px}.campaign-delivery-badge{font-size:10px;color:#987b3b;background:#fcf7e9;border:1px solid #eee1b8;border-radius:20px;padding:7px 10px}
.campaign-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:22px}.campaign-stepper button{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 10px;border:1px solid #e7e0ec;border-radius:11px;background:#faf9fc;color:#8c7b97;font:inherit;font-size:12px}.campaign-stepper b{width:26px;height:26px;border-radius:50%;background:#eee8f4;display:grid;place-items:center;font-size:12px}.campaign-stepper button[aria-current=step]{color:#694389;background:#f1eaf8;border-color:#bf9ed7;box-shadow:0 3px 12px #6e40860a}.campaign-stepper button[aria-current=step] b{background:#77529b;color:white}.campaign-stepper button:disabled{opacity:.6;cursor:default}
.campaign-panel{min-width:0}.campaign-step-heading{display:flex;gap:12px;margin-bottom:20px;align-items:center}.campaign-step-heading>span{font-size:29px;font-weight:800;color:#e5dbea;line-height:1}.campaign-step-heading h4{margin:0 0 5px;color:#4b335d;font-size:15px}.campaign-step-heading p{margin:0;font-size:11px;color:#918298;line-height:1.9}
.campaign-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.campaign-fields label,.campaign-match-mode{display:grid;gap:6px;font-size:11px;color:#66556e;min-width:0}.campaign-fields label small{font-size:9px;color:#a399aa}.campaign-wide{grid-column:1/-1}.campaign-fields :is(input,select),.campaign-match-mode select,[data-person-search]{box-sizing:border-box;width:100%;height:40px;min-height:40px;padding:8px 10px;border:1px solid #e0d8e7;border-radius:8px;background:#fff;color:#493851;font:inherit;font-size:12px}.campaign-fields input:focus,.campaign-fields select:focus,[data-person-search]:focus{outline:2px solid #e8ddf0;outline-offset:1px;border-color:#ab86c1}.campaign-fields label[hidden],.campaign-target-grid[hidden],[data-target-pickers][hidden]{display:none!important}
.campaign-soft-note{display:flex;gap:9px;align-items:center;margin-top:20px;padding:13px;border-radius:10px;background:#f8f5fb;color:#96829f;font-size:11px}.campaign-soft-note span{color:#9871b4;font-size:19px}.campaign-actions{display:flex;align-items:center;gap:12px;margin-top:22px;border-top:1px solid #eee8f2;padding-top:16px}.campaign-actions>[data-campaign-status]{flex:1;font-size:11px;color:#6e7f71;line-height:1.8;margin:0}.campaign-actions>[data-campaign-status].is-error{color:#ad465a}.campaign-primary,.campaign-secondary{font:inherit;font-size:11px!important;border-radius:8px;padding:10px 15px;border:1px solid #d9c8e4;background:#fff;color:#75528d;cursor:pointer;white-space:nowrap}.campaign-primary{background:#79519c;color:white;border-color:#79519c;box-shadow:0 3px 8px #633c8215}.campaign-primary:disabled{opacity:.6}.campaign-actions button[hidden]{display:none}
.campaign-all,.campaign-inline{display:flex!important;align-items:center;gap:8px;font-size:12px;color:#5b3e70}.campaign-all{padding:13px;background:#f7f3fb;border-radius:9px;border:1px solid #e9dfef;margin-bottom:14px}.campaign-all input,.campaign-inline input{width:14px!important;height:14px!important;min-height:0!important;accent-color:#80579e}.campaign-target-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.campaign-target-grid details,.campaign-custom{padding:12px;border:1px solid #e6dfeb;border-radius:10px;min-width:0;background:#fff}.campaign-target-grid summary,.campaign-custom summary{font-size:12px;color:#67516f;cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px}.campaign-target-grid summary:before,.campaign-custom summary:before{content:'⌄';color:#a38aae;font-size:15px}.campaign-target-grid summary b{font-weight:400;font-size:10px;margin-inline-start:auto;border-radius:12px;background:#f0eaf5;color:#926ba9;padding:3px 7px}.campaign-chips{display:flex;flex-wrap:wrap;gap:6px;max-height:200px;overflow:auto;margin-top:12px}.campaign-chips label{position:relative;cursor:pointer}.campaign-chips input{position:absolute;opacity:0;width:1px;height:1px}.campaign-chips span{display:block;padding:6px 9px;border:1px solid #e6e0eb;border-radius:7px;font-size:10px;color:#8d7c96;background:#faf9fc}.campaign-chips input:checked+span{color:#714494;background:#ede3f5;border-color:#b998cf}.campaign-chips input:focus-visible+span{outline:2px solid #a379ba}.campaign-match-mode{margin:13px 0;max-width:420px}.campaign-custom{margin-top:15px;background:#fcfbfd}.campaign-custom summary>span{font-size:10px;color:#a092a9;margin-inline-start:8px}.campaign-custom[open]>.campaign-fields{margin-top:15px}.campaign-muted{font-size:10px;color:#998aa2;line-height:1.9;margin:10px 0 0}.campaign-audience-summary{display:flex;gap:15px;align-items:center;font-size:11px;color:#8b7c93;padding:14px 0}.campaign-audience-summary strong{color:#765190;font-size:13px}
.campaign-person-results{display:grid;max-height:170px;overflow:auto;margin-top:6px}.campaign-person-results button{display:flex;justify-content:space-between;gap:8px;border:0;background:#f8f5fa;padding:9px 7px;font:inherit;font-size:10px;color:#66516e;border-radius:5px;margin-bottom:3px}.campaign-person-results span{color:#a08aa9;direction:ltr}.campaign-selected-people{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.campaign-selected-people button{font:inherit;font-size:10px;border:1px solid #dfd1e9;background:#f4edf8;color:#77538d;padding:5px 7px;border-radius:7px}.campaign-reward-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:15px}.campaign-reward-choices button{display:flex;gap:8px;align-items:center;justify-content:center;border:1px solid #e5dbea;border-radius:10px;background:#fcfbfd;color:#9b87a6;padding:12px 7px;font:inherit;font-size:11px}.campaign-reward-choices i{font-size:19px;font-style:normal}.campaign-reward-choices button[aria-pressed=true]{border-color:#b089cb;background:#f0e7f7;color:#72428f}.campaign-schedule{margin-top:18px;padding:16px;border-radius:12px;background:#faf8fc;border:1px solid #ece4f1}.campaign-time-row{display:flex;gap:6px}.campaign-time-row button{background:#fff;border:1px solid #e2d7e9;border-radius:7px;color:#89679b;font:inherit;font-size:10px;white-space:nowrap;padding:5px 8px}
.campaign-message{margin-top:20px;padding:16px;border:1px solid #ddd0e7;border-radius:13px;background:#fff}.campaign-message-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.campaign-message-heading strong{font-size:13px;color:#5b3c70}.campaign-message-heading button{font:inherit;font-size:10px;background:none;border:0;color:#9b7daf;cursor:pointer}.campaign-token-bar{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0 8px}.campaign-token-bar button{background:#f5eff9;border:1px solid #e8dfee;border-radius:5px;padding:4px 7px;color:#9473a5;font:inherit;font-size:9px}.campaign-message-editor{position:relative}.campaign-message textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:140px;border:1px solid #e0d4e9;border-radius:9px;font:inherit;font-size:12px;line-height:2;color:#54415f;padding:12px 12px 29px;background:#fdfbff}.campaign-message-editor>small{position:absolute;bottom:12px;inset-inline-end:11px;font-size:9px;color:#a08bac;pointer-events:none}.campaign-message-samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.campaign-message-samples article{padding:11px;border-radius:9px;background:#f8f5fb;border:1px solid #eee6f3}.campaign-message-samples strong{font-size:10px;color:#9371a8}.campaign-message-samples p{font-size:11px;color:#796285;white-space:pre-wrap;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere}.campaign-review{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;background:#f4eff8;border:1px solid #e5d9ef;border-radius:11px;padding:15px;margin:18px 0 12px;font-size:11px;color:#8b7897}.campaign-review>div{display:grid;gap:8px}.campaign-review small{font-size:10px;color:#9a85a7}.campaign-review strong{font-size:18px;color:#79548f}.campaign-review p{grid-column:1/-1;margin:4px 0 0;font-size:10px;line-height:1.8;color:#967e9e}.campaign-history{margin-top:20px;border-top:1px solid #eee8f3;padding-top:15px}.campaign-history summary{font-size:11px;color:#a18ba9;cursor:pointer}.campaign-history summary b{font-weight:400}.campaign-history article{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid #eee8f3;padding:12px 0;font-size:10px;color:#a28aaa}.campaign-history article>div{display:grid;gap:5px}.campaign-history article strong{font-size:12px;color:#6b4e7a}.campaign-history article small{font-size:10px;color:#a18cab}.campaign-history button{font:inherit;font-size:10px;padding:5px 9px;color:#a06475;background:#fff;border:1px solid #ebd9df;border-radius:6px}
@media(max-width:650px){#crm-loyalty-rewards{padding:15px!important}.campaign-heading{align-items:start;flex-wrap:wrap}.campaign-heading h3{font-size:19px}.campaign-stepper{gap:6px}.campaign-stepper button{padding:10px 5px;gap:6px;font-size:10px}.campaign-stepper b{width:22px;height:22px}.campaign-fields,.campaign-target-grid,.campaign-message-samples{grid-template-columns:1fr}.campaign-reward-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.campaign-review{grid-template-columns:1fr 1fr}.campaign-actions{flex-wrap:wrap}.campaign-actions>[data-campaign-status]{flex-basis:100%;order:3}.campaign-actions>[data-next]{margin-inline-start:auto}.campaign-custom summary{flex-wrap:wrap}.campaign-audience-summary{flex-wrap:wrap;gap:6px}.campaign-history article{flex-wrap:wrap}}
/* Compact automatic scoring, shared CRM messaging refinements. */
#crm-score-policy-form.crm-score-rate-card{padding:9px 12px!important;gap:10px!important;margin-bottom:12px!important;border-radius:10px!important;min-height:0!important;box-shadow:none!important;display:flex;align-items:center;flex-wrap:wrap}
#crm-score-policy-form .crm-score-rate-icon{width:29px!important;height:29px!important;font-size:17px!important}
#crm-score-policy-form .crm-score-rate-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap;flex:1}
#crm-score-policy-form .crm-score-rate-summary strong{font-size:12px!important}
#crm-score-policy-form .crm-score-rate-summary :is(small,span){font-size:10px!important}
#crm-score-policy-form>button{font-size:10px;padding:6px 10px}
#crm-score-policy-status:empty{display:none}
#crm-score-rate-editor:not([hidden]){flex-basis:100%}
#crm-loyalty-sms{grid-column:1/-1!important;width:100%;padding:22px!important;background:#fff!important;min-width:0}
#crm-loyalty-sms h3,#crm-auto-workflows-root h3{color:#422b58!important}
.sms-workspace-tabs{display:flex;gap:8px;border-bottom:1px solid #ece5f1;padding-bottom:12px;margin-bottom:20px}.sms-workspace-tabs button{font:inherit;font-size:12px;padding:9px 15px;border:1px solid #ded0e9;border-radius:9px;background:#fff;color:#715285;cursor:pointer}.sms-workspace-tabs button[aria-selected=true]{color:#fff;background:#79519c;border-color:#79519c}
#crm-auto-workflows-root[hidden],#crm-auto-campaign-root[hidden]{display:none!important}
.sms-credit-button{border:1px solid #ddd0e8;background:#f8f4fc;border-radius:20px;padding:8px 12px;color:#75518e;font:inherit;font-size:11px;white-space:nowrap;cursor:pointer}.sms-credit-button small{font-size:9px}
.sms-section-title{font-size:13px;color:#624275;margin-top:23px}.sms-service-note{font-size:11px!important;color:#8f7f98!important;line-height:1.9!important;font-weight:400!important}.sms-trigger-options{margin:14px 0}.sms-trigger-options>p{font-size:12px;color:#735984}
.sms-file-import{border:1px dashed #d9c9e4;border-radius:10px;padding:15px;margin-top:16px;background:#fbf9fd}.sms-file-import label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#654779;flex-wrap:wrap}.sms-file-import input{max-width:100%;font:inherit;font-size:10px;color:#927d9f}.sms-file-import small{display:block;color:#9a8ca2;font-size:10px;line-height:1.9}.sms-file-import p{font-size:11px;color:#715085}
.sms-message-editor{position:relative;margin-top:14px}.sms-message-editor label{display:grid;gap:8px;font-size:12px;color:#664a78}.sms-message-editor textarea{width:100%;box-sizing:border-box;border:1px solid #ddcce9;background:#fcfaff;color:#44314f;padding:14px 14px 32px;border-radius:10px;resize:vertical;min-height:170px;line-height:2;font:inherit;font-size:12px}.sms-message-editor>small{position:absolute;bottom:10px;left:13px;color:#a28bad;font-size:9px;pointer-events:none}
.sms-token-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.sms-token-actions button{font:inherit;font-size:10px;color:#8d6aa5;border:0;background:#f5eff9;border-radius:5px;padding:5px 8px;cursor:pointer}
.sms-operator-policy{border:1px solid #e6dfeb;background:#faf8fc;border-radius:10px;padding:13px;margin-top:17px}.sms-operator-policy p{font-size:11px!important;color:#8d7e96!important;line-height:1.9}.sms-operator-policy .campaign-inline{font-size:11px}
.sms-reward-select{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 17px}.sms-reward-select button{border:1px solid #e1d5e9;background:#fff;padding:12px 8px;border-radius:9px;font:inherit;font-size:12px;color:#8b719c;cursor:pointer}.sms-reward-select button[aria-pressed=true]{border-color:#ae83ca;background:#f0e7f8;color:#6c3f8c}
.sms-summary-box{border:1px solid #e4daed;border-radius:11px;padding:17px;background:#faf7fd;margin-top:18px;color:#705381;font-size:12px;line-height:1.9}.sms-summary-box>small{font-size:10px;color:#a08aaa}.sms-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sms-metrics span{display:grid;gap:5px;font-size:10px;color:#9b85a9}.sms-metrics b{font-size:21px;color:#76518e}.sms-person-preview{background:#fff;border:1px solid #e8dfef;border-radius:9px;padding:12px;margin-top:13px}.sms-person-preview strong{font-size:11px}.sms-person-preview p{font-size:12px!important;color:#654c75!important;overflow-wrap:anywhere;line-height:1.9}.sms-person-preview small{font-size:9px;color:#9a85a7}
.sms-history{margin-top:25px;border-top:1px solid #eee7f3;padding-top:15px}.sms-history header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sms-history h4{font-size:13px;color:#6a4e7b}.sms-history-row{display:flex;align-items:center;gap:12px;border:1px solid #e8e1ef;background:#fbfafc;border-radius:9px;margin-bottom:8px;padding:12px}.sms-history-row>div{flex:1;min-width:0}.sms-history-row strong{font-size:12px;color:#634676;overflow-wrap:anywhere}.sms-history-row small{display:block;font-size:10px;color:#a18eac;margin-top:5px}.sms-history-row>span{font-size:10px;color:#9a89a4}.sms-history-row.is-active{border-inline-start:3px solid #9c7ab5;background:#f8f3fc}
.crm-sms-credit-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(470px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #e1d5ea;border-radius:16px;padding:24px;background:#fff;color:#634875;box-shadow:0 22px 80px #34223d38;direction:rtl;font-family:inherit;box-sizing:border-box}.crm-sms-credit-dialog::backdrop{background:#271a3566;backdrop-filter:blur(3px)}.crm-sms-credit-dialog h3{margin:0;font-size:18px}.crm-sms-credit-dialog p{font-size:11px;line-height:1.9;color:#9a83a9}.crm-sms-credit-dialog .sms-credit-total{font-size:30px;color:#79519c;font-weight:750;margin:15px 0 4px}.sms-credit-total small{font-size:11px;font-weight:400}.crm-sms-credit-dialog label{display:grid;gap:8px;font-size:12px}.crm-sms-credit-dialog input{background:#fff;color:#684c79;border:1px solid #ded2e7;border-radius:8px;padding:10px;font:inherit;width:100%;box-sizing:border-box}.crm-sms-credit-dialog footer{display:flex;gap:8px;margin-top:20px}.crm-sms-credit-dialog details{border-top:1px solid #eee5f4;margin-top:18px;padding-top:12px;font-size:11px}
@media(max-width:620px){#crm-loyalty-sms{padding:13px!important}.sms-reward-select{grid-template-columns:repeat(2,minmax(0,1fr))}.sms-history-row{flex-wrap:wrap}.sms-history-row>div{flex-basis:60%}.sms-workspace-tabs button{padding:8px 10px;font-size:11px}.sms-metrics{gap:5px}.sms-history header{flex-wrap:wrap}.campaign-heading{flex-wrap:wrap}}
.campaign-actions>[data-status]{flex:1;font-size:11px;color:#6e7f71;line-height:1.8;margin:0}.campaign-actions>[data-status].is-error{color:#ad465a}
.sms-campaign-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.campaign-reset{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:10px;padding:7px 10px;border:1px solid #e5deeb;border-radius:8px;background:#fff;color:#957da5;cursor:pointer}.campaign-reset:hover{background:#f8f4fb;color:#75508e;border-color:#cdb6dd}.campaign-reset>span{font-size:16px;line-height:1}.campaign-custom-enable{margin-top:14px;font-size:11px}.campaign-custom-fields{border:0;padding:14px 0 0;margin:0;min-width:0}.campaign-custom-fields[hidden]{display:none!important}
.campaign-interval-control{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:7px;min-width:0}.campaign-interval-control select{padding-inline:8px}
/* Errors remain attached to the control, with text as well as color. */
.crm-invalid-field{outline:1px solid #db8d9a!important;outline-offset:5px;border-radius:7px;background-color:#fff6f7!important;scroll-margin-block:140px}
.crm-invalid-field :is(input:not([type=checkbox]),select,textarea,.jalali-date-trigger){border-color:#d58796!important;background:#fff4f5!important;color:#793c4a!important}
.crm-invalid-field input[type=checkbox]{accent-color:#be596d}
.crm-field-error{display:block!important;flex-basis:100%;grid-column:1/-1;font-size:10px!important;font-weight:400!important;line-height:1.8!important;margin-top:6px!important;color:#ad4059!important;white-space:normal!important}
.crm-invalid-field .campaign-chips{background:#fff6f7}
.campaign-template-picker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:11px;color:#78548e}.campaign-template-picker select{font:inherit;font-size:11px;min-width:180px;padding:8px 10px;border:1px solid #dfd0e9;border-radius:8px;background:#fff;color:#77508e}
.campaign-saved-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.campaign-history .campaign-saved-card,.sms-history .campaign-saved-card{display:block!important;margin:0!important;padding:16px!important;border:1px solid #e3d8ec!important;border-radius:13px;background:linear-gradient(145deg,#fff,#faf7fd);min-width:0;box-shadow:0 4px 14px #78559409}.campaign-saved-card>header{display:flex;gap:9px;justify-content:space-between;align-items:start}.campaign-saved-card header strong{display:block;color:#59366e;font-size:13px;overflow-wrap:anywhere}.campaign-saved-card header small{display:block;color:#a18baa;font-size:10px;margin-top:6px;line-height:1.8}.campaign-card-state{flex:0 0 auto;border:1px solid #e3d6ec;padding:4px 8px;font-size:9px;color:#9978ad;background:#f4edf9;border-radius:14px}.campaign-saved-card details{border-top:1px solid #eee6f3;padding-top:10px;margin-top:12px;font-size:10px;line-height:1.9;color:#9276a2}.campaign-saved-card summary{cursor:pointer;color:#80599a;font-size:11px}.campaign-saved-card footer{display:flex;gap:8px;margin-top:13px}.campaign-saved-card footer button{font:inherit;font-size:10px;border:1px solid #dbc8e7;background:#fff;color:#805297;padding:7px 11px;border-radius:7px;cursor:pointer}.campaign-saved-card footer button:first-child{color:#fff;background:#80559e;border-color:#80559e}.campaign-mini-timeline{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:16px;padding:11px 7px;background:#f6f0fa;border-radius:9px;text-align:center}.campaign-mini-timeline span{font-size:9px;line-height:1.8;color:#a18baa}.campaign-mini-timeline b{font-size:10px;color:#7c598f;font-weight:500}.campaign-mini-timeline i{font-size:12px;color:#c4afd1;font-style:normal}.campaign-card-message{white-space:pre-wrap;color:#745684;overflow-wrap:anywhere;font-size:11px!important;line-height:1.9!important}.campaign-default-badge{display:inline-block;padding:4px 8px;border:1px solid #e6d9ef;background:#faf6fd;color:#a18aaa;font-size:9px;border-radius:7px;margin-top:10px}
.campaign-receipt-dialog{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;width:min(650px,calc(100vw - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #dfd2e8;border-radius:18px;padding:23px;background:#fff;color:#634477;font-family:inherit;box-shadow:0 22px 90px #28163344}.campaign-receipt-dialog::backdrop{background:#26143466;backdrop-filter:blur(4px)}.campaign-receipt-dialog header{display:flex;align-items:center;gap:12px}.campaign-receipt-dialog header>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;background:#ede4f5;color:#8657a3;border-radius:50%;font-size:23px}.campaign-receipt-dialog h3{font-size:18px;color:#634179;margin:0}.campaign-receipt-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.campaign-receipt-facts>div{display:grid;gap:5px;background:#faf7fd;padding:11px;border:1px solid #ede5f3;border-radius:9px;min-width:0}.campaign-receipt-facts small{font-size:10px;color:#a38dac}.campaign-receipt-facts strong{font-size:12px;color:#74518a;font-weight:550;overflow-wrap:anywhere}.campaign-receipt-message{border:1px solid #dfd1e9;padding:13px;border-radius:10px;background:#fdfbff}.campaign-receipt-message>small{font-size:10px;color:#a58bad}.campaign-receipt-message p{font-size:12px;color:#705084;line-height:2;overflow-wrap:anywhere}.campaign-receipt-service{font-size:10px;line-height:1.9;color:#a28baa}.campaign-receipt-dialog footer{display:flex;gap:8px;margin-top:19px;flex-wrap:wrap}.campaign-receipt-success{font-size:13px;color:#5e8b75;margin:15px 0}.campaign-receipt-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #ded0e8;border-radius:9px;padding:12px;font:inherit;font-size:12px;line-height:2;color:#634477;background:#fcfaff}
@media(max-width:700px){.campaign-saved-grid{grid-template-columns:minmax(0,1fr)}.campaign-receipt-dialog{padding:16px}.campaign-receipt-dialog h3{font-size:15px}.campaign-receipt-facts{gap:7px}.campaign-receipt-facts>div{padding:9px}.campaign-mini-timeline b{font-size:9px}}
.campaign-history .campaign-saved-card>.campaign-mini-timeline{display:flex;gap:6px}
.campaign-saved-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}.campaign-step-heading h4:focus{outline:none}

/* CRM follow-up and SMS report workspace */
#crm-follow-up-card.crm-followups-panel{padding:clamp(16px,2.2vw,24px)!important;border:1px solid #e7deed!important;border-radius:18px!important;background:linear-gradient(145deg,#fff 0%,#fcfaff 100%)!important;box-shadow:0 12px 34px #3723450a}
#crm-follow-up-card>.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px!important;padding-bottom:13px;border-bottom:1px solid #efe9f3}
#crm-follow-up-card>.section-heading h3{color:#382747;font-size:17px;font-weight:800}
#crm-follow-up-card>.section-heading>span{padding:5px 9px;border:1px solid #ede5f2;border-radius:999px;background:#faf7fc;color:#796b83;font-size:10px}
#crm-follow-up-card .crm-followup-list{gap:9px}
#crm-follow-up-card .crm-followup-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid #ebe5ef;border-radius:12px;background:#fff;box-shadow:0 3px 12px #38244708}
#crm-follow-up-card .crm-followup-row:last-child{border-bottom:1px solid #ebe5ef}
#crm-follow-up-card .crm-followup-row.is-overdue{border-color:#efd8d7;background:linear-gradient(100deg,#fff 0%,#fff9f8 100%)}
#crm-follow-up-card .crm-followup-row>div:first-child{display:grid;gap:4px;min-width:0}
#crm-follow-up-card .crm-followup-row>div:first-child strong{color:#3e3049;font-size:12px}
#crm-follow-up-card .crm-followup-row>div:first-child small{color:#796e82;font-size:10px}
#crm-follow-up-card .crm-followup-row .crm-follow-up{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:#f5f0f8;color:#76518e;font-size:9px}
#crm-follow-up-card .crm-followup-row.is-overdue .crm-follow-up{background:#fbebea;color:#a24e50}
#crm-follow-up-card .crm-followup-row>div:last-child{display:flex;flex-wrap:wrap;gap:7px!important}
#crm-follow-up-card .crm-followup-row button{min-height:34px;padding:6px 10px;border:1px solid #e5dbea;border-radius:8px;background:#fff;color:#68487d;font:inherit;font-size:10px;font-weight:700;cursor:pointer}
#crm-follow-up-card .crm-followup-row button[data-crm-followup-complete]{border-color:#d9e9df;background:#f2f8f4;color:#467054}
#crm-follow-up-card .crm-followup-row button:hover{border-color:#bfa7cf;background:#faf7fc}

.crm-sms-report-launch{display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:12px;width:100%;min-height:70px;margin:0 0 14px;padding:12px 15px;border:1px solid #e5dbea;border-radius:14px;background:linear-gradient(110deg,#fff,#faf7fc);color:#4e3a5f;text-align:right;font:inherit;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}
.crm-sms-report-launch:hover{border-color:#cdb8dc;box-shadow:0 8px 22px #583a7010;transform:translateY(-1px)}
.crm-sms-report-launch[hidden]{display:none!important}
.crm-sms-report-launch-icon,.sms-report-row-mark,.sms-report-detail-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #eadff0;border-radius:12px;background:#f7f1fa;color:#76518e;font-size:19px}
.crm-sms-report-launch>span:nth-child(2){display:grid;gap:4px;min-width:0}
.crm-sms-report-launch strong{color:#493359;font-size:12px}
.crm-sms-report-launch small{color:#82768b;font-size:10px;line-height:1.7}
.crm-sms-report-launch-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#f4eef8;color:#785292;font-size:15px}
.sms-report-workspace{min-width:0;padding:clamp(12px,2vw,18px);border:1px solid #e9e2ee;border-radius:15px;background:#fff;box-shadow:0 8px 24px #38244708}
.sms-report-workspace[hidden]{display:none!important}
.sms-report-heading,.sms-report-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:1px solid #eee8f2}
.sms-report-heading>div:first-child,.sms-report-detail-heading>div:first-child{min-width:0}
.sms-report-heading>div:first-child>small,.sms-report-detail-heading>div:first-child>small{color:#907a9e;font-size:9px;font-weight:750}
.sms-report-heading h4,.sms-report-detail-heading h4{margin:3px 0;color:#3e2d4b;font-size:15px;font-weight:800;overflow-wrap:anywhere}
.sms-report-heading p{margin:3px 0 0;color:#82778a;font-size:10px;line-height:1.8}
.sms-report-heading-actions{display:flex;flex:0 0 auto;gap:6px}
.crm-report-refresh,.crm-report-close{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 9px;border:1px solid #e5dbea;border-radius:8px;background:#fff;color:#6f527f;font:inherit;font-size:10px;cursor:pointer}
.crm-report-close{width:34px;padding:0;color:#84788b;font-size:18px}
.crm-report-refresh:hover,.crm-report-close:hover{border-color:#cdb8dc;background:#faf7fc}
.sms-report-rows{display:grid;gap:8px;margin-top:12px}
.sms-report-row{display:grid;grid-template-columns:40px minmax(150px,1fr) minmax(210px,.9fr) auto;align-items:center;gap:12px;width:100%;padding:10px 12px;border:1px solid #eee8f2;border-radius:11px;background:#fff;color:#4d3b59;text-align:right;font:inherit;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
.sms-report-row:hover,.sms-report-row:focus-visible{border-color:#cdb8dc;background:#fcfaff;box-shadow:0 4px 15px #4e365d0a;outline:0}
.sms-report-row-mark{width:36px;height:36px;border-radius:10px;font-size:16px}
.sms-report-row-main{display:grid;gap:4px;min-width:0}
.sms-report-row-main strong{color:#493457;font-size:11px;overflow-wrap:anywhere}
.sms-report-row-main small{color:#897e91;font-size:9px;line-height:1.6}
.sms-report-row-stats{display:flex;align-items:center;gap:6px;min-width:0}
.sms-report-row-stats>span{display:grid;gap:2px;min-width:58px;padding:5px 7px;border:1px solid #f0ebf3;border-radius:8px;background:#fbf9fc;text-align:center}
.sms-report-row-stats b{color:#5c466b;font-size:11px}
.sms-report-row-stats small{color:#918698;font-size:8px}
.sms-report-row-action{display:inline-flex;align-items:center;gap:6px;color:#795592;font-size:9px;white-space:nowrap}
.sms-report-row-action b{font-size:14px}
.sms-report-detail{margin-top:16px;padding:14px;border:1px solid #e9e2ee;border-radius:13px;background:#fdfcff}
.sms-report-detail-heading{padding-bottom:10px}
.sms-report-detail-mark{width:34px;height:34px;border-radius:10px;font-size:16px}
.sms-report-tabs{display:flex;gap:5px;overflow-x:auto;margin:12px 0;padding:4px;border:1px solid #eee8f3;border-radius:10px;background:#f8f5fa;scrollbar-width:thin}
.sms-report-tabs button{flex:0 0 auto;min-height:34px;padding:6px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:#817489;font:inherit;font-size:10px;cursor:pointer}
.sms-report-tabs button[aria-pressed=true]{border-color:#e4d8eb;background:#fff;color:#624175;font-weight:750;box-shadow:0 2px 7px #3523420b}
.sms-report-tabs button:focus-visible,.sms-report-pagination button:focus-visible{outline:2px solid #a987bb;outline-offset:2px}
.sms-report-workspace .sms-metrics{gap:8px;margin-bottom:11px}
.sms-report-workspace .sms-metrics>span{padding:10px 12px;border:1px solid #eee8f2;border-radius:10px;background:#fff}
.sms-report-workspace .sms-metrics>span small{color:#83778a;font-size:9px}
.sms-report-workspace .sms-metrics b{font-size:17px;color:#654579}
.sms-report-table{max-width:100%;overflow:auto;border:1px solid #ece6f0;border-radius:10px;background:#fff;scrollbar-width:thin}
.sms-report-table table{width:100%;min-width:570px;border-collapse:separate;border-spacing:0;font-size:10px}
.sms-report-table th{position:sticky;top:0;padding:9px 11px;background:#f7f3fa;color:#6b5777;text-align:right;font-size:9px;font-weight:750;white-space:nowrap}
.sms-report-table td{padding:9px 11px;border-top:1px solid #f0ebf3;color:#63566a;vertical-align:middle}
.sms-report-table tbody tr:hover{background:#fcfaff}
.sms-report-table td:first-child strong,.sms-report-table td:first-child small{display:block}
.sms-report-table td:first-child strong{color:#483653;font-size:10px}
.sms-report-table td:first-child small{margin-top:4px;color:#8d8195;font-size:9px}
.sms-status-pill{display:inline-flex;align-items:center;max-width:230px;padding:4px 8px;border:1px solid #e8e0ec;border-radius:999px;background:#f8f5fa;color:#766a7e;font-size:8px;line-height:1.6}
.sms-status-pill.is-sent{border-color:#d6e8dc;background:#f1f8f3;color:#467354}
.sms-status-pill.is-pending{border-color:#eadfbd;background:#fbf7e9;color:#81682f}
.sms-status-pill.is-review{border-color:#eed9da;background:#fff5f4;color:#9d5b5e}
.sms-status-pill.is-neutral{border-color:#e5e2e8;background:#f6f5f7;color:#77717d}
.sms-report-no-rows{text-align:center!important;color:#83788a!important;padding:17px!important}
.sms-report-pagination{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-top:10px}
.sms-report-pagination small{text-align:center;color:#85798d;font-size:9px}
.sms-report-pagination button{justify-self:start;min-height:30px;padding:5px 9px;border:1px solid #e4d9eb;border-radius:7px;background:#fff;color:#6f4e81;font:inherit;font-size:9px;cursor:pointer}
.sms-report-pagination button:last-of-type{justify-self:end}
.sms-report-copy-list{display:grid;gap:8px}
.sms-report-copy-list>small{color:#83788a;font-size:9px}
.sms-report-copy{margin:0;padding:11px;border:1px solid #ece5f0;border-radius:9px;background:#fff;color:#5e4e68;font-size:10px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
.sms-report-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.sms-report-facts>div{min-width:0;padding:10px;border:1px solid #ece6f0;border-radius:9px;background:#fff}
.sms-report-facts dt{color:#8c8093;font-size:9px}
.sms-report-facts dd{margin:5px 0 0;color:#55435f;font-size:10px;line-height:1.8;overflow-wrap:anywhere}
.sms-report-loading,.sms-report-empty{display:grid;justify-items:center;gap:6px;padding:28px 14px;text-align:center;color:#776a81}
.sms-report-empty>span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#f5eff8;color:#795592;font-size:18px}
.sms-report-empty strong{color:#4d3b59;font-size:11px}
.sms-report-empty small,.sms-report-loading{font-size:10px;line-height:1.8}
.sms-report-empty.is-error strong{color:#9b4f56}

.crm-audience-view{display:grid!important;grid-template-columns:36px minmax(0,1fr) 24px!important;align-items:center!important;gap:10px!important;width:100%;min-height:58px;margin:12px 0!important;padding:9px 11px!important;border:1px solid #e6dced!important;border-radius:11px!important;background:linear-gradient(100deg,#fff,#faf7fc)!important;color:#4d395d!important;text-align:right!important;font:inherit!important;cursor:pointer}
.crm-audience-view:hover{border-color:#c9b2d8!important;box-shadow:0 5px 15px #593d6e0c}
.crm-audience-view-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#f3edf8;color:#76518e;font-size:16px}
.crm-audience-view-copy{display:grid;gap:3px;min-width:0}
.crm-audience-view-copy strong{font-size:10px;color:#513b61}
.crm-audience-view-copy small{font-size:9px;color:#8c8093;line-height:1.6}
.crm-audience-view-arrow{justify-self:center;color:#8968a0;font-size:14px}
.crm-selected-audience.campaign-receipt-dialog{width:min(860px,calc(100vw - 24px));padding:0;border-color:#e5dcea;border-radius:17px;color:#493957}
.crm-selected-audience::backdrop{background:#24182e66;backdrop-filter:blur(3px)}
.crm-audience-dialog-heading{position:sticky;top:0;z-index:1;display:grid!important;grid-template-columns:40px minmax(0,1fr) 34px;align-items:center!important;gap:10px!important;padding:15px 18px;border-bottom:1px solid #eee8f2;background:#fff}
.crm-audience-dialog-mark{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e8deee;border-radius:11px;background:#f5eff9;color:#785394;font-size:18px}
.crm-audience-dialog-heading>div{min-width:0}
.crm-audience-dialog-heading>div>small{color:#907a9c;font-size:9px}
.crm-audience-dialog-heading h3{margin:2px 0!important;font-size:15px!important}
.crm-audience-dialog-heading>[data-close]{width:32px;height:32px;border:1px solid #ece6f0;border-radius:8px;background:#fff;color:#776a80;font-size:18px;cursor:pointer}
.crm-audience-dialog-note{margin:13px 18px 0;color:#82778a;font-size:10px;line-height:1.8}
.crm-selected-audience .crm-audience-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 18px;padding:0}
.crm-audience-summary>span{display:grid;gap:4px;padding:10px;border:1px solid #ece5f0;border-radius:9px;background:#fbf9fc}
.crm-audience-summary>span small{color:#887b90;font-size:8px}
.crm-audience-summary>span strong{color:#5b426c;font-size:16px}
.crm-audience-error{grid-column:1/-1;color:#a14853;font-size:10px}
.crm-audience-list{max-height:min(52vh,470px);overflow:auto;margin:0 18px;border:1px solid #ece5f0;border-radius:10px;scrollbar-width:thin}
.crm-audience-list .sms-report-table{border:0}
.crm-audience-list .sms-report-table table{min-width:540px}
.crm-selected-audience footer{position:sticky;bottom:0;margin:0!important;padding:12px 18px;border-top:1px solid #eee8f2;background:#fff}
.crm-selected-audience footer button{min-height:34px;padding:6px 15px;border-radius:8px}
.crm-audience-empty{display:grid;justify-items:center;gap:5px;padding:27px 12px;text-align:center}
.crm-audience-empty>span{color:#8c6aa3;font-size:22px}
.crm-audience-empty strong{color:#55415f;font-size:11px}
.crm-audience-empty small{color:#8e8296;font-size:9px}
@media(max-width:720px){
  #crm-follow-up-card .crm-followup-row{grid-template-columns:minmax(0,1fr)}
  #crm-follow-up-card .crm-followup-row>div:last-child{justify-content:flex-start}
  .sms-report-row{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:9px}
  .sms-report-row-mark{width:32px;height:32px}
  .sms-report-row-stats{grid-column:2/-1;grid-row:2;justify-content:flex-start}
  .sms-report-row-action{grid-column:3;grid-row:1}
  .sms-report-heading{align-items:flex-start}
  .sms-report-heading p{max-width:42ch}
}
@media(max-width:520px){
  #crm-follow-up-card.crm-followups-panel{padding:13px!important}
  #crm-follow-up-card>.section-heading{align-items:flex-start;flex-direction:column}
  .crm-sms-report-launch{grid-template-columns:36px minmax(0,1fr) 24px;gap:8px;padding:10px}
  .crm-sms-report-launch-icon{width:34px;height:34px}
  .crm-sms-report-launch strong{font-size:10px}
  .crm-sms-report-launch small{font-size:8px}
  .sms-report-workspace{padding:10px}
  .sms-report-heading h4{font-size:13px}
  .crm-report-refresh{width:34px;padding:0;font-size:15px}
  .crm-report-refresh span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .sms-report-row{grid-template-columns:30px minmax(0,1fr) auto}
  .sms-report-row-stats>span{min-width:48px;padding:4px 5px}
  .sms-report-row-stats b{font-size:10px}
  .sms-report-row-stats small{font-size:7px}
  .sms-report-detail{padding:10px}
  .sms-report-workspace .sms-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .sms-report-workspace .sms-metrics>span{padding:8px 5px;text-align:center}
  .sms-report-workspace .sms-metrics>span small{font-size:8px}
  .sms-report-workspace .sms-metrics b{font-size:14px}
  .sms-report-tabs button{padding-inline:8px;font-size:9px}
  .sms-report-facts{grid-template-columns:minmax(0,1fr)}
  .sms-report-pagination{grid-template-columns:auto 1fr auto}
  .sms-report-pagination small{font-size:8px}
  .crm-selected-audience.campaign-receipt-dialog{max-height:90dvh}
  .crm-audience-dialog-heading{padding:12px}
  .crm-audience-dialog-note{margin-inline:12px}
  .crm-selected-audience .crm-audience-summary{margin-inline:12px;gap:5px}
  .crm-audience-summary>span{padding:8px 6px}
  .crm-audience-summary>span small{font-size:7px}
  .crm-audience-summary>span strong{font-size:14px}
  .crm-audience-list{max-height:50dvh;margin-inline:12px}
  .crm-selected-audience footer{padding-inline:12px}
}

/* Two compact campaign-mode options; descriptions stay behind the help mark. */
#crm-loyalty-rewards .sms-workspace-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px;padding:0;border:0}
#crm-loyalty-rewards .crm-campaign-mode-option{position:relative;min-width:0}
#crm-loyalty-rewards .crm-campaign-mode-option>[role=tab]{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:64px;padding:10px 42px 10px 12px;border:1px solid #593878;border-radius:12px;background:#68458a;color:#fff;text-align:right;font:inherit;font-size:12px;font-weight:750;cursor:pointer;transition:border-color .15s,box-shadow .15s,filter .15s}
#crm-loyalty-rewards .crm-campaign-mode-option>[role=tab]:hover{border-color:#8262a0;filter:brightness(1.06)}
#crm-loyalty-rewards .crm-campaign-mode-option>[role=tab][aria-selected=true]{border:2px solid #d2b36f;background:#68458a;color:#fff;box-shadow:0 5px 15px #67428125,inset 0 0 0 1px #ffffff24}
#crm-loyalty-rewards .crm-campaign-mode-option>[role=tab]:focus-visible{outline:2px solid #a985bd;outline-offset:2px}
.crm-campaign-mode-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #ffffff50;border-radius:9px;background:#ffffff18;color:#fff;font-size:17px}
.crm-campaign-mode-title{overflow-wrap:anywhere;font-weight:900;letter-spacing:-.1px}
.crm-route-help{position:absolute;inset-inline-start:10px;top:50%;z-index:2;display:grid;place-items:center;width:21px;height:21px;transform:translateY(-50%);border:1px solid #e0d5e8;border-radius:50%;background:#fff;color:#86669b;font-size:12px;font-weight:800;line-height:1;cursor:help}
.crm-route-help:focus-visible{outline:2px solid #a985bd;outline-offset:2px}
.crm-route-tooltip{position:absolute;inset-inline-start:0;top:calc(100% + 8px);z-index:20;display:none;width:min(300px,calc(100vw - 44px));box-sizing:border-box;padding:10px 12px;border:1px solid #e0d4e8;border-radius:10px;background:#30243d;color:#fff;font-size:10px;font-weight:500;line-height:1.9;text-align:right;box-shadow:0 12px 30px #26183130;white-space:normal}
.crm-route-help:hover+.crm-route-tooltip,.crm-route-help:focus+.crm-route-tooltip{display:block}
@media(max-width:520px){#crm-loyalty-rewards .sms-workspace-tabs{gap:7px}#crm-loyalty-rewards .crm-campaign-mode-option>[role=tab]{min-height:56px;padding-inline:9px 36px;font-size:10px}.crm-campaign-mode-icon{flex-basis:29px;width:29px;height:29px;font-size:15px}.crm-route-help{inset-inline-start:7px;width:19px;height:19px}}

.crm-advertising-sms-ready{border-color:#ded3e9;background:linear-gradient(145deg,#faf7fc,#fff)}
.crm-advertising-sms-ready .crm-loyalty-option-heading h4{color:#4e3564}
.crm-advertising-sms-readiness{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;margin-top:12px;padding:11px 13px;border:1px solid #e5ddea;border-radius:11px;background:#f8f5fb;color:#6e6476;font-size:10px}
.crm-advertising-sms-readiness b{color:#50376a;font-size:10px}
.crm-next-sales-content article{padding:16px 18px;border:1px solid #e5ddea;border-radius:12px;background:linear-gradient(145deg,#faf8fc,#fff)}
.crm-next-sales-content h4{margin:0 0 6px;color:#4e3564;font-size:14px}
.crm-next-sales-content p{margin:0;color:#756b7c;font-size:11px;line-height:1.9}
.crm-sales-tools-menu .crm-growth-menu-items a{min-height:38px}
@media(max-width:520px){.crm-advertising-sms-readiness{grid-template-columns:1fr;gap:4px}.crm-advertising-sms-readiness b{margin-bottom:6px}}
