.yw-design-ai{min-height:680px;background:#fff;color:#171b1f;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.yw-design-ai *{box-sizing:border-box}
.yw-hero{padding:50px 24px 42px;text-align:center;background:#fff}
.yw-hero-title h1{font-size:36px;line-height:1.25;margin:0 0 8px;font-weight:650;letter-spacing:.2px;color:#11161a}
.yw-hero-title p{margin:0;color:#7a838b;font-size:13px}

/* ===== V1.0.48：统一输入 UI，彻底隔离上传区与文字输入区 ===== */
.yw-composer{max-width:1050px;margin:30px auto 0;background:#fff;border:1px solid #e4e7ea;border-radius:16px;padding:14px 14px 12px;text-align:left;box-shadow:0 12px 34px rgba(24,32,40,.07);overflow:visible}
.yw-composer-main{display:block;width:100%;margin:0}
.yw-unified-prompt-wrap{position:relative!important;width:100%!important;height:180px!important;min-height:180px!important;max-height:200px!important;margin:0!important;padding:0!important;border:1px solid #dfe4e8!important;border-radius:9px!important;background:#fff!important;overflow:hidden!important}
.yw-unified-upload-button{position:absolute!important;left:10px!important;top:10px!important;z-index:20!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;padding:0!important;margin:0!important;border:1px solid #e5e8eb!important;border-radius:8px!important;background:#fff!important;color:#777f87!important;font:300 27px/54px inherit!important;text-align:center!important;cursor:pointer!important;box-shadow:none!important}
.yw-unified-upload-button:hover{border-color:#cbd1d7!important;background:#fafafa!important;color:#222!important}
.yw-unified-file-input{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip:rect(0,0,0,0)!important}
/* 顶部上传区固定 68px；文字区从其下方开始，滚动时永远不会穿过 + 按钮/缩略图。 */
.yw-unified-prompt-wrap textarea{display:block!important;position:absolute!important;left:0!important;right:0!important;top:72px!important;width:100%!important;height:108px!important;min-height:108px!important;max-height:128px!important;margin:0!important;padding:0 14px 10px 14px!important;border:0!important;outline:0!important;resize:vertical!important;overflow:auto!important;background:transparent!important;box-shadow:none!important;color:#20262b!important;font:400 13px/1.65 inherit!important}
.yw-unified-prompt-wrap textarea::placeholder{color:#a2aab1!important;opacity:1!important}
.yw-unified-preview{position:absolute!important;left:76px!important;right:12px!important;top:10px!important;height:56px!important;z-index:10!important;display:flex!important;gap:8px!important;align-items:center!important;min-height:50px!important;margin:0!important;padding:0 2px!important;overflow-x:auto!important;overflow-y:hidden!important;background:transparent!important;border:0!important;scrollbar-width:none!important}
.yw-unified-preview::-webkit-scrollbar{display:none}
.yw-unified-preview[hidden]{display:none!important}
.yw-unified-preview .yw-preview-item{position:relative!important;width:56px!important;height:56px!important;min-width:56px!important;flex:0 0 56px!important;margin:0!important;padding:0!important;overflow:visible!important}
.yw-unified-preview img{display:block!important;width:56px!important;height:56px!important;object-fit:cover!important;border:1px solid #dfe4e8!important;border-radius:7px!important;margin:0!important;cursor:zoom-in!important}
/* X 放在缩略图内部右上角，使用白底+细边框，完整可见且不会被预览容器裁掉。 */
.yw-unified-preview .yw-preview-remove{position:absolute!important;right:2px!important;top:2px!important;width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;padding:0!important;border:1px solid #d6dade!important;border-radius:50%!important;background:rgba(255,255,255,.96)!important;color:#3d444a!important;font:400 15px/14px Arial,sans-serif!important;text-align:center!important;cursor:pointer!important;z-index:5!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important}
.yw-unified-preview .yw-preview-remove:hover{background:#fff!important;color:#111!important;border-color:#bfc5ca!important}
.yw-upload-feedback{display:none!important}

/* 上传图片放大预览 */
.yw-image-lightbox{position:fixed!important;inset:0!important;z-index:100000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:30px!important;background:rgba(10,14,18,.78)!important;cursor:zoom-out!important}
.yw-image-lightbox[hidden]{display:none!important}
.yw-image-lightbox img{display:block!important;max-width:min(92vw,1200px)!important;max-height:88vh!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:8px!important;box-shadow:0 20px 60px rgba(0,0,0,.35)!important;cursor:default!important}
.yw-image-lightbox-close{position:absolute!important;right:24px!important;top:18px!important;width:38px!important;height:38px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:50%!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font:300 25px/34px Arial,sans-serif!important;text-align:center!important;cursor:pointer!important}
.yw-image-lightbox-close:hover{background:rgba(255,255,255,.2)!important}

.yw-controls{display:flex;align-items:center;gap:7px;margin-top:14px!important;padding:0!important;position:relative;z-index:20;overflow:visible;min-width:0}
.yw-model-control,.yw-auto-control,.yw-skill-control{position:relative;flex:0 0 auto}
.yw-model-control{width:172px!important;min-width:172px!important;max-width:172px!important}
.yw-model-control #yw-model{width:100%!important;height:30px!important;min-height:30px!important;padding:0 29px 0 10px!important;appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;background:#fff!important;border:1px solid #d8dde2!important;border-radius:5px!important;color:#29313a!important;font:400 10px/30px inherit!important;cursor:pointer!important;outline:0!important}
.yw-model-control .yw-control-arrow{display:none!important}
.yw-auto-toggle,.yw-skill-toggle{position:relative!important;height:30px!important;min-height:30px!important;padding:0 28px 0 10px!important;border:1px solid #d8dde2!important;border-radius:5px!important;background:#fff!important;color:#343b43!important;font:400 10px/30px inherit!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important}
.yw-auto-toggle{min-width:138px!important}
.yw-skill-toggle{min-width:116px!important}
.yw-model-control::after,.yw-auto-control::after,.yw-skill-control::after{content:""!important;display:block!important;position:absolute!important;width:6px!important;height:6px!important;right:10px!important;top:50%!important;margin-top:-4px!important;border-right:1.3px solid #68727a!important;border-bottom:1.3px solid #68727a!important;background:transparent!important;transform:rotate(45deg)!important;pointer-events:none!important;z-index:10!important}
.yw-auto-toggle .yw-select-arrow,.yw-skill-toggle .yw-select-arrow{display:none!important}
.yw-auto-menu{position:absolute!important;z-index:1000!important;left:0!important;top:calc(100% + 7px)!important;width:230px!important;padding:10px!important;background:#fff!important;border:1px solid #dfe4e7!important;border-radius:10px!important;box-shadow:0 14px 30px rgba(20,30,40,.12)!important;text-align:left!important}
.yw-auto-menu[hidden]{display:none!important}
.yw-auto-row{display:flex;align-items:center;gap:10px;padding:5px 0}
.yw-auto-row label{width:48px;flex:0 0 48px;color:#68717a;font-size:11px}
.yw-auto-row select{height:32px!important;min-width:0!important;width:100%!important;padding:0 28px 0 9px!important;border:1px solid #e0e4e7!important;border-radius:7px!important;background:#fff!important;color:#252b30!important;appearance:auto}
.yw-spacer{flex:1 1 auto;min-width:0}
.yw-cost-label{font-size:11px!important;color:#7c858d!important;white-space:nowrap!important}
.yw-cost-label b{color:#1c2328!important}
.yw-send{height:30px!important;min-height:30px!important;padding:0 14px!important;border:0!important;border-radius:5px!important;background:#151a1e!important;color:#fff!important;font-size:12px!important;font-weight:650!important;line-height:30px!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important}
.yw-send:hover{background:#2a3137!important}
.yw-send:disabled{opacity:.55!important;cursor:not-allowed!important}
.yw-history-btn{display:block;margin:15px auto 24px;border:1px solid #d7dce0;background:#fff;color:#424b53;border-radius:20px;padding:8px 62px;font-size:12px;cursor:pointer}
.yw-history-btn:hover{border-color:#aeb6bd;background:#f8f9fa}

/* 提示词技能面板 */
.yw-skill-panel{position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(900px,calc(100vw - 40px))!important;max-height:min(620px,78vh)!important;overflow:hidden!important;z-index:99999!important;background:#fff!important;border:1px solid #dfe4e8!important;border-radius:14px!important;box-shadow:0 18px 48px rgba(20,30,40,.16)!important;text-align:left!important}
.yw-skill-panel[hidden]{display:none!important}
.yw-skill-panel-head{height:48px;padding:0 16px;border-bottom:1px solid #edf0f2;display:flex;align-items:center;font-size:14px;color:#20262b}
.yw-skill-close{margin-left:auto;width:28px;height:28px;border:0;background:transparent;border-radius:50%;color:#8a9299;font-size:20px;line-height:1;cursor:pointer}
.yw-skill-close:hover{background:#f2f4f5;color:#252b30}
.yw-skill-body{min-height:0;height:min(570px,calc(78vh - 50px));display:grid;grid-template-columns:150px minmax(0,1fr)}
.yw-skill-cats{min-height:0;padding:12px 9px;border-right:1px solid #edf0f2;overflow:auto;background:#fafbfc}
.yw-skill-cats button{width:100%;height:36px;margin:2px 0;padding:0 11px;border:0;background:transparent;border-radius:7px;color:#69737b;text-align:left;font-size:12px;cursor:pointer;white-space:nowrap}
.yw-skill-cats button:hover{background:#f0f2f4;color:#20262b}.yw-skill-cats button.active{background:#171c20;color:#fff}
.yw-skill-items{min-height:0;padding:14px;overflow:auto;min-width:0}.yw-skill-category-grid{display:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.yw-skill-category-grid.active{display:grid}
.yw-skill-card{position:relative;height:auto;aspect-ratio:1/1;min-width:0;padding:0;border:1px solid #e1e5e8;background:#fff;border-radius:9px;overflow:hidden;text-align:left;cursor:pointer;color:#252b30;transition:.15s}.yw-skill-card:hover{border-color:#9ca5ac;box-shadow:0 5px 18px rgba(20,30,40,.09);transform:translateY(-1px)}
.yw-skill-thumb{position:absolute;inset:0;width:100%;height:100%;background:#f2f4f5}.yw-skill-thumb img{display:block;width:100%;height:100%;object-fit:cover}.yw-skill-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#9aa2a8;font-size:11px}
.yw-skill-card-text{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:24px 9px 8px;background:linear-gradient(to bottom,transparent,rgba(0,0,0,.72));color:#fff;pointer-events:none}.yw-skill-card-text strong{display:block;color:#fff;font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.45)}.yw-skill-card-text small{display:block;margin-top:2px;color:rgba(255,255,255,.88);font-size:10px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.4)}.yw-skill-empty{grid-column:1/-1;padding:45px 15px;text-align:center;color:#9aa2a8;font-size:12px}
#yw-style{display:none!important}

/* 案例图库 */
.yw-gallery-section{max-width:1250px;margin:120px auto 0;text-align:left;padding-bottom:36px}
.yw-categories{display:flex;gap:7px;overflow-x:auto;padding:0 0 12px;scrollbar-width:none}.yw-categories::-webkit-scrollbar{display:none}.yw-categories button{border:1px solid #e0e4e7;background:#fff;color:#68717a;border-radius:17px;padding:7px 14px;white-space:nowrap;cursor:pointer;font-size:12px}.yw-categories button:hover{border-color:#b5bdc3;color:#252c31}.yw-categories button.active{background:#171c20;color:#fff;border-color:#171c20}
.yw-gallery-grid,.yw-gallery-section .yw-gallery-default-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:stretch!important;gap:10px!important;overflow:visible!important;height:auto!important;max-height:none!important;padding:0 0 6px!important;scrollbar-width:none!important}
.yw-gallery-card{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;aspect-ratio:1/1!important;position:relative;padding:0;border:1px solid #e2e6e9;border-radius:8px;overflow:hidden;background:#f6f7f8;color:#252b30;text-align:left;cursor:pointer}.yw-gallery-card:hover{border-color:#89939b;transform:translateY(-1px);box-shadow:0 5px 15px rgba(20,30,38,.08)}
.yw-gallery-card img,.yw-card-placeholder{width:100%;height:100%;display:block;object-fit:cover}.yw-card-placeholder{background:#f1f3f4;display:flex;align-items:center;justify-content:center;text-align:center;color:#9aa2a8;font-size:11px}.yw-gallery-caption{left:auto;right:7px;bottom:7px;max-width:78%;width:auto;padding:4px 7px;border-radius:4px;background:rgba(0,0,0,.58);line-height:1.35;color:#fff;font-size:11px;position:absolute;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yw-gallery-empty{cursor:default}.yw-gallery-empty:hover{transform:none;box-shadow:none}

/* 历史记录 */
.yw-history-panel{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center}.yw-history-card{width:min(800px,92vw);max-height:80vh;overflow:auto;background:#fff;color:#20262b;border:1px solid #dfe3e6;border-radius:14px;padding:20px}.yw-history-head{display:flex;align-items:center;margin-bottom:12px}.yw-history-head button{margin-left:auto;border:0;background:none;color:#777;font-size:24px;cursor:pointer}.yw-history-item{padding:12px 0;border-bottom:1px solid #eceff1;font-size:13px}.yw-history-item small{display:block;color:#858e95;margin-top:4px}.yw-ai-login{padding:24px;border:1px solid #e4e7ea;border-radius:10px;background:#fff;color:#333;text-align:center}

/* 工作台对话流 */
.yw-chat-composer{margin-top:12px!important}
.yw-chat-composer .yw-unified-prompt-wrap{height:180px!important;min-height:180px!important;max-height:200px!important}
.yw-chat-composer .yw-controls{margin-top:14px!important}
.yw-chat-hero{padding:12px 24px 18px!important}
.yw-chat-window{max-width:1050px!important;margin:14px auto 0!important;text-align:left!important;background:#fff!important;border:1px solid #e1e5e8!important;border-radius:18px!important;padding:18px!important;box-shadow:0 14px 40px rgba(20,28,35,.08)!important;display:flex!important;flex-direction:column!important;height:460px!important;box-sizing:border-box!important;position:relative!important;overflow:hidden!important}
.yw-chat-flow{display:flex!important;flex-direction:column!important;gap:18px!important;min-height:300px!important;max-height:560px!important;overflow-y:auto!important;padding:4px!important;margin:0!important;background:transparent!important;border:0!important;scroll-behavior:smooth!important}
.yw-msg{display:flex!important;gap:10px!important;align-items:flex-start!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;justify-content:flex-start!important}.yw-msg-user{justify-content:flex-end!important}.yw-msg-bubble{max-width:min(78%,720px)!important;border-radius:17px!important;padding:14px 18px!important;font-size:14px!important;line-height:1.7!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;border:1px solid #e2e6e9!important;background:#fff!important;color:#20262b!important}.yw-msg-user .yw-msg-bubble{background:#f1f3f5!important;border-bottom-right-radius:5px!important}.yw-msg-ai .yw-msg-bubble,.yw-msg-assistant .yw-msg-bubble{background:#fff!important;border-bottom-left-radius:5px!important}.yw-msg-bubble p{margin:0!important;padding:0!important;font-size:14px!important;line-height:1.7!important;color:inherit!important}.yw-msg-bubble p+p{margin-top:6px!important}.yw-msg-bubble strong{font-size:14px!important;color:inherit!important;font-weight:600!important}.yw-msg-thumbs{display:flex!important;gap:8px!important;margin:0 0 9px!important;padding:0!important;flex-wrap:wrap!important}.yw-msg-thumbs img{width:74px!important;height:74px!important;object-fit:cover!important;border-radius:8px!important;display:block!important;border:1px solid rgba(0,0,0,.08)!important;margin:0!important}.yw-result-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important}.yw-result-grid img{width:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:8px!important;display:block!important;margin:0!important;cursor:pointer!important}.yw-result-grid img.yw-selected{outline:3px solid #2271b1!important;outline-offset:2px!important;border-radius:8px!important}.yw-result-frame{display:flex!important;align-items:center!important;justify-content:center!important;aspect-ratio:1/1!important;background:#fafbfc!important;border:1px dashed #d0d6db!important;border-radius:8px!important;color:#9aa2a9!important;font-size:11px!important;text-align:center!important;padding:8px!important;box-sizing:border-box!important}.yw-result-frame img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:6px!important;display:block!important}.yw-msg-meta{display:block!important;font-size:11px!important;color:#929aa0!important;margin:8px 0 0!important;padding:0!important;line-height:1.5!important}.yw-msg-avatar{width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;background:#151a1e!important;color:#fff!important;font-size:12px!important;font-weight:600!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;margin:0!important;padding:0!important;line-height:1!important}.yw-msg-actions{display:flex!important;gap:10px!important;justify-content:flex-end!important;flex-wrap:wrap!important;padding:10px 2px 0!important;margin:auto 0 0!important;background:transparent!important;border:0!important;position:sticky!important;bottom:0!important;z-index:2!important}.yw-act-btn{height:32px!important;min-height:32px!important;padding:0 15px!important;margin:0!important;border:1px solid #d9dee2!important;background:#fff!important;color:#252b30!important;border-radius:8px!important;font-size:13px!important;font-weight:400!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;font-family:inherit!important;box-sizing:border-box!important;width:auto!important;text-shadow:none!important;box-shadow:none!important}.yw-act-btn:hover{border-color:#9ca5ac!important;background:#f5f7f8!important;color:#252b30!important}.yw-msg-error .yw-msg-bubble{background:#fdf3f3!important;border:1px solid #f0c4c4!important;color:#b32d2e!important;border-bottom-left-radius:5px!important}.yw-msg-error .yw-msg-meta{color:#c15a5a!important}.yw-retention-note{margin:8px 0 0!important;padding:0!important;font-size:11px!important;color:#8a939a!important;text-align:right!important;line-height:1.6!important;flex:0 0 auto!important}

@media(max-width:1000px){.yw-gallery-grid,.yw-gallery-section .yw-gallery-default-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}.yw-gallery-card{width:100%!important}}
@media(max-width:760px){.yw-hero{padding:38px 12px 25px}.yw-hero-title h1{font-size:28px}.yw-controls{flex-wrap:wrap}.yw-model-control{width:150px!important;min-width:150px!important;max-width:150px!important}.yw-spacer{display:none}.yw-cost-label{margin-left:auto}.yw-gallery-grid,.yw-gallery-section .yw-gallery-default-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}.yw-gallery-card{width:100%!important}.yw-skill-panel{width:calc(100vw - 24px)!important;max-height:82vh!important}.yw-skill-body{height:calc(82vh - 48px)!important;grid-template-columns:112px minmax(0,1fr)}.yw-skill-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.yw-chat-window{height:340px!important;padding:12px!important}.yw-msg-bubble{max-width:88%!important}.yw-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.yw-unified-prompt-wrap{height:180px!important;min-height:180px!important;max-height:200px!important}.yw-unified-prompt-wrap textarea{top:72px!important;height:100px!important;min-height:100px!important;max-height:120px!important;padding:0 12px 10px!important}.yw-unified-upload-button{width:56px!important;height:56px!important}.yw-model-control,.yw-auto-control,.yw-skill-control{flex:1 1 calc(50% - 7px)!important;width:auto!important;min-width:0!important;max-width:none!important}.yw-model-control #yw-model,.yw-auto-toggle,.yw-skill-toggle{width:100%!important}.yw-cost-label{width:100%!important;margin-left:0!important}.yw-send{width:100%!important}.yw-skill-panel{position:fixed!important;left:50%!important;top:50%!important;width:calc(100vw - 20px)!important;max-height:86vh!important;transform:translate(-50%,-50%)!important}.yw-skill-body{height:calc(86vh - 48px)!important;grid-template-columns:100px minmax(0,1fr)}.yw-skill-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

/* V1.0.49 工作台结果交互：结果图保持原比例，五个操作按钮跟随每张图。 */
.yw-result-grid{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:14px!important}
/* V1.0.54：结果图固定显示宽度 360px，但严禁固定正方形；高度由图片原始宽高比自动计算。 */
.yw-result-unit{width:360px!important;max-width:100%!important;min-width:0!important;height:auto!important;align-self:flex-start!important}
.yw-result-unit.is-single{width:360px!important;max-width:100%!important}
.yw-result-unit .yw-result-image-box{width:360px!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;overflow:hidden!important}
.yw-result-unit .yw-result-image-box > img,.yw-result-grid .yw-result-unit img{display:block!important;width:360px!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:7px!important;background:#fafbfc!important;cursor:zoom-in!important}
.yw-result-actions{width:360px!important;max-width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin-top:24px!important;padding:0!important}
.yw-result-actions .yw-act-btn{flex:1 1 calc(20% - 6px)!important;min-width:76px!important}
.yw-result-actions .yw-act-btn.is-busy{opacity:.55!important;pointer-events:none!important}
.yw-result-frame{min-height:120px!important;aspect-ratio:auto!important}
.yw-result-lightbox{position:fixed!important;inset:0!important;z-index:100001!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:30px!important;background:rgba(10,14,18,.82)!important;cursor:zoom-out!important}
.yw-result-lightbox[hidden]{display:none!important}
.yw-result-lightbox-inner{max-width:min(94vw,1280px)!important;max-height:92vh!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;cursor:default!important}
.yw-result-lightbox img{display:block!important;max-width:94vw!important;max-height:82vh!important;width:auto!important;height:auto!important;object-fit:contain!important;border-radius:8px!important;box-shadow:0 20px 60px rgba(0,0,0,.38)!important}
.yw-result-lightbox-close{position:absolute!important;right:24px!important;top:18px!important;width:38px!important;height:38px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:50%!important;background:rgba(255,255,255,.12)!important;color:#fff!important;font:300 25px/34px Arial,sans-serif!important;text-align:center!important;cursor:pointer!important}
.yw-lightbox-download{height:36px!important;min-width:126px!important;padding:0 20px!important;border:1px solid rgba(255,255,255,.5)!important;border-radius:18px!important;background:#fff!important;color:#20262b!important;font:500 13px/36px inherit!important;text-align:center!important;text-decoration:none!important;cursor:pointer!important}
#yw-toast{position:fixed!important;left:50%!important;bottom:40px!important;transform:translateX(-50%)!important;background:#11161a!important;color:#fff!important;font-size:13px!important;padding:10px 16px!important;border-radius:9px!important;box-shadow:0 10px 30px rgba(0,0,0,.22)!important;display:none;z-index:999999!important;max-width:80vw!important;text-align:center!important}
@media(max-width:760px){.yw-result-item,.yw-result-item.is-single{width:100%!important}.yw-result-actions .yw-act-btn{flex:1 1 calc(50% - 7px)!important}.yw-result-lightbox{padding:16px!important}.yw-result-lightbox img{max-width:94vw!important;max-height:76vh!important}}

/* V1.0.50：结果单元历史记录，仅展示当前结果的版本链。 */
.yw-history-current{border-color:#cfd5da!important;background:#f8fafb!important}
.yw-history-item p{margin:7px 0 0!important;font-size:12px!important;line-height:1.6!important;color:#606970!important;white-space:normal!important}
.yw-msg-thumbs img,.yw-result-item>img{cursor:zoom-in!important}
.yw-lightbox-download{display:inline-flex!important;align-items:center!important;justify-content:center!important}

/* V1.0.54 mobile：宽度在容器不足时缩小，高度仍严格按原图比例自动计算。 */
@media(max-width:760px){.yw-result-unit,.yw-result-unit.is-single,.yw-result-unit .yw-result-image-box,.yw-result-actions{width:360px!important;max-width:100%!important}.yw-result-unit .yw-result-image-box > img,.yw-result-grid .yw-result-unit img{width:360px!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}}

/* V1.0.57: unify control text typography at 10px; model select is native <select>. */
.yw-controls .yw-model-control #yw-model, .yw-controls .yw-auto-toggle, .yw-controls .yw-skill-toggle { font-family: inherit !important; font-size: 10px !important; font-weight: 400 !important; line-height: 30px !important; letter-spacing: 0 !important; text-transform: none !important; vertical-align: middle !important; }


/* V1.0.64：结果图在线编辑器。尺寸克制，画布保持原图比例，不拉伸。 */
.yw-image-editor{position:relative;max-width:1050px;margin:16px auto 0;background:#fff;border:1px solid #e1e5e8;border-radius:16px;box-shadow:0 14px 40px rgba(20,28,35,.08);overflow:hidden;text-align:left;z-index:30}
.yw-image-editor[hidden]{display:none!important}
.yw-image-editor-head{height:52px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 18px;border-bottom:1px solid #edf0f2;color:#20262b}
.yw-image-editor-head strong{font-size:15px;font-weight:600;justify-self:center}
.yw-image-editor-back{justify-self:start;height:32px;padding:0 8px;border:0;background:transparent;color:#3c454d;font-size:12px;cursor:pointer;border-radius:7px}.yw-image-editor-back:hover{background:#f4f6f7}
.yw-image-editor-body{display:grid;grid-template-columns:132px minmax(0,1fr);min-height:690px}
.yw-image-editor-tools{border-right:1px solid #edf0f2;padding:16px 12px;display:flex;flex-direction:column;min-width:0;background:#fbfcfc}
.yw-editor-tool-group{display:flex;flex-direction:column;gap:7px}
.yw-editor-tool{width:100%;height:36px;border:1px solid #dfe4e8;border-radius:7px;background:#fff;color:#3d464e;font-size:12px;line-height:34px;text-align:center;cursor:pointer}.yw-editor-tool:hover{border-color:#b9c1c7}.yw-editor-tool.is-active{background:#f1f3f4;border-color:#b7c0c6;color:#171c20;font-weight:600}
.yw-editor-options{margin-top:13px;padding-top:12px;border-top:1px solid #e7eaec}.yw-editor-option{display:flex;flex-direction:column;gap:9px}.yw-editor-option label{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#69737b;font-size:10px;line-height:20px}.yw-editor-option input[type=color]{width:28px;height:24px;padding:0;border:1px solid #d7dce0;border-radius:5px;background:#fff}.yw-editor-option input[type=range]{width:72px}.yw-editor-option input[type=text]{width:100%;height:30px;padding:0 7px;border:1px solid #d7dce0;border-radius:6px;font-size:11px;outline:none}.yw-shape-types{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.yw-shape-types button{height:27px;padding:0;border:1px solid #e0e4e7;border-radius:5px;background:#fff;color:#657078;font-size:9px;cursor:pointer}.yw-shape-types button.is-active{background:#f1f3f4;color:#20262b;border-color:#c0c7cc}
.yw-editor-history{margin-top:auto;padding-top:14px;border-top:1px solid #e7eaec;display:flex;flex-direction:column;gap:7px}.yw-editor-history button{height:32px;border:1px solid #dfe4e8;border-radius:7px;background:#fff;color:#4a535a;font-size:10px;cursor:pointer}.yw-editor-history button:hover{background:#f6f7f8}.yw-editor-history button:disabled{opacity:.42;cursor:not-allowed}
.yw-image-editor-main{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 28px 26px;background:#fff}.yw-editor-canvas-wrap{width:100%;min-height:610px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f7f8f9;border:1px solid #e4e8ea;border-radius:10px;padding:14px}.yw-editor-canvas-wrap canvas{display:block;max-width:100%;max-height:610px;width:auto;height:auto;box-shadow:0 5px 18px rgba(20,28,35,.08);background:#fff;touch-action:none;cursor:crosshair}.yw-editor-use{height:38px;min-width:126px;margin-top:18px;padding:0 24px;border:0;border-radius:7px;background:#151a1e;color:#fff;font-size:12px;line-height:38px;cursor:pointer}.yw-editor-use:hover{background:#2a3137}.yw-editor-use:disabled{opacity:.55;cursor:wait}
body.yw-editor-open .yw-image-editor{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1050px,calc(100vw - 32px));height:min(780px,calc(100vh - 32px));margin:0;overflow:hidden}.yw-editor-open .yw-image-editor-body{height:calc(min(780px,100vh - 32px) - 52px);min-height:0}.yw-editor-open .yw-editor-canvas-wrap{min-height:0;height:100%;}.yw-editor-open .yw-image-editor-main{padding:20px 24px 20px}.yw-editor-open .yw-editor-use{flex:0 0 auto}
.yw-editor-overlay{}
@media(max-width:760px){body.yw-editor-open .yw-image-editor{width:calc(100vw - 18px);height:calc(100vh - 18px)}.yw-image-editor-body{grid-template-columns:104px minmax(0,1fr)}.yw-image-editor-tools{padding:12px 8px}.yw-editor-tool{height:34px;font-size:11px}.yw-image-editor-main{padding:12px}.yw-editor-canvas-wrap{padding:8px}.yw-editor-canvas-wrap canvas{max-height:calc(100vh - 145px)}.yw-editor-use{margin-top:10px;height:36px;line-height:36px}}
/* 统一工作台三个控制器当前文字为 13px；提示词技能面板内部不覆盖。 */
.yw-controls .yw-model-control #yw-model,.yw-controls .yw-auto-toggle,.yw-controls .yw-skill-toggle{font-size:13px!important;line-height:30px!important;font-family:inherit!important;font-weight:400!important}

/* V1.0.68：AI回复结果区横向铺满对话框；图片保持360px原比例；五个操作按钮自然宽度同排。 */
.yw-msg-ai .yw-msg-bubble,.yw-msg-assistant .yw-msg-bubble{width:calc(100% - 44px)!important;max-width:calc(100% - 44px)!important;box-sizing:border-box!important}
.yw-msg-ai .yw-result-grid,.yw-msg-assistant .yw-result-grid{width:100%!important;max-width:100%!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:18px 14px!important}
.yw-msg-ai .yw-result-unit,.yw-msg-assistant .yw-result-unit{width:100%!important;max-width:100%!important;min-width:0!important;align-items:center!important}
.yw-msg-ai .yw-result-unit .yw-result-image-box,.yw-msg-assistant .yw-result-unit .yw-result-image-box{width:360px!important;max-width:100%!important}
.yw-msg-ai .yw-result-unit .yw-result-image-box > img,.yw-msg-assistant .yw-result-unit .yw-result-image-box > img{width:360px!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important}
.yw-msg-ai .yw-result-actions,.yw-msg-assistant .yw-result-actions{width:max-content!important;max-width:100%!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:9px!important;margin:24px auto 0!important;padding:0!important}
.yw-msg-ai .yw-result-actions .yw-act-btn,.yw-msg-assistant .yw-result-actions .yw-act-btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:32px!important;padding:0 15px!important;font-size:13px!important;white-space:nowrap!important}
@media(max-width:760px){.yw-msg-ai .yw-msg-bubble,.yw-msg-assistant .yw-msg-bubble{width:calc(100% - 44px)!important;max-width:calc(100% - 44px)!important}.yw-msg-ai .yw-result-unit,.yw-msg-assistant .yw-result-unit{width:100%!important;max-width:100%!important}.yw-msg-ai .yw-result-actions,.yw-msg-assistant .yw-result-actions{width:100%!important;max-width:100%!important;flex-wrap:wrap!important;justify-content:center!important}.yw-msg-ai .yw-result-actions .yw-act-btn,.yw-msg-assistant .yw-result-actions .yw-act-btn{flex:0 0 auto!important}}

/* V1.0.69：AI结果图片与五个操作按钮统一靠左对齐；外层结果单元仍横向铺满。 */
.yw-msg-ai .yw-result-unit,.yw-msg-assistant .yw-result-unit{align-items:flex-start!important;text-align:left!important}
.yw-msg-ai .yw-result-actions,.yw-msg-assistant .yw-result-actions{justify-content:flex-start!important;margin-left:0!important;margin-right:0!important}

/* V1.0.70：彻底锁定 AI 结果内容左对齐。结果单元铺满对话框，但图片、图片框与五按钮均从同一左侧基准线开始；清除历史居中规则。 */
.yw-msg-ai .yw-result-grid,
.yw-msg-assistant .yw-result-grid{
  justify-content:flex-start!important;
  justify-items:start!important;
  align-items:flex-start!important;
  text-align:left!important;
}
.yw-msg-ai .yw-result-unit,
.yw-msg-assistant .yw-result-unit{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  margin-left:0!important;
  margin-right:0!important;
  text-align:left!important;
}
.yw-msg-ai .yw-result-unit .yw-result-image-box,
.yw-msg-assistant .yw-result-unit .yw-result-image-box{
  display:block!important;
  align-self:flex-start!important;
  margin-left:0!important;
  margin-right:auto!important;
}
.yw-msg-ai .yw-result-unit .yw-result-image-box > img,
.yw-msg-assistant .yw-result-unit .yw-result-image-box > img{
  display:block!important;
  margin-left:0!important;
  margin-right:0!important;
}
.yw-msg-ai .yw-result-actions,
.yw-msg-assistant .yw-result-actions{
  align-self:flex-start!important;
  margin-left:0!important;
  margin-right:0!important;
  justify-content:flex-start!important;
  text-align:left!important;
}

/* V1.0.73：最终锁定 AI 结果图片与五按钮左对齐。 */
 .yw-msg-ai .yw-result-unit,.yw-msg-assistant .yw-result-unit{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;width:100%!important;max-width:100%!important;margin:0!important;text-align:left!important;}
.yw-msg-ai .yw-result-unit .yw-result-image-box,.yw-msg-assistant .yw-result-unit .yw-result-image-box{align-self:flex-start!important;margin:0!important;width:360px!important;max-width:100%!important;}
.yw-msg-ai .yw-result-actions,.yw-msg-assistant .yw-result-actions{align-self:flex-start!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;width:max-content!important;max-width:100%!important;margin:24px 0 0 0!important;padding:0!important;gap:9px!important;text-align:left!important;}
.yw-msg-ai .yw-result-actions .yw-act-btn,.yw-msg-assistant .yw-result-actions .yw-act-btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;margin:0!important;}
@media(max-width:760px){.yw-msg-ai .yw-result-actions,.yw-msg-assistant .yw-result-actions{width:100%!important;max-width:100%!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:7px!important;}.yw-msg-ai .yw-result-actions .yw-act-btn,.yw-msg-assistant .yw-result-actions .yw-act-btn{flex:0 0 auto!important;}}

/* V1.0.80：仅提示词技能父级 / 子集分类 UI；不触碰工作台输入、上传、生成逻辑。 */
.yw-skill-cats .yw-skill-parent-cat{margin:2px 0}.yw-skill-cats .yw-skill-parent-button{display:flex;align-items:center;justify-content:space-between;text-align:left}.yw-skill-cats .yw-skill-cat-arrow{font-size:16px;line-height:1;transition:transform .15s}.yw-skill-cats .yw-skill-parent-cat.open .yw-skill-cat-arrow{transform:rotate(90deg)}.yw-skill-cats .yw-skill-children{display:none;padding:1px 0 4px 10px}.yw-skill-cats .yw-skill-children.open{display:block}.yw-skill-cats .yw-skill-children button{height:32px;margin:1px 0;padding-left:14px;font-size:11px;color:#7b848b}.yw-skill-cats .yw-skill-children button.active{background:#171c20;color:#fff}.yw-skill-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:760px){.yw-skill-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* V1.0.109：1080px 预览支持滚轮缩放 */
.yw-image-lightbox,.yw-result-lightbox{overflow:hidden!important;}
.yw-image-lightbox img,.yw-result-lightbox img{transform-origin:center center!important;will-change:transform!important;}
