/* Decision Tree Builder (/decision-tree-builder): the square plane, the SVG tree (rules, leaves in their class colour,
   the selected node and its path) and the two-column layout of the plane and the chart. Tiles, panels, charts, the
   legend and buttons come from the app kit (css/app-kit, docs/app-kit.md). Loaded only on this app's page (StylePaths). */

.dt-landing-app .dt-panel { display: flex; flex-direction: column; gap: var(--ak-space-2, 0.6rem); }
.dt-landing-app .dt-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--ak-space-3, 0.9rem); align-items: start; }

.dt-landing-app .dt-plane-wrap { width: 100%; max-width: 32rem; margin: 0 auto; aspect-ratio: 1; }
.dt-landing-app .dt-plane { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.dt-landing-app .dt-actions { display: flex; flex-wrap: wrap; gap: var(--ak-space-2, 0.5rem); }

.dt-landing-app .dt-tree { overflow-x: auto; overflow-y: hidden; }
.dt-landing-app .dt-tree svg { display: block; margin: 0 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dt-landing-app .dt-edge { stroke: color-mix(in srgb, var(--ak-muted) 60%, transparent); stroke-width: 1.5; }
.dt-landing-app .dt-edge.is-path { stroke: var(--ak-text); stroke-width: 2.5; }
.dt-landing-app .dt-yes { font-size: 9.5px; fill: var(--ak-muted); }
.dt-landing-app .dt-node { cursor: pointer; outline: none; }
.dt-landing-app .dt-node > rect:first-child { fill: var(--ak-panel); stroke: color-mix(in srgb, var(--ak-muted) 65%, transparent); stroke-width: 1.3; }
.dt-landing-app .dt-node.is-leaf > rect:first-child { fill-opacity: 0.28; stroke: none; }
.dt-landing-app .dt-node.is-path > rect:first-child { stroke: var(--ak-text); stroke-width: 1.8; }
.dt-landing-app .dt-node.is-selected > rect:first-child { stroke: var(--ak-text); stroke-width: 3; }
.dt-landing-app .dt-node:focus-visible > rect:first-child { stroke: var(--ak-accent); stroke-width: 3; }
.dt-landing-app .dt-label { font-size: 11px; font-weight: 600; fill: var(--ak-text); }

.dt-landing-app .dt-status { margin: 0; }

@media (max-width: 760px) {
    .dt-landing-app .dt-columns { grid-template-columns: minmax(0, 1fr); }
}
