/* Keep the native file input in the tab order. Its label is the visible control. */
.file-picker { position: relative; }
.file-picker > input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.file-picker:focus-within {
    outline: 2px solid var(--ws-primary-ring, #93c5fd);
    outline-offset: -2px;
}

/* The drawing consumes gestures; its sibling controls allow page zoom. */
.preview-container { touch-action: auto; }
#preview-canvas { touch-action: none; }
