.image-workbench{max-width:1280px;color:var(--theme-text-primary,#ededed);margin:0 auto;padding:32px 24px 80px}.image-workbench header{margin-bottom:28px}.image-workbench h1{margin:0 0 8px;font-size:28px}.image-workbench header p,.image-operation-note{color:var(--theme-text-secondary,#a3a3a3);font-size:14px;line-height:1.65}.image-workspace{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:40px;display:grid}.image-controls{flex-direction:column;align-self:start;gap:16px;display:flex}.image-controls textarea{resize:vertical}.image-controls>label{font-weight:600}.image-prompt-tools{justify-content:space-between;align-items:center;margin-top:-12px;display:flex}.image-options{grid-template-columns:1fr 1fr;gap:12px;display:grid}.image-operation-note{margin:0}.image-request-recovery{flex-wrap:wrap;gap:12px;display:flex}.image-request-recovery p{flex-basis:100%;line-height:1.6}.image-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;margin:24px 0;display:grid}.image-library-thumbnail{cursor:zoom-in;background:0 0;border:0;width:100%;padding:0;display:block}.image-library-thumbnail img{aspect-ratio:2/3;object-fit:contain;background:var(--theme-surface-1,#191919);border-radius:8px;width:100%;transition:opacity .15s;display:block}.image-library-thumbnail:hover img{opacity:.88}.image-library-actions{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.image-library-empty{text-align:center;color:var(--theme-text-secondary,#a3a3a3);padding:80px 20px}.image-reference img{object-fit:contain;width:80px;height:100px}.image-reference{align-items:center;gap:16px;display:flex}.image-enlarged{max-width:100%;max-height:70vh;margin:auto;display:block}.image-history{margin-top:32px}.image-history h2{font-size:18px}.image-history>div{border-bottom:1px solid var(--theme-border,#333);justify-content:space-between;gap:12px;padding:14px 0;display:flex}.image-history span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.image-history small{white-space:nowrap;color:var(--theme-text-secondary,#a3a3a3)}@media (max-width:760px){.image-workbench{padding:24px 16px 88px}.image-workspace{grid-template-columns:minmax(0,1fr);gap:36px}.image-workbench h1{font-size:24px}.image-library-grid{gap:20px 12px}}@media (prefers-reduced-motion:reduce){.image-library-thumbnail img{transition:none}}.image-studio-dialog{width:min(1120px,100vw - 24px);max-width:1120px}.image-studio-dialog .image-workbench{padding:12px 8px 28px}.image-studio-dialog .image-workbench>header{display:none}.image-workbench section{min-width:0;max-width:none;margin:0;padding:0}.image-workbench .image-history{margin-top:32px}.image-history-heading,.image-history-pages,.image-history-actions{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.image-history-list{margin:16px 0;padding:0;list-style:none}.image-history-list li{border-bottom:1px solid var(--theme-border)}.image-history-list button{text-align:left;width:100%;color:inherit;cursor:pointer;background:0 0;border:0;gap:6px;padding:16px 0;display:grid}.image-history-list button:hover{color:var(--theme-accent)}.image-history-list button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}.image-history-list span{white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}.image-history-list small{white-space:normal}.image-history-detail{width:min(760px,100vw - 24px)}.image-history-detail p{overflow-wrap:anywhere;line-height:1.6}.image-history-prompt{white-space:pre-wrap}.image-history-detail dl{grid-template-columns:1fr 1fr;gap:10px;display:grid}.image-history-detail dd{margin:0}.image-history-reference{object-fit:contain;width:100px;max-height:140px}.image-history-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:20px;display:grid}.image-history-result-grid figure{min-width:0;margin:0}.image-history-result-grid img{object-fit:contain;width:100%;max-height:300px;display:block}.image-history-result-grid figcaption{flex-wrap:wrap;align-items:center;gap:8px;margin-top:8px;display:flex}.image-history-result-grid a{color:inherit}.image-history-pages{margin-top:16px}.image-workbench .image-history-heading,.image-workbench .image-history-pages{border:0;padding:0}.image-prompt-helper{width:min(640px,100vw - 24px)}.image-prompt-helper p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.image-prompt-helper textarea{width:100%;margin-block:8px}.image-prompt-helper>.ui-button{margin:8px 8px 0 0}.image-prompt-helper small{color:var(--theme-text-secondary);display:block}
