#xhs-workbench{display:none;flex:1;min-height:0;overflow:auto;background:#f5f6f8;padding:20px}#xhs-workbench.show{display:block}.xw-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.xw-head h2{font-size:21px}.xw-head p{font-size:12px;color:#657184;margin-top:6px}.xw-layout{display:grid;grid-template-columns:240px minmax(280px,1fr) 340px;gap:18px;align-items:start}.xw-card{background:#fff;border:1px solid #e3e7ed;border-radius:12px;padding:18px;min-width:0}.xw-card h3{font-size:14px;margin-bottom:12px}#xhs-workbench button{padding:8px 11px;border:1px solid #dce1e8;border-radius:7px;cursor:pointer;background:#fff;color:#344054;font:inherit;font-size:12px}#xhs-workbench button.primary{background:#ed3154;border-color:#ed3154;color:#fff}#xhs-workbench button:disabled{opacity:.5;cursor:wait}#xhs-workbench label{display:block;font-size:12px;margin:12px 0 6px}#xhs-workbench input,#xhs-workbench textarea,#xhs-workbench select{font:inherit;font-size:13px;width:100%;padding:10px;border:1px solid #dce1e8;border-radius:7px;box-sizing:border-box;background:#fff}#xw-body{min-height:300px;resize:vertical;line-height:1.8}.xw-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.xw-muted{font-size:11px;color:#667085;line-height:1.7}.xw-draft{display:block;width:100%;text-align:left;margin:8px 0;overflow-wrap:anywhere}.xw-draft.active{border-color:#ed3154!important;background:#fff4f6!important}.xw-preview{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px}.xw-cover{width:100%;aspect-ratio:3/4;object-fit:contain;background:#f3f4f6;border-radius:8px}.xw-thumbs{display:flex;gap:6px;overflow:auto;margin:10px 0}.xw-thumbs img{width:52px;height:65px;object-fit:cover;cursor:pointer}.xw-images{display:flex;gap:8px;flex-wrap:wrap}.xw-images img{width:64px;height:80px;object-fit:cover}.xw-image{display:flex;flex-direction:column;gap:4px}.xw-image button{padding:2px 4px!important}#xw-status{min-height:22px;color:#344054;font-size:12px;margin:10px 0}#xw-preview-tags{color:#2473a6;margin-top:15px}#xw-preview-title{font-size:18px;margin:12px 0}#xw-library{max-height:180px;overflow:auto}#xw-library label{display:flex;align-items:center;gap:8px;margin:6px 0}#xw-library input{width:auto}#xw-library img{width:42px;height:42px;object-fit:cover}@media(max-width:1100px){.xw-layout{grid-template-columns:210px 1fr}.xw-phone{grid-column:2}}@media(max-width:700px){.xw-layout{display:flex;flex-direction:column}.xw-card{width:100%}#xhs-workbench{padding:12px}}

.xw-publish-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e3e7ed;padding:12px 0;z-index:2}#xw-action-status{font-size:13px;line-height:1.6;color:#344054;overflow-wrap:anywhere}#xhs-workbench button:disabled{cursor:not-allowed}

.xw-review-note{margin-top:8px;padding:8px 10px;border-left:3px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:5px;font-size:11px;line-height:1.6}

.xw-phone{background:linear-gradient(180deg,#fff 0%,#fff9fa 100%);border-color:#f0dbe0;box-shadow:0 12px 30px rgba(158,30,64,.08)}
#xw-preview-title{font-size:18px;line-height:1.45;letter-spacing:.1px;color:#222;font-weight:700}
.xw-preview{font-size:14px;color:#374151;line-height:1.85}
.xw-preview-block{margin:0 0 12px;white-space:pre-line}
.xw-preview-heading{margin:18px 0 8px;padding-left:9px;border-left:3px solid #ed3154;color:#1f2937;font-size:14px;line-height:1.5;white-space:pre-line}
.xw-preview-list{margin:0 0 12px;padding:9px 11px;background:#fff;border-radius:8px;border:1px solid #f0e3e6;white-space:pre-line;color:#4b5563}
#xw-preview-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}
.xw-tag-chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#fff0f3;color:#d62f52;font-size:12px;line-height:1.2}

.xw-image img,.xw-cover{cursor:zoom-in}
.xw-image-lightbox{display:none;position:fixed;inset:0;z-index:4000;background:rgba(15,23,42,.84);align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.xw-image-lightbox.show{display:flex}
.xw-image-lightbox img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:10px;box-shadow:0 20px 80px rgba(0,0,0,.5);background:#fff;cursor:default}
.xw-image-lightbox button{position:absolute;right:20px;top:16px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:24px;cursor:pointer}
.xw-image-lightbox span{position:absolute;bottom:14px;left:20px;right:20px;text-align:center;color:#fff;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#xw-count.warn{color:#b42318;font-weight:600}
.xw-image-generation{align-items:center;margin-bottom:8px}
#xhs-workbench .xw-image-generation label{margin:0}
#xhs-workbench #xw-image-count{width:78px;padding:8px}
