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

.stw-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1rem;
    align-items: stretch;
}

.stw-scenario-card,
.stw-feedback-card,
.stw-choice,
.stw-term {
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.stw-scenario-card {
    padding: 1.15rem;
}

.stw-label {
    display: inline-flex;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(91, 95, 168, 0.10);
    color: #4b4f9c;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stw-scenario-card h3 {
    margin: 0.85rem 0 0.45rem;
    color: #0f172a;
}

.stw-scenario-card p,
.stw-feedback-card p,
.stw-choice span,
.stw-term span {
    color: #475569;
}

.stw-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stw-controls button,
.stw-choice {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stw-controls button {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    background: #0f172a;
    color: white;
    font-weight: 700;
}

.stw-controls button:hover,
.stw-choice:hover {
    transform: translateY(-2px);
}

.stw-choice-panel {
    display: grid;
    gap: 0.75rem;
}

.stw-choice {
    width: 100%;
    padding: 1rem;
    text-align: left;
    color: #0f172a;
}

.stw-choice strong,
.stw-choice span {
    display: block;
}

.stw-choice strong {
    margin-bottom: 0.2rem;
}

.stw-choice.correct {
    border-color: #86efac;
    background: #f0fdf4;
}

.stw-choice.incorrect {
    border-color: #fed7aa;
    background: #fff7ed;
}

.stw-feedback-card {
    margin-top: 1rem;
    padding: 1rem;
}

.stw-feedback-card.correct {
    border-color: #86efac;
    background: #f0fdf4;
    color: #14532d;
}

.stw-feedback-card.incorrect {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #7c2d12;
}

.stw-term-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.stw-term {
    padding: 1rem;
    text-align: center;
}

.stw-term strong,
.stw-term span {
    display: block;
}

.stw-term.active {
    outline: 3px solid rgba(91, 95, 168, 0.26);
    background: #eff6ff;
}

@media (max-width: 760px) {
    .stw-layout,
    .stw-term-map {
        grid-template-columns: 1fr;
    }
}
