#open-creative-workspace,.open-answer-workspace{border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);padding:8px 12px;font:inherit;font-size:13px;min-height:40px}.open-answer-workspace{display:block;margin-top:12px;white-space:normal}.workspace.creative-open{gap:18px}.workspace.creative-open #chat{flex:1;min-width:250px;max-width:none}.workspace.creative-open #page-panel{display:none}.workspace #creative-workspace{display:flex;flex:1.1;flex-direction:column;min-width:300px;max-width:65%;min-height:0;border:1px solid var(--line);border-radius:14px;margin-bottom:14px;background:var(--bg);overflow:hidden}.workspace #creative-workspace[hidden]{display:none}.creative-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);flex-shrink:0}.creative-workspace-heading h2{font-size:18px;margin:0}.creative-workspace-heading button,.creative-workspace-tools button,.creative-workspace-tools select{font:inherit;font-size:13px;min-height:40px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text)}.creative-workspace-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:12px 14px}.creative-workspace-tools label{display:grid;font-size:12px;gap:4px;min-width:0;max-width:100%}.creative-workspace-tools select{max-width:220px}.creative-workspace-note,#creative-workspace>p[role=status]{font-size:12px;margin:0;padding:4px 14px;overflow-wrap:anywhere}#creative-workspace>label{font-size:12px;font-weight:bold;padding:8px 14px 0}#creative-draft-text{flex:1;min-height:180px;max-height:none;width:calc(100% - 28px);margin:8px 14px 14px;padding:16px;border:1px solid var(--line);border-radius:8px;font:15px/1.6 Arial,sans-serif;background:var(--bg);color:var(--text);resize:none;overflow:auto;user-select:text;touch-action:pan-y pinch-zoom}#creative-draft-text:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.creative-website-preview{flex:1;min-height:0;overflow:auto;padding:12px}.creative-website-preview[hidden],#creative-workspace [hidden]{display:none!important}@media(max-width:1000px){.workspace.creative-open #chat{display:none}.workspace #creative-workspace{max-width:none;width:100%;min-width:0}.creative-workspace-heading{flex-wrap:wrap}.creative-workspace-tools select{max-width:100%}}@media(min-width:1001px){.workspace.creative-open .composer-label{display:none}}
.creative-workspace-tabs{display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:8px 12px;border-bottom:1px solid var(--line);scrollbar-width:thin}.creative-workspace-tabs>div{display:flex;flex:0 0 auto}.creative-workspace-tabs button{padding:8px 10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:12px;min-height:40px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.creative-workspace-tabs [aria-selected=true]{background:var(--lime);color:var(--ink);font-weight:bold}.creative-workspace-tabs button:first-child{border-radius:8px 0 0 8px}.creative-workspace-tabs button:last-child{border-radius:0 8px 8px 0;max-width:40px}.creative-compact.creative-open #chat{display:none}.workspace.creative-compact #creative-workspace{max-width:none;width:100%;min-width:0}
.creative-workspace-surface{display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto}.creative-workspace-surface>p[role=status]{font-size:12px;margin:0;padding:4px 14px;overflow-wrap:anywhere}.creative-workspace-surface>label{font-size:12px;font-weight:bold;padding:8px 14px 0}

.creative-image-surface{display:flex;flex:1;min-height:0;overflow:hidden}.image-workspace{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;padding:12px;gap:12px}.image-workspace-toolbar,.image-workspace-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.image-workspace button,.image-workspace select,.image-workspace a{font:inherit;font-size:13px;min-height:44px;border:1px solid var(--line);border-radius:8px;padding:8px;background:var(--panel);color:var(--text);box-sizing:border-box}.image-workspace select{max-width:100%;min-width:0}.image-workspace-toolbar>label{display:flex;align-items:center;gap:6px;font-size:13px}.image-workspace-toolbar input{width:auto}.image-workspace-concepts{display:flex;gap:8px;overflow-x:auto;flex-shrink:0}.image-workspace-concepts button{display:grid;gap:4px;flex:0 0 100px;max-width:120px;text-align:left}.image-workspace-concepts img{width:80px;height:64px;object-fit:contain}.image-workspace-concepts span{font-size:11px;overflow-wrap:anywhere}.image-workspace-concepts [aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-2px}.image-workspace-views{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;flex:1;min-height:160px}.image-workspace-views.comparing{grid-template-columns:repeat(2,minmax(0,1fr))}.image-workspace-views figure{display:flex;flex-direction:column;min-height:0;min-width:0;margin:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}.image-workspace-views figcaption{font-size:12px;padding:8px;overflow-wrap:anywhere}.image-workspace-viewport{flex:1;min-height:120px;max-height:60vh;overflow:auto;touch-action:pan-x pan-y pinch-zoom;background:#edf0ed;padding:8px}.image-workspace-viewport img{display:block;max-width:none;height:auto;margin:0 auto}.image-workspace-note,.image-workspace>p{font-size:12px;margin:0;overflow-wrap:anywhere}@media(max-width:600px){.image-workspace-views.comparing{grid-template-columns:minmax(0,1fr)}.image-workspace-viewport{max-height:42vh}}

.image-workspace{overflow:auto}.image-workspace-toolbar,.image-workspace-actions,.image-workspace>p{flex-shrink:0}.image-workspace-views{min-height:320px;flex-shrink:0}.image-workspace-viewport{min-height:240px}@media(max-width:600px){.image-workspace-views.comparing{min-height:640px}}

/* Image-first workspace: chat remains the starting point; opening an image provides a spacious canvas. */
.workspace.creative-image-open #chat{display:none}.workspace.creative-image-open #creative-workspace{flex:1;width:100%;max-width:none;min-width:0;margin:0;border-radius:16px}.creative-image-open .creative-workspace-heading{padding:16px 22px}.creative-image-open .creative-workspace-tabs,.creative-image-open .creative-workspace-note{display:none}.creative-image-open .creative-workspace-surface{overflow:hidden}.creative-image-open .creative-image-surface{min-height:0}.creative-image-open .image-workspace{padding:16px 22px;overflow:auto;gap:12px}.creative-image-open .image-workspace-concepts{display:none}.creative-image-open .image-workspace-views{min-height:240px;flex:1;flex-shrink:1}.creative-image-open .image-workspace-views figcaption{display:none}.creative-image-open .image-workspace-viewport{min-height:220px;height:100%;max-height:none;display:flex;align-items:center;background:#f4f6f8;padding:16px}.creative-image-open .image-workspace-viewport img{min-height:0;flex-shrink:0}.creative-image-open .image-workspace-toolbar{padding-bottom:12px;border-bottom:1px solid var(--line)}.creative-image-open .image-workspace-toolbar>select{flex:1;max-width:380px}.creative-image-open .image-workspace-actions{justify-content:flex-end}.creative-image-open .image-workspace-actions button{background:var(--lime);color:var(--ink);font-weight:600}.design-preview-button{width:min(100%,640px)}.design-preview-dialog .design-zoom-viewport{background:#f4f6f8;border-radius:12px}.creative-image-open .image-workspace-views.comparing{min-height:240px}@media(max-width:600px){.creative-image-open .creative-workspace-heading,.creative-image-open .image-workspace{padding:12px}.creative-image-open .image-workspace-toolbar>select{flex-basis:100%;max-width:100%}.creative-image-open .image-workspace-views.comparing{min-height:480px}.creative-image-open .image-workspace-views.comparing .image-workspace-viewport{min-height:220px}}
