/* Perceptron Visualizer (/perceptron-visualizer): the plane beside the status, the last update and the buttons
   (stacked on narrow screens), the legend's square, ring and arrow, the class marks of Click adds, and the update
   table. Tiles, panels, the chart and the buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on
   this app's page (StylePaths). */

.pv-landing-app .pv-main {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--ak-space-3, 1rem);
    align-items: start;
}

@media (max-width: 860px) {
    .pv-landing-app .pv-main { grid-template-columns: minmax(0, 1fr); }
}

.pv-landing-app .pv-plot-wrap,
.pv-landing-app .pv-side {
    display: flex;
    flex-direction: column;
    gap: var(--ak-space-2, 0.5rem);
    min-width: 0;
}

.pv-landing-app .pv-plot {
    display: block;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    cursor: crosshair;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.pv-landing-app .pv-legend { margin: 0; justify-content: center; }

.pv-landing-app .ak-swatch.pv-square { width: 0.7rem; height: 0.7rem; border-radius: 1px; }

.pv-landing-app .ak-swatch.pv-ring {
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--ak-swatch);
}

.pv-landing-app .pv-arrow {
    color: var(--ak-accent);
    font-weight: 700;
    line-height: 1;
}

/* Click adds: a circle for class +1, a square for class −1, as on the plane. */
.pv-landing-app .pv-mark {
    display: inline-block;
    flex: none;
    width: 0.62rem;
    height: 0.62rem;
    border: 1.5px solid currentColor;
}
.pv-landing-app .pv-mark--pos { border-radius: 50%; background: var(--ak-series-1); }
.pv-landing-app .pv-mark--neg { border-radius: 1px; background: var(--ak-series-2); }

.pv-landing-app .pv-status { margin: 0; font-weight: 600; color: var(--ak-text); }
.pv-landing-app .pv-status.is-good { color: var(--ak-success); }
.pv-landing-app .pv-status.is-bad { color: var(--ak-danger); }

.pv-landing-app .pv-update {
    display: flex;
    flex-direction: column;
    gap: var(--ak-space-2, 0.5rem);
}
.pv-landing-app .pv-update[hidden] { display: none; }

.pv-landing-app .pv-say {
    margin: 0;
    font-size: var(--ak-fs-sm, 0.88rem);
    color: var(--ak-muted);
}
.pv-landing-app .pv-say.is-bad { color: var(--ak-text); }

.pv-landing-app .pv-table th[scope="row"] { font-style: italic; font-weight: 700; }
.pv-landing-app .pv-table .pv-delta { color: var(--ak-muted); }
.pv-landing-app .pv-table tr.is-changed .pv-delta { color: var(--ak-accent); font-weight: 700; }

.pv-landing-app .pv-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ak-space-2, 0.5rem);
}
