/* Promotion components are independent DOM, never chat messages. A/B follow supplied references. */
.promo-component{--promo-accent:#0674ff;--promo-bg:#f0f6ff;--promo-border:#147cff;--promo-radius:12px;font-family:inherit;color:var(--ink,#223047);box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;white-space:normal}.promo-component *{box-sizing:border-box}.promo-component button{font:inherit;cursor:pointer}.promo-component img{max-width:100%;height:auto}.promo-disclaimer{font-size:12px;line-height:1.6;color:#5e6e84;margin:7px 0 0}.promo-label{font-size:11px;color:#7a8aa0;margin-bottom:8px}.promo-component .promo-compact{display:flex;align-items:center;gap:12px;border:1.5px solid var(--promo-border);border-radius:var(--promo-radius);background:linear-gradient(110deg,#f7fbff,var(--promo-bg));padding:13px;width:100%;color:inherit;text-align:left;min-width:0}.promo-compact .promo-icon{width:46px;height:46px;border-radius:11px;object-fit:cover;flex:none}.promo-compact-copy{flex:1;min-width:0}.promo-compact-copy strong{font-size:16px;line-height:1.5;display:block}.promo-compact-copy span{font-size:13px;color:#63738b;display:block;line-height:1.65}.promo-arrow{color:var(--promo-accent);font-size:23px;flex:none}.promo-welcome{margin:12px 0;max-width:350px}.promo-welcome.promo-B{max-width:295px}.promo-B .promo-compact{border-color:#dceaff;background:#edf5ff;padding:10px;gap:10px}.promo-B .promo-compact .promo-icon{width:38px;height:38px}.promo-B .promo-compact-copy strong{font-size:15px}.promo-detail{width:min(100%,550px);background:var(--surface,#fff);border:1px solid #dce5ef;border-radius:var(--promo-radius);padding:20px;margin:12px 0;position:relative;flex:none;align-self:flex-start;box-shadow:0 6px 18px #54708c0b}.promo-detail h3{font-size:21px;margin:3px 28px 8px 0;line-height:1.4}.promo-detail p{font-size:14px;line-height:1.8;margin:7px 0}.promo-close{position:absolute;right:8px;top:8px;min-width:30px;min-height:30px;padding:3px!important;background:#edf2f8!important;color:#62738a!important;border-radius:9px!important;font-size:19px!important}.promo-detail-body{display:grid;grid-template-columns:minmax(0,1fr) 155px;align-items:center;gap:18px;margin-top:14px}.promo-features{display:flex;flex-direction:column;gap:11px;list-style:none;padding:0;margin:0;font-size:14px}.promo-features li:before{content:'✓';color:white;background:#13be67;border-radius:50%;display:inline-flex;width:17px;height:17px;align-items:center;justify-content:center;font-size:12px;margin-right:7px}.promo-qr{width:100%;max-width:180px;object-fit:contain!important;border-radius:6px!important;cursor:default!important;user-select:auto;-webkit-touch-callout:default}.promo-qr-box{text-align:center}.promo-qr-placeholder{aspect-ratio:1;border:1px dashed #bed2eb;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#74869f;background:#f7faff;font-size:13px}.promo-open-tip{text-align:center;font-size:12px!important;color:#71819a;margin:8px 0!important}.promo-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:17px}.promo-actions>button,.promo-actions>a{flex:1;min-width:105px;padding:12px 10px;border-radius:11px;text-align:center;text-decoration:none;font-size:14px;font-weight:500}.promo-actions>button:first-child,.promo-actions>a:first-child{background:var(--promo-accent)!important;color:white!important}.promo-actions>button:nth-child(2){background:#edf3fa!important;color:#33425b!important}.promo-status{font-size:12px;color:#64748b;min-height:1.5em;margin:9px 0 0}.promo-B.promo-detail{border-color:#e2e9f2;box-shadow:0 8px 22px #56759b12;padding:17px}.promo-B .promo-detail-body{grid-template-columns:90px minmax(0,1fr) 145px;gap:13px}.promo-illustration{width:90px;border-radius:13px!important;object-fit:cover}.promo-B .promo-features{font-size:12px;gap:9px}.promo-B .promo-detail h3{font-size:20px}.promo-home{margin:24px 0;width:100%}.promo-home .promo-compact{padding:16px;gap:15px}.promo-home .promo-icon{width:58px;height:58px}.promo-home .promo-compact-copy strong{font-size:19px}.promo-home .promo-compact-copy span{font-size:14px}.promo-home .promo-arrow{font-size:15px;font-weight:600;border-radius:11px;background:var(--promo-accent);padding:12px 17px;color:white;white-space:nowrap}.promo-home.promo-B{padding:5px;border:1px solid #e4eaf4;border-radius:21px;background:#fff;box-shadow:0 8px 22px #4279aa12}.promo-home.promo-B .promo-compact{border:0;background:linear-gradient(110deg,#f3f8ff,#fafcff);border-radius:16px}.promo-keyword{position:relative;width:min(100%,365px);background:var(--promo-bg);border:1px solid #d5e6ff;border-radius:var(--promo-radius);padding:14px 27px 14px 12px;margin:12px 0;align-self:flex-start;flex:none}.promo-keyword .promo-compact{padding:0;border:0;background:none;gap:10px}.promo-keyword .promo-icon{width:39px;height:39px}.promo-keyword .promo-compact-copy strong{font-size:14px}.promo-keyword .promo-compact-copy span{font-size:12px;line-height:1.7}.promo-keyword .promo-arrow{font-size:15px}.promo-keyword .promo-close{font-size:15px!important;top:4px;right:4px;width:20px;height:20px;min-width:20px;min-height:20px;background:transparent!important}.promo-keyword.promo-B{border-color:#dae7f4;box-shadow:0 3px 12px #6c8cad0b;background:#f6faff}.promo-dialog{border:0;border-radius:20px;padding:0;background:var(--surface,#fff);color:var(--ink);width:min(570px,94vw);max-width:94vw;max-height:90dvh;overflow:auto}.promo-dialog::backdrop{background:#1c2d4566}.promo-dialog .promo-detail{margin:0;border:0;width:100%;max-width:100%}.promotion-admin{max-width:1050px}.promotion-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.promotion-admin-tabs button.active{box-shadow:inset 0 0 0 1px #1677ff;color:#1677ff}.promotion-form{max-width:760px}.promotion-form fieldset{border:1px solid #dce5ee;border-radius:14px;padding:18px;margin:14px 0}.promotion-form legend{font-weight:600;padding:0 7px}.promotion-form label{color:var(--ink);line-height:1.6}.promotion-form input[type=checkbox]{width:auto}.promotion-form textarea{min-height:85px}.promotion-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.promotion-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.promotion-preview-cell{padding:14px;background:#f6f9fd;border-radius:15px;min-width:0}.promotion-preview-cell>h3{margin:0 0 12px;color:#435675;font-size:15px}.promotion-keywords-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 60px;gap:8px;align-items:center;margin:9px 0}.promotion-upload-preview{max-width:150px;max-height:150px;object-fit:contain;display:block;margin:8px 0;border-radius:10px}.promotion-warning{padding:12px 14px;border-radius:11px;background:#edf5ff;color:#43617f;font-size:13px;line-height:1.7}.promotion-admin-actions{position:sticky;bottom:0;background:var(--surface,#fff);padding:13px 0;display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid #e6ecf3;z-index:2}.promotion-stats{margin-top:15px;font-size:13px}.promotion-stats table{width:100%;border-collapse:collapse}.promotion-stats td,.promotion-stats th{padding:8px;border-bottom:1px solid #e2e8ef;text-align:left}
@media(max-width:760px){.promo-dialog{position:fixed;top:auto;bottom:0;margin:0;width:100%;max-width:100%;max-height:91dvh;border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}.promo-detail{padding:16px;width:100%}.promo-detail-body{grid-template-columns:minmax(0,1fr) 132px;gap:12px}.promo-B .promo-detail-body{grid-template-columns:66px minmax(0,1fr) 112px;gap:9px}.promo-B .promo-illustration{width:66px}.promo-detail h3{font-size:19px}.promo-detail p{font-size:13px}.promo-B .promo-features{font-size:11px;gap:8px}.promo-features{font-size:13px}.promo-features li:before{width:14px;height:14px;font-size:10px;margin-right:4px}.promo-home .promo-compact{gap:10px;padding:12px}.promo-home .promo-icon{width:43px;height:43px}.promo-home .promo-compact-copy strong{font-size:16px}.promo-home .promo-compact-copy span{font-size:12px;line-height:1.7}.promo-home .promo-arrow{font-size:12px;padding:10px 11px}.promotion-preview-grid,.promotion-columns{grid-template-columns:1fr}.promotion-keywords-row{grid-template-columns:minmax(0,1fr) 105px 55px}.promotion-form fieldset{padding:12px}.promotion-stats{overflow-x:auto}.promo-actions>button,.promo-actions>a{font-size:13px}.promotion-admin-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}.promotion-preview-cell{padding:10px}.promo-welcome{width:100%}}
:root[data-theme=dark] .promo-component{--promo-bg:#28384d;--promo-border:#527aba}:root[data-theme=dark] .promo-compact,:root[data-theme=dark] .promo-keyword{background:#293b54;color:#edf4ff}:root[data-theme=dark] .promo-compact-copy span,:root[data-theme=dark] .promo-disclaimer{color:#c3d0e1}:root[data-theme=dark] .promotion-preview-cell{background:#263549}

.promo-actions>a[aria-disabled=true]{opacity:.5;pointer-events:none}

.memo-group{margin:22px 0}.memo-group h3{font-size:17px;margin:12px 0;color:var(--ink)}
.side .promotion-stats thead{display:none}.side .promotion-stats tbody{display:grid;gap:10px}.side .promotion-stats tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e2e8ef;border-radius:9px;padding:8px}.side .promotion-stats td{display:block;padding:4px;border:0;overflow-wrap:anywhere}.side .promotion-stats td:before{content:attr(data-label)'：';color:#7b889d}.side .promotion-stats td:first-child,.side .promotion-stats td:last-child{grid-column:1/-1}
@media(max-width:760px){.promotion-stats thead{display:none}.promotion-stats tbody{display:grid;gap:10px}.promotion-stats tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e2e8ef;border-radius:10px;padding:8px}.promotion-stats td{display:block;padding:5px;border:0;overflow-wrap:anywhere}.promotion-stats td:before{content:attr(data-label)'：';color:#74829a}.promotion-stats td:first-child,.promotion-stats td:last-child{grid-column:1/-1}.promotion-stats{overflow:visible}}

/* One compact group, independent objects within each placement. */
.promo-multi{position:relative;display:grid;gap:8px;max-width:100%;min-width:0;padding:10px;border:1px solid #dce7f4;border-radius:14px;background:#f7faff;margin:10px 0}.promo-multi-heading{font-size:13px;color:#50647d;padding:2px 4px}.promo-multi>.promo-component{margin:0;min-width:0}.promo-multi .promo-compact-copy{min-width:0;overflow-wrap:anywhere}.promo-multi>.promo-disclaimer{margin:0;font-size:11px}.promotion-target-order{display:flex;align-items:center;gap:8px;margin:4px 0 10px;flex-wrap:wrap}.promotion-target-order button{padding:5px 10px}
