.design-content-target{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;color:inherit;border:1px dashed #b8c8a7;border-radius:8px;padding:8px;box-sizing:border-box;min-height:44px}.design-content-target>div,.design-content-target>span{min-width:0;flex:1}.design-content-target p{white-space:pre-wrap;overflow-wrap:anywhere}.design-content-target img{max-width:100%;object-fit:cover}.design-content-target small{display:block;font-size:12px;line-height:1.6;color:#7d8f71}.design-product-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.design-product-row>img,.design-product-row .design-content-target>img{width:52px;height:52px;border-radius:8px;object-fit:cover;flex-shrink:0}.design-product-row>span{flex:1;min-width:0}.design-product-row strong{font-size:14px}.design-product-row small{display:block;font-size:12px;color:#809074;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.design-row-actions{width:100%;display:flex;justify-content:flex-end;gap:6px}.design-row-actions button{min-width:44px;min-height:44px;font-size:13px;padding:6px 12px}.design-coupons .design-content-target{margin-bottom:8px}.design-draft-label{padding:8px 12px;background:#fff0d8;color:#94602a;font-size:12px}.design-error{background:#fff0db;color:#916432;padding:12px;line-height:1.8;border-radius:8px}.design-clean-preview{width:100%;max-width:440px;margin:auto}.design-clean-preview .cu-device{height:min(800px,calc(100dvh - 180px));min-height:420px;margin:0!important}.direct-heading .actions{flex-wrap:wrap;justify-content:flex-end}.cu-shared-editing .module-label{position:sticky!important;top:0!important;transform:none!important;right:auto!important;max-width:100%;flex-wrap:wrap!important;z-index:6}.cu-shared-editing .module-selected>.module-label{display:flex}.cu-shared-editing .direct-tools button,.cu-shared-editing .direct-resize{min-width:44px;min-height:44px}.cu-shared-editing .cu-insert{width:44px;height:44px;min-height:44px;left:0;top:0;transform:translateY(-50%);z-index:7}.cu-shared-editing [contenteditable]{min-height:44px;display:inline-block;min-width:44px}.cu-shared-editing .design-products{min-height:200px}.cu-shared-editing .cu-module-panel{min-height:300px;flex-basis:300px}.cu-editor-device .cu-shared-home{padding-bottom:90px}.cu-editor-device .cu-main{scroll-padding-bottom:100px}#design-content-form .field{min-width:0}#design-content-form textarea{min-height:100px;font-size:16px;line-height:1.6}#design-content-form input{font-size:16px}#design-content-form .modalfooter{position:sticky;bottom:0;background:#fffdf5;z-index:8;display:flex;gap:8px;justify-content:flex-end;padding:12px 0}#design-content-form .formgrid{min-width:0}#design-content-form .tag{white-space:normal;overflow-wrap:anywhere}.cu-store-head>.design-content-target{flex:1;min-width:0}.cu-store-head .design-content-target h1{white-space:normal}.design-products>div{align-items:flex-start!important}.design-products .design-product-row>span{overflow-wrap:anywhere}.design-clean-preview [data-layout-select]{outline:none}.design-draft-label+.cu-shared-home{height:calc(100% - 34px)}@media(max-width:760px){.direct-heading{position:relative;gap:10px;flex-wrap:wrap}.direct-heading .actions{width:100%}.direct-heading .actions button{flex:1 1 44%;min-height:44px;font-size:13px}.design-clean-preview .cu-device{height:calc(100dvh - 150px)}.cu-editor-canvas{max-width:100%!important;width:100%!important;left:auto;transform:none}.layout-workspace{min-width:0}.design-row-actions{gap:4px}}

.design-admin-login{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;box-sizing:border-box;text-decoration:none}.admin-content .design-products{max-height:62dvh;overflow-y:auto;overscroll-behavior:contain}.cu-shared-editing .cu-insert{position:relative;left:auto;top:auto;transform:none;display:block;margin:4px 0}.cu-shared-editing .cu-layout-module>.cu-insert:last-child{top:auto;bottom:auto}

.design-coupon-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid #e4e8dd;flex-wrap:wrap}.design-coupon-row>div:first-child{flex:1;min-width:120px}.design-coupon-row small{display:block;margin-top:5px}.design-coupon-row button{min-width:64px;min-height:44px}.design-coupons{overflow-y:auto;overscroll-behavior:contain;padding-bottom:16px}


/* ===== 可读性兜底：强调色/危险色底的按钮一律白字，防止文字与背景同色 ===== */
.primary,
.danger,
.cu-nc-dist .mini,
.cu-mini-btn.primary,
.mp-mini.primary,
.cu-chip.on,
.mp-btn.primary,
.direct-tools .danger,
.direct-tools button,
.layout-ad button,
button[class*="danger"],
button[class*="primary"]{
  color:#fff !important;
}
.primary:disabled,.danger:disabled{color:rgba(255,255,255,.75) !important}

/* 描边/次要按钮：深色字，避免继承成强调色 */
.secondary,
.cu-mini-btn,
.mp-mini.ghost,
.cu-outline-btn,
.text-btn{
  color:#16150f;
}
.text-btn{color:#c8452a}
