.chat-photo-tools{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:88dvh;overflow:auto;padding:20px;border:1px solid var(--b1x-border,#65736c);border-radius:16px;background:var(--b1x-solid,#fff);color:var(--b1x-text,#182c25);font:14px/1.55 var(--font-ui,system-ui)}
.chat-photo-tools::backdrop{background:#0007}
.chat-photo-tools header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-photo-tools h2{font:650 21px/1.3 var(--font-ui,system-ui);margin:0}
.chat-photo-tools canvas{display:block;width:auto;max-width:100%;max-height:280px;margin:16px auto;background:repeating-conic-gradient(#8882 0% 25%,transparent 0% 50%) 50%/20px 20px;border-radius:8px}
.chat-photo-tools canvas[hidden]{display:none}
.chat-photo-tools [hidden]{display:none!important}
.chat-photo-tools label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0}
.chat-photo-tools :is(button,select,input,textarea){box-sizing:border-box;max-width:100%;font:inherit;color:inherit}
.chat-photo-tools :is(button,select){min-height:40px;padding:7px 10px;border:1px solid var(--b1x-border,#65736c);border-radius:8px;background:var(--b1x-solid,#fff);margin:4px}
.chat-photo-tools textarea{width:100%;min-height:90px;padding:10px;background:var(--b1x-solid,#fff);border:1px solid var(--b1x-border,#65736c);border-radius:8px}
.chat-photo-tools label:has(textarea){display:block}
.chat-photo-tools button{cursor:pointer}.chat-photo-tools :disabled{opacity:.55;cursor:default}
.chat-photo-tools :focus-visible{outline:2px solid var(--b1x-accent,#087a64);outline-offset:2px}
.chat-photo-tools [role=status]{min-height:24px;overflow-wrap:anywhere}
@media(max-width:450px){.chat-photo-tools{padding:14px}.chat-photo-tools>select{width:100%;margin:4px 0}.chat-photo-tools label{flex-wrap:wrap}}
