.image-workspace { grid-template-areas: "bar bar" "monitor inspector"; }
.image-workspace .vw-stage { flex: 1; min-height: clamp(380px, 39vw, 520px); display: grid; place-items: center; }
.image-workspace .vw-frame { position: relative; background-color: #fff; background-image: conic-gradient(#e5e5e8 25%, transparent 0 50%, #e5e5e8 0 75%, transparent 0); background-size: 16px 16px; }
.image-workspace .iw-canvas { display: block; width: 100%; height: 100%; }
.image-workspace[data-tool=draw] .iw-canvas { touch-action: none; cursor: crosshair; }
.image-workspace .iw-canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.image-workspace .iw-cursor { position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #29282f, inset 0 0 0 1px #29282f; pointer-events: none; }
.image-workspace .vw-actions select { width: auto; min-height: 40px; padding: 4px; margin: 0; color: var(--ink); background: white; font: inherit; font-weight: 550; border-radius: 8px; border: 1px solid var(--line); }
.image-workspace .vw-caption { outline: 1px dashed #fff; box-shadow: 0 0 0 1px #25252d; }
.image-workspace .vw-crop .vw-corner { width: 44px; height: 44px; max-width: 40%; max-height: 40%; }
.image-workspace .vw-corner::after { width: 16px; height: 16px; }
.image-workspace .vw-corner[data-handle$=e]::after { left: auto; }
.image-workspace .vw-corner[data-handle^=s]::after { top: auto; }
@media (max-width: 740px) {
  .image-workspace .vw-stage { flex: auto; height: clamp(220px, 57vw, 340px); min-height: 0; aspect-ratio: auto; }
  .image-workspace .vw-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .image-workspace .vw-tabs button { flex-direction: row; gap: 5px; }
  .image-workspace .vw-actions select { min-height: 44px; }
}
@media (max-width: 400px) {
  .image-workspace .vw-toolbar { flex-wrap: wrap; }
  .image-workspace .vw-file { flex: 1 1 100%; }
  .image-workspace .vw-file > div { display: flex; width: 100%; align-items: baseline; gap: 8px; }
  .image-workspace .vw-file small { white-space: nowrap; }
  .image-workspace .vw-actions { width: 100%; }
  .image-workspace .vw-actions select { margin-inline-start: auto; }
}
