/* No letterboxing: the brush maps pointer positions through the canvas box, which must match the image exactly. */
.paint-stage {
    position: relative;
    display: grid;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--muted);
}

.paint-stage > canvas {
    grid-area: 1 / 1;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60vh;
}

.paint-stage .mask-canvas {
    opacity: 0.5;
    cursor: crosshair;
    touch-action: none;
}

.brush {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 600;
}

.brush input {
    flex: 1;
    min-width: 140px;
    accent-color: var(--primary);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
