.system-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.stack-column,
.flow-stack {
    display: flex;
    flex-direction: column;
}

.stack-column {
    min-width: 0;
    gap: 1.5rem;
}

.flowchart-container {
    display: flex;
    margin-top: 1.2rem;
    padding: 1.5rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.24);
}

.flow-node {
    position: relative;
    z-index: 2;
    min-width: 170px;
    padding: 0.78rem 1.1rem;
    border: 1px solid var(--card-border);
    border-radius: 13px;
    color: inherit;
    background: rgba(30, 41, 59, 0.82);
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.flow-node:hover,
.flow-node:focus-visible,
.flow-node[aria-pressed="true"] {
    z-index: 3;
    border-color: var(--color-purple);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 20px var(--color-purple-glow);
    transform: translateY(-2px);
}

.flow-node-title,
.flow-node-subtitle {
    display: block;
}

.flow-node-title {
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 700;
}

.flow-node-subtitle {
    margin-top: 0.12rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.node-heart {
    border-color: rgba(59, 130, 246, 0.42);
}

.node-config {
    border-color: rgba(245, 158, 11, 0.38);
}

.node-util {
    border-color: rgba(16, 185, 129, 0.36);
}

.flow-connector-v {
    width: 2px;
    height: 1.1rem;
    background: linear-gradient(rgba(139, 92, 246, 0.55), rgba(59, 130, 246, 0.5));
}

.flow-group {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 1.5rem;
}

.flow-stack {
    align-items: center;
    gap: 0.75rem;
}

.flow-info-box {
    min-height: 58px;
    padding: 0.9rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 18px 18px;
    color: var(--text-secondary);
    background: rgba(15, 23, 42, 0.42);
    font-size: 0.82rem;
    text-align: center;
}

.flow-info-box strong {
    color: var(--text-primary);
}
