.sdlc-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.sdlc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.sdlc-tab,
.sdlc-controls button {
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: white;
    color: #334155;
    padding: 0.65rem 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sdlc-tab:hover,
.sdlc-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.sdlc-tab.active {
    background: #5b5fa8;
    border-color: #5b5fa8;
    color: white;
}

.sdlc-visual-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.sdlc-stage-panel,
.sdlc-summary-card,
.sdlc-step-card,
.sdlc-fit-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 1rem;
}

.sdlc-mini-label,
.sdlc-step-counter,
.sdlc-model-label {
    display: inline-block;
    margin: 0 0 0.6rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sdlc-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.sdlc-stage {
    position: relative;
    min-width: 118px;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #34387f;
    font-weight: 850;
    text-align: center;
    transition: all 0.25s ease;
}

.sdlc-stage.active {
    background: #5b5fa8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(91, 95, 168, 0.24);
}

.sdlc-arrow {
    color: #94a3b8;
    font-size: 1.4rem;
    font-weight: 900;
}

.sdlc-loop-note {
    flex-basis: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-weight: 700;
}

.sdlc-summary-card h3,
.sdlc-step-card h3 {
    margin-top: 0;
}

.sdlc-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

.sdlc-score-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.9rem;
}

.sdlc-score-card strong {
    display: block;
    margin-bottom: 0.55rem;
    color: #334155;
}

.sdlc-meter {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.sdlc-meter span {
    display: block;
    height: 100%;
    width: 50%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5b5fa8, #e6004f);
    transition: width 0.25s ease;
}

.sdlc-score-card small {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
    font-weight: 700;
}

.sdlc-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.sdlc-fit-box {
    margin-top: 1rem;
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}

@media (max-width: 760px) {
    .sdlc-visual-row {
        grid-template-columns: 1fr;
    }

    .sdlc-stage {
        min-width: 96px;
    }
}
