.role-list {
    display: grid;
    gap: 10px;
}

.role-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(11, 101, 168, 0.65);
    border-radius: 10px;
    background: rgba(5, 9, 16, 0.52);
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.role-row:hover {
    border-color: rgba(25, 167, 255, 0.75);
    background: rgba(0, 140, 255, 0.08);
}

.role-row:has(.role-row-checkbox:focus-visible) {
    outline: 2px solid rgba(25, 167, 255, 0.85);
    outline-offset: 2px;
}

.role-row:has(.role-row-checkbox:checked) {
    border-color: rgba(25, 167, 255, 0.85);
    background: rgba(0, 140, 255, 0.12);
    box-shadow: 0 0 18px rgba(0, 140, 255, 0.12);
}

.role-row-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #19a7ff;
    flex: 0 0 auto;
}

.role-row-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.role-row-name {
    color: #f4f8ff;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.role-row-desc {
    color: #a9bfd8;
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: right;
    max-width: 50%;
}

@media (max-width: 650px) {
    .role-row-label {
        flex-direction: column;
        align-items: flex-start;
    }

    .role-row-desc {
        max-width: 100%;
        text-align: left;
    }
}
