/* Room-flow graphic: left-aligned grid so every chain starts at the same x. */
.prog-flow {
    display: grid;
    align-items: center;
    justify-content: start;
    justify-items: start;
    column-gap: 6px;
    row-gap: 6px;
}
.prog-flow-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 24px;
}
.prog-flow-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    padding-left: 6px;
}
/* Thin bracket on a stacked column: these rooms are alternatives at one step. */
.prog-flow-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 3px;
    border-left: 1.5px solid var(--gray-300);
    border-top: 1.5px solid var(--gray-300);
    border-bottom: 1.5px solid var(--gray-300);
    border-radius: 2px 0 0 2px;
}
.prog-flow-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: var(--gray-800);
    white-space: nowrap;
}
.prog-flow-chip.is-dwelling {
    border-color: var(--primary);
    background: var(--primary-tint);
    color: var(--primary);
}
.prog-flow-chip.is-site {
    border-style: dashed;
}
.prog-flow-edge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 36px;
    height: 24px;
    color: var(--gray-400);
    line-height: 1;
}
.prog-flow-edge.has-label {
    min-width: 48px;
}
.prog-flow-arrow {
    display: block;
    flex: 0 0 auto;
}
.prog-flow-dist {
    margin-bottom: 1px;
    font-size: 10px;
    line-height: 1;
    color: var(--gray-500);
    white-space: nowrap;
}
.prog-flow-branch,
.prog-flow-branch-edge {
    opacity: 0.9;
}
.prog-picto-svg {
    display: block;
    max-width: 100%;
    height: auto;
}
.prog-picto-empty {
    color: var(--gray-400);
}
.prog-size {
    display: flex;
    align-items: center;
    gap: 8px;
}
.prog-room {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-top: 6px;
}
.prog-unit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    margin-top: 6px;
}
.prog-size select {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font: inherit;
}
.prog-unit-head input {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font: inherit;
    width: 72px;
}
.prog-room input {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font: inherit;
    width: 72px;
}
.prog-unit-mix-units {
    max-width: 420px;
    margin-top: 10px;
}
.prog-brief textarea {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font: inherit;
    width: 100%;
    min-height: 72px;
    margin-top: 8px;
}
.prog-brief-label {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.prog-empty,
.prog-appendix {
    color: var(--gray-600);
    font-size: 13px;
}
.prog-usecases {
    margin: 8px 0 0;
    padding-left: 18px;
}
.prog-brief-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.prog-brief-head .setup-inline-link {
    font-size: 13px;
    white-space: nowrap;
}
.prog-elements {
    max-height: 240px;
    overflow-y: auto;
}

