/* Open botanical catalogue with a dedicated large editing surface. */
dialog:has(.creative-workbench){width:1320px}
.creative-workbench{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:36px}
.creative-assets{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-height:none;overflow:visible;padding:4px}
.creative-assets button{display:flex;align-items:center;justify-content:center;height:170px;padding:16px;overflow:hidden}
.creative-assets button img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;flex:none}
.creative-controls{gap:22px}
.creative-controls>.creative-section-title{justify-content:space-between;flex-wrap:wrap;gap:12px}
.creative-preview{top:16px}
#cr-edit{min-height:50px;background:#e8efea;border-color:#315e48;font-size:16px}
.scene-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.scene-picker button{padding:8px;background:white;overflow:hidden}
.scene-picker img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;margin-bottom:10px}
.scene-picker span{font-size:16px;display:block;padding:4px}
.ai-compose p:empty{display:none}
dialog.image-editor-dialog{width:min(1440px,96vw);max-width:96vw;height:92vh;max-height:92vh;padding:0;background:#f8faf8;overflow:hidden;border-radius:16px}
.image-editor-dialog::backdrop{background:#14291ee0}
.ie-header{height:auto;min-height:78px;padding:16px 24px;border-bottom:1px solid #dce4dc;display:flex;align-items:center;justify-content:space-between;gap:20px;box-sizing:border-box}
.ie-header h2{margin:0;font-size:24px}
.ie-layout{display:grid;grid-template-columns:270px minmax(0,1fr);height:calc(100% - 84px);min-height:0}
.ie-tools{overflow:auto;padding:24px;display:flex;flex-direction:column;gap:20px;border-right:1px solid #dde5dd;background:white;min-height:0}
.ie-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ie-tools button,.ie-viewbar button,.ie-header button{font-size:14px;min-height:42px;padding:8px 10px}
.ie-tools [aria-pressed=true]{background:#315e48;color:white;border-color:#315e48}
.ie-tools label{display:grid;gap:10px;font-size:14px}
.ie-tools input[type=range]{width:100%;accent-color:#315e48}
.ie-tools input[type=color]{width:100%;height:38px;border:1px solid #d9e2d9;background:white}
.ie-tools select{width:100%;font:inherit;padding:10px}
.ie-tools hr{border:0;border-top:1px solid #dce4dc;width:100%;margin:0}
.ie-brush{display:grid;gap:16px}
.ie-stage{min-width:0;min-height:0;display:flex;flex-direction:column;background:#e8eee9}
.ie-viewbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 22px;font-size:14px;flex-wrap:wrap}
.ie-viewbar>div{display:flex;align-items:center;gap:10px}
.ie-viewport{flex:1;min-height:0;overflow:auto;padding:18px;box-sizing:border-box;overscroll-behavior:contain}
#ie-canvas{display:block;margin:auto;max-width:none;max-height:none;touch-action:none;background:repeating-conic-gradient(#edf0eb 0% 25%,white 0% 50%) 0 0/20px 20px;box-shadow:0 8px 30px #1c332320;cursor:grab}
#ie-canvas:focus-visible{outline:2px solid #315e48;outline-offset:3px}
.image-editor-dialog button:disabled{opacity:.45;cursor:not-allowed}
.image-editor-dialog [hidden]{display:none!important}
#ie-status{font-size:14px;line-height:1.6;margin:0}
#ie-status:empty{display:none}
@media(max-width:950px){.creative-workbench{grid-template-columns:1fr}.creative-preview{position:static}.creative-assets{grid-template-columns:repeat(4,minmax(0,1fr))}.creative-assets button{height:155px}.ie-layout{grid-template-columns:210px minmax(0,1fr)}.ie-tools{padding:14px}}
@media(max-width:600px){.creative-assets{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.creative-assets button{height:165px}.scene-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.ie-header{padding:12px;gap:8px}.ie-header h2{font-size:18px}.ie-layout{display:flex;flex-direction:column;height:calc(100% - 80px)}.ie-stage{order:-1;flex:1;min-height:230px}.ie-tools{max-height:32vh;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #dce4dc}.ie-tools hr{display:none}.ie-viewbar{padding:6px 12px}.ie-viewport{padding:12px}}
