.wip-summary { max-width: 280px; line-height: 1.6; overflow-wrap: anywhere; }
.wip-sub { margin-top: 4px; color: #6b7280; font-size: 12px; overflow-wrap: anywhere; }
.wip-badge { display: inline-flex; padding: 2px 8px; border-radius: 4px; background: #f3f4f6; color: #6b7280; font-size: 12px; font-weight: 700; }
.wip-badge.is-on { background: #dcfce7; color: #166534; }
#wechatIdPageModal { pointer-events: auto; }
#wechatIdPageModal [hidden] { display: none !important; }
#wechatIdPageModal .wip-modal { width: min(1100px, 96vw); max-width: 1100px; box-sizing: border-box; border-radius: 8px; }
#wechatIdPageModal .wip-help { color: #6b7280; font-size: 12px; line-height: 1.6; margin: 6px 0 10px; }
#wechatIdPageModal .wip-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); gap: 24px; max-height: 68vh; overflow: hidden; }
#wechatIdPageModal .wip-editor, #wechatIdPageModal .wip-preview { min-width: 0; overflow-y: auto; padding-right: 6px; }
#wechatIdPageModal .wip-preview { border-left: 1px solid #e5e7eb; padding-left: 24px; }
#wechatIdPageModal .wip-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
#wechatIdPageModal .wip-toggle input { width: 18px; height: 18px; }
#wechatIdPageModal .wip-title-field { display: block; font-size: 13px; color: #374151; font-weight: 700; }
#wechatIdPageModal .wip-title-field input { display: block; box-sizing: border-box; width: 100%; border: 1px solid #d1d5db; border-radius: 4px; padding: 9px 10px; margin-top: 6px; font: inherit; }
#wechatIdPageModal .wip-campaign-field { display: block; margin-top: 16px; font-size: 13px; color: #374151; font-weight: 700; }
#wechatIdPageModal .wip-campaign-field select { display: block; box-sizing: border-box; width: 100%; border: 1px solid #d1d5db; border-radius: 4px; padding: 9px 10px; margin-top: 6px; font: inherit; background: #fff; }
#wechatIdPageModal .wip-campaign-field select:disabled { color: #6b7280; background: #f3f4f6; }
#wechatIdPageModal .wip-campaign-warning { border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; border-radius: 4px; padding: 9px 10px; margin: 8px 0 12px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
#wechatIdPageModal .wip-read-field { display: block; margin-top: 16px; font-size: 13px; color: #374151; font-weight: 700; }
#wechatIdPageModal .wip-read-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 120px; resize: vertical; border: 1px solid #d1d5db; border-radius: 4px; padding: 9px 10px; margin-top: 6px; font: inherit; line-height: 1.6; white-space: pre-wrap; }
#wechatIdPageModal .wip-read-field textarea:disabled { color: #6b7280; background: #f3f4f6; }
#wechatIdPageModal .wip-read-count { color: #6b7280; text-align: right; font-size: 12px; margin-top: 4px; }
#wechatIdPageModal .wip-read-count.is-invalid { color: #dc2626; }
#wechatIdPageModal .wip-read-preview { border: 1px solid #e5e7eb; border-radius: 8px; margin-top: 16px; padding: 14px; }
#wechatIdPageModal .wip-read-preview p { margin: 8px 0 0; color: #374151; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
#wechatIdPageModal .wip-image-section { border-top: 1px solid #e5e7eb; padding-top: 12px; margin-top: 16px; }
#wechatIdPageModal h4 { margin: 0 0 6px; font-size: 14px; color: #111827; }
#wechatIdPageModal .wip-image-frame { min-height: 100px; height: 150px; display: flex; align-items: center; justify-content: center; border: 1px solid #d1d5db; background: #f8fafc; color: #94a3b8; font-size: 13px; overflow: hidden; }
#wechatIdPageModal .wip-image-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
#wechatIdPageModal .wip-image-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#wechatIdPageModal .wip-preview-label { color: #6b7280; font-size: 12px; font-weight: 700; }
#wechatIdPageModal .wip-popup-preview { border: 1px solid #d1d5db; border-radius: 8px; padding: 14px; margin-bottom: 24px; background: #fff; }
#wechatIdPageModal .wip-popup-preview h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; color: #111827; }
#wechatIdPageModal .wip-popup-preview img, #wechatIdPageModal .wip-detail-preview img { display: block; max-width: 100%; width: auto; height: auto; margin: 0 auto; }
#wechatIdPageModal .wip-popup-preview p, #wechatIdPageModal .wip-detail-preview p { color: #94a3b8; font-size: 13px; text-align: center; padding: 20px 0; }
#wechatIdPageModal .wip-detail-preview { border: 1px solid #e5e7eb; background: #f8fafc; min-height: 100px; }
#wechatIdPageModal .wip-error { min-height: 20px; padding: 0 20px 8px; color: #dc2626; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
#wechatIdPageModal .wip-version { margin-right: auto; color: #6b7280; font-size: 12px; }
#wechatIdPageModal button:disabled { cursor: not-allowed; opacity: .6; }
@media (max-width: 850px) {
  #wechatIdPageModal .wip-body { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  #wechatIdPageModal .wip-editor, #wechatIdPageModal .wip-preview { overflow: visible; padding-right: 0; }
  #wechatIdPageModal .wip-preview { border-left: 0; border-top: 1px solid #e5e7eb; padding: 16px 0 0; }
}
@media (max-width: 600px) {
  #wechatIdPageModal .modal-footer { display: flex; flex-wrap: wrap; gap: 8px; }
  #wechatIdPageModal .wip-version { flex: 0 0 100%; }
  #wechatIdPageModal .modal-footer .btn { flex: 1 1 calc(50% - 8px); min-width: 0; }
}
