.dependency-graph-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 620px;
    height: 680px;
    margin: 24px 0 0;
    border: 1px solid #dbe3ee;
    border-radius: 14px 14px 0 0;
    background: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
    overflow: hidden;
}

.dependency-graph-wrap canvas {
    outline: none;
    display: block;
}

.dependency-graph-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    margin: 0 0 30px;
    padding: 13px 20px 14px;
    border: 1px solid #dbe3ee;
    border-top: none;
    border-radius: 0 0 14px 14px;
    background: #f8fafc;
    font-size: 13px;
    color: #334155;
}

.dependency-graph-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.dependency-graph-legend-item::before {
    content: '';
    width: 34px;
    height: 3px;
    border-radius: 2px;
}

.dependency-graph-legend-s::before {
    background-color: #A61E1E;
}

.dependency-graph-legend-f::before {
    background-color: #E8590C;
}

.dependency-graph-legend-o::before {
    background-color: #475569;
}

.dependency-graph-legend-hint {
    flex: 0 1 100%;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .dependency-graph-wrap {
        min-height: 540px;
        height: 600px;
    }

    .dependency-graph-legend {
        gap: 8px 14px;
        padding: 12px 16px;
    }
}
