.knowledge-grid:has(.image-workbench) > *,
.image-workbench,
.image-workbench .image-result > * { min-width:0; max-width:100%; box-sizing:border-box; }
.image-workbench .image-drop input { width:100%; max-width:19rem; min-width:0; }
.image-workbench .image-drop { overflow-wrap:anywhere; }
.image-workbench .image-result { grid-template-columns:minmax(0,3fr) minmax(0,2fr); align-items:start; }
.image-workbench .image-result canvas {
  width:min(100%,var(--display-width,600px)); height:auto; max-height:none; justify-self:center;
  background:repeating-conic-gradient(#e9e9ea 0 25%,#fff 0 50%) 0 0/18px 18px;
}
.image-workbench [hidden] { display:none !important; }
.image-workbench .image-result:not(:has(canvas:not([hidden]))) { display:none; }
.image-workbench .picked-color { display:grid; min-height:0; gap:.35rem; }
.image-workbench .picked-color button {
  padding:.5rem .75rem; min-height:42px; background:#202735; color:white; display:flex;
  flex-direction:row; align-items:center; justify-content:space-between; gap:.4rem; width:100%;
}
.image-workbench .picked-color code { white-space:normal; overflow-wrap:anywhere; font-size:.82rem; }
.image-workbench .pixel-sample { min-height:54px; border:1px solid #9299a3; border-radius:3px;
 background:linear-gradient(var(--sample),var(--sample)),repeating-conic-gradient(#d8d8da 0 25%,white 0 50%) 0 0/18px 18px; }
.pixel-controls { display:flex; flex-wrap:wrap; align-items:end; gap:.55rem; margin:1rem 0 .35rem; }
.pixel-controls label { display:grid; gap:.25rem; font-size:.85rem; }
.pixel-controls input { width:6rem; max-width:100%; color:#151922; background:white; border:1px solid #969ba4; border-radius:.25rem; padding:.4rem; }
.pixel-controls button,.image-export { padding:.5rem .75rem; border-radius:.25rem; background:#293a4f; color:white; font-weight:bold; }
.image-status { margin:.5rem 0; min-height:1.4em; }
.image-export { grid-column:1/-1; text-align:center; }
.image-workbench button:focus-visible,.image-workbench a:focus-visible { outline:3px solid #f59439; outline-offset:2px; }
@media(max-width:720px) {
  .knowledge-grid:has(.image-workbench) { grid-template-columns:minmax(0,1fr); }
  .image-workbench .image-result { grid-template-columns:minmax(0,1fr); gap:.7rem; }
}

.image-workbench .logo-composition { display:flex; flex-wrap:wrap; align-items:center; gap:.55rem 1.1rem; margin:1rem 0 .55rem; }
.image-workbench .logo-composition label { display:inline-flex; align-items:center; gap:.45rem; flex-wrap:wrap; }
.image-workbench .logo-composition input { cursor:pointer; width:3rem; height:2.5rem; }
.image-workbench .logo-composition button { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; padding:.45rem .6rem; border:1px solid currentColor; border-radius:.25rem; color:inherit; background:transparent; cursor:pointer; }
.image-workbench .logo-composition button::before { content:""; width:1.2rem; height:1.2rem; background:var(--visible-color); border:1px solid #85868a; }
.image-workbench .logo-composition p { flex-basis:100%; margin:0; }
.image-workbench [data-visible-name] { text-decoration:underline; text-underline-offset:.2em; }

.image-workbench .image-paste { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .75rem; margin:.65rem 0; }
.image-workbench .image-paste button { padding:.5rem .75rem; min-height:44px; border:1px solid currentColor; border-radius:.25rem; color:inherit; background:transparent; font:inherit; cursor:pointer; }
.image-workbench .image-paste span { font-size:.88rem; }
