/* Decision Boundaries (/decision-boundaries): the field of points and decision regions (or the six panels of Compare all) fills a focus
   stage, with the four tiles in the floating panel beside it (docs/app-kit.md). Tiles, panels and buttons come from the app kit
   (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

/* Click to add points, drag them and the k-NN probe; the script sets the cursor. No scrolling or zooming while a finger drags. */
.db-landing-app .db-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

.db-landing-app .db-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: -2px;
}

/* The class picker: a dot in each class's colour (the same as the picture's) before its letter. */
.db-landing-app .db-classes > .ak-seg-btn {
    flex: 1 1 0;
}

.db-landing-app .db-cls::before {
    content: "";
    flex: none;
    width: 0.75em;
    height: 0.75em;
    border-radius: 50%;
    background: var(--db-swatch);
    box-shadow: 0 0 0 1px rgba(8, 12, 28, 0.35);
}

.db-landing-app .db-cls--0 { --db-swatch: #2f6fdf; }
.db-landing-app .db-cls--1 { --db-swatch: #e0473d; }
.db-landing-app .db-cls--2 { --db-swatch: #e09a12; }
