/* Mind map (/mind-map): the SVG canvas, nodes, edges, zoom bar and map list.
   Stage, panels, fields and buttons come from the app kit (css/app-kit, docs/app-kit.md);
   the accent is the creative category's pink. Loaded only on this app's page (StylePaths). */
.mm-landing-stage {
    display: flex;
    flex-direction: column;
    min-height: 36rem;
}

.mm-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    margin-bottom: 0.55rem;
}

.mm-zoom {
    font-variant-numeric: tabular-nums;
    min-width: 3.2rem;
    text-align: center;
    font-weight: 600;
}

.mm-canvas-wrap {
    flex: 1 1 auto;
    min-height: 28rem;
    padding: 0;
    overflow: hidden;
    touch-action: none;
}

.mm-svg {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 28rem;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ak-accent) 8%, transparent), transparent 55%),
        var(--ak-panel);
    cursor: grab;
}

.mm-svg:active {
    cursor: grabbing;
}

.mm-node {
    cursor: pointer;
}

.mm-node .mm-shape {
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.12));
}

.mm-label {
    font-family: inherit;
    pointer-events: none;
}

.mm-toggle {
    cursor: pointer;
}

.mm-edit {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 8px;
    font: inherit;
    text-align: center;
}

.mm-map-list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.mm-map {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mm-map-name {
    flex: 1 1 auto;
    text-align: start;
}

.mm-map.is-current .mm-map-name {
    font-weight: 700;
}

.mm-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.mm-swatch {
    width: 1.55rem;
    height: 1.55rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--ak-swatch);
    cursor: pointer;
}

.mm-swatch--auto {
    background: var(--ak-panel);
    color: var(--ak-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.mm-swatch[aria-pressed="true"] {
    border-color: var(--ak-text);
    box-shadow: 0 0 0 2px var(--ak-bg), 0 0 0 4px var(--ak-swatch, var(--ak-accent));
}

.mm-outline {
    font-family: ui-monospace, monospace;
    min-height: 8rem;
}

@media (max-width: 700px) {
    .mm-landing-stage,
    .mm-canvas-wrap,
    .mm-svg {
        min-height: 22rem;
    }
}
