/* Circuit Builder (/circuit-builder): the 4:3 board with the parts tray at its left (a square board with the tray under it
   on phones), and the selected part's panel. Tiles, panels and buttons come from the app kit (css/app-kit,
   docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.cb-landing-app .cb-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Drag parts, draw wires, tap switches; the script sets the cursor. No scrolling or zooming while a finger builds. */
.cb-landing-app .cb-canvas {
    display: block;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 4 / 3;
    border-radius: var(--ak-radius, 8px);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.cb-landing-app .cb-canvas:focus-visible {
    outline: 2px solid var(--ak-accent, #2563eb);
    outline-offset: 2px;
}

/* Phones: a square picture, the tray under the board, so the parts keep a size a finger can use. */
@media (max-width: 640px) {
    .cb-landing-app .cb-canvas {
        aspect-ratio: 1 / 1;
    }
}

.cb-landing-app .cb-hint {
    margin: 0.25rem 0;
    color: var(--ak-muted, #64748b);
    font-size: 0.875rem;
}

.cb-landing-app .cb-sel[hidden],
.cb-landing-app .cb-hint[hidden],
.cb-landing-app .ak-row[hidden],
.cb-landing-app .ak-btn[hidden] {
    display: none;
}

.cb-landing-app .cb-sel-name {
    font-weight: 700;
    margin: 0.2rem 0 0.4rem;
}

.cb-landing-app .cb-sel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
