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

.dsw-scenario-panel {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.dsw-scenario-panel label {
    font-weight: 800;
    color: #334155;
}

.dsw-scenario-panel select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #0f172a;
    font-weight: 700;
}

.dsw-layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.dsw-layer-btn,
.dsw-reset-btn {
    border: none;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dsw-layer-btn {
    background: white;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.dsw-layer-btn:hover,
.dsw-reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.dsw-layer-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.dsw-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.75rem;
    align-items: stretch;
    margin: 1.25rem 0;
}

.dsw-node {
    display: grid;
    gap: 0.35rem;
    min-height: 96px;
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    text-align: center;
    align-content: center;
}

.dsw-node span {
    font-size: 0.78rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.dsw-node strong {
    color: #0f172a;
    line-height: 1.25;
}

.dsw-layer-node {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dsw-arrow {
    align-self: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: #5b5fa8;
}

.dsw-feedback-card {
    padding: 1rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #e2e8f0;
}

.dsw-feedback-card h3 {
    margin-top: 0;
    color: #0f172a;
}

.dsw-feedback-card p {
    color: #334155;
}

.dsw-score-bar {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 0.8rem 0 0.4rem;
}

#dswScoreFill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b5fa8, #e6004f);
    transition: width 0.25s ease;
}

.dsw-score-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
}

.dsw-reset-btn {
    margin-top: 1rem;
    background: #5b5fa8;
    color: white;
}

@media (max-width: 760px) {
    .dsw-flow {
        grid-template-columns: 1fr;
    }

    .dsw-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}
